amanah-frontend

Govern Amanah frontend architecture, server/client boundaries, forms, state, caching, feedback, accessibility, and design-system reuse.

SKILL.md

GitHub

Purpose

Build predictable UI without moving business authority into the browser.

Scope

Components, rendering boundaries, forms, state, queries, cache, errors, loading, optimistic updates, and accessibility.

Rules

Reuse primitives; keep server data in query cache and ephemeral UI state local; validate for guidance; reauthorize on server; use error boundaries and explicit async states.

Required patterns

Prefer server rendering for initial/read surfaces; isolate interactive clients; invalidate precise keys; use optimistic updates only when safely reversible.

Forbidden patterns

Never duplicate primitives, store secrets, infer permission from hidden routes, optimistically settle debts, or swallow failures.

Relevant modules

User/admin apps, components, features, design system.

Testing

Test component states, forms, cache invalidation, rollback, navigation, accessibility, and responsive behavior.

Definition of done

UI is consistent, resilient, accessible, and delegates business/security authority to backend services.