amanah-performance

Keep Amanah fast on mobile networks through bundle, rendering, query, caching, pagination, image, and upload controls.

SKILL.md

GitHub

Purpose

Support users on unstable or slow connections without compromising correctness.

Scope

Bundle size, code splitting, images, database queries, pagination, caching, lazy loading, and uploads.

Rules

Set budgets; split admin/consumer and heavy flows; paginate server-side; optimize responsive images; resumably upload where justified; cache only non-sensitive safe data.

Required patterns

Measure real routes, lazy-load secondary panels, avoid request waterfalls, compress assets, and show resilient skeleton/offline states.

Forbidden patterns

Never preload private evidence, cache sensitive responses publicly, ship admin code to consumers unnecessarily, or fetch unbounded collections.

Relevant modules

Frontend, APIs, database, files, deployment.

Testing

Run bundle analysis, Lighthouse/Web Vitals, throttled mobile flows, query plans, upload interruption, and cache/privacy checks.

Definition of done

Critical mobile flows meet agreed budgets on throttled networks with no privacy regression.