Cross-Platform Standards

These apply to every team member regardless of role or platform.

Frontend Standards

Split into 6 focused files covering all frontend development patterns.

frontend/

Overview & Non-Negotiables

Core rules every frontend task must follow — loading states, no silent failures, backend enforces all rules.

frontend/01

01 — Forms & Validation

Form structure, field standards (text/date/select/file), required field markers, validation timing (on submit vs on blur), error display rules, Add/Edit consistency, password strength, phone (E.164), file upload (MIME type), disabled fields, form submission.

frontend/02

02 — Data Display

Tables, lists, cards — null as em dash, date formatting, status badges, all 4 state requirements (loading/empty/error/populated), sorting, search (debounce, autocomplete), filters (chips, URL params), pagination, infinite scroll, URL state, empty states, row/bulk actions, mobile.

frontend/03

03 — UI Components

Modals (open/close/focus trap/3-level confirmation), toasts (types/timing/stacking/triggers), loading states (button labels table), skeleton screens (when to use), buttons, badges, tooltips, dropdowns, tabs, accordion.

frontend/04

04 — Error & Feedback

Error types and display locations, field-level errors, form API errors, page-level errors, API error code mapping table, empty states, destructive action confirmation (3 risk levels), network errors, auth errors, message standards, no silent failures rules.

frontend/05

05 — Permissions & Auth UI

Fundamental rule (backend enforces), hide vs disable decision table, reading role from auth session (not URL/localStorage), UI element permission states (buttons/forms/nav/tables), page-level access, partial access, real-time role changes, auth flow standards.

frontend/06

06 — Settings & Profile

Page structure, general settings (email change flow, timezone), save behavior (explicit vs auto-save), password change section, avatar upload (MIME/EXIF), notification preferences, connected accounts, danger zone (leave/delete with type-to-confirm).

Django Templates

Django Template Standards

Three-folder rule (CSS in static/css/, JS in static/js/, HTML in templates/), base.html inheritance, no inline styles or scripts, Django data to JavaScript via data-* attributes (never string interpolation), reusable {% include %} components, static file loading with {% static %}, naming conventions.

Supabase Standards

Split into 7 focused files covering the full Supabase backend lifecycle.

supabase/

Overview & Definition of Done

Developer responsibilities, full definition of done checklist, the key questions every API must answer.

supabase/01

01 — Database & RLS

Table schema standards, naming conventions (plural snake_case), required constraints, index rules, RLS enabled on every table, policy types (SELECT/INSERT/UPDATE/DELETE), RLS anti-patterns, auth standards, service role key rules.

supabase/02

02 — API Design

Choosing between direct table query / RPC / Edge Function, 15-step core build flow, response format standard (success and error JSON), standard error codes, frontend contract rules.

supabase/03

03 — API Documentation

Full documentation template (17 fields), frontend Supabase client call examples, RPC call pattern, complete worked example (Add Project API with all error cases).

supabase/04

04 — Edge Functions

When to use Edge Functions (vs RPC), required structure, 10 mandatory steps, response standard helper, JWT auth pattern, full example (Send Project Invite).

supabase/05

05 — Validation, Multi-Tenant & Storage

Three validation layers (frontend / API / database), frontend error handling contract, field-level error format, multi-tenant workspace scoping, workspace membership SQL, role permission matrix, storage bucket security, storage path standard.

supabase/06

06 — Operations & Testing

Audit log table and what to log, Edge Function logging rules, webhook signature and idempotency, API key management, versioning, migration standards, 13 required test cases, RLS testing matrix (6 roles × 4 operations), backend handoff checklist.

supabase/07

07 — RPC & Postgres Functions

When to use RPC vs direct query vs Edge Function, SECURITY INVOKER vs SECURITY DEFINER, parameter naming with p_ prefix, return type standards, validation order, error raising format, transaction handling, auth pattern, naming conventions, performance rules, testing requirements, and documentation expectations.

Xano Standards

Full backend implementation standard for Xano endpoints, auth, validation, and reusable logic.

Website Standards

Split into 5 focused files covering the full website build and migration lifecycle.

website/

Overview & Replication Types

Six replication types (Pixel-Perfect / Functional / Migration / Modernized / Backend / CMS), full definition of done checklist, 10 questions to confirm scope.

website/01

01 — Scoping & Design

Ownership and permission confirmation, client intake checklist, discovery audit, page inventory template, design extraction from Figma and deployed sites, design token standard (colors, typography, spacing, breakpoints).

website/02

02 — Building by Platform

Technology decision table (React vs WeWeb vs Bubble vs WordPress), Figma-to-React development flow and component list, Figma-to-WeWeb build standards and anti-patterns, Figma-to-Bubble build standards and anti-patterns.

website/03

03 — Migration

Existing site reverse-engineering checklist, migration flow, WordPress audit and migration decisions, content migration standards, SEO preservation checklist and anti-patterns, forms and integrations replication.

website/04

04 — Responsive, QA & Performance

Breakpoint standards, responsive checklist per screen size, pixel-perfect QA process, performance rules (image optimization, lazy loading, Core Web Vitals), accessibility must-haves, security checklist, CMS decision table, no-code naming standards, animation replication.

website/05

05 — Launch & Handoff

Header/footer documentation, tracking and analytics installation, redirect mapping, launch checklist, required documentation, form/API handoff template, QA checklists (visual / functional / SEO / performance), client review standard, common risks, platform-specific risks, definition of done, client message template.

Third-Party Implementation Standards

Standards for integrating external payment and email services. Each file covers full setup, configuration, usage patterns, metadata conventions, security, and error handling.