What problem does it solve? It defines a frontend developer role for the AI Billing MVP, ensuring React/TypeScript work on pages, forms, and API clients follows project conventions and never duplicates backend billing logic on the client. ## Core Features & Use Cases - Scoped Role Activation: Activates only for tasks touching frontend/src/, pages, forms, API clients, and JSON-contract types; defers backend, review, and docs tasks to other roles. - Mandatory UI States: Enforces loading, error, empty, and success states for every block that calls the backend, rendering backend error messages as-is in Russian. - Domain Safety Rules: Prohibits client-side billing arithmetic, float sums, hardcoded backend URLs, and price-list caching, keeping the backend as the single source of truth. - Use Case: When the backend JSON contract changes, invoke this role to update TypeScript types and API clients in frontend/src/api/ and adjust affected pages with proper state handling. ## Quick Start Ask the agent to act as the frontend role and update the API client types and affected pages in frontend/src/ to match the new backend JSON contract.