What problem does it solve? Billing backend work demands strict correctness: money calculations, idempotency, and layered architecture rules are easy to violate without explicit guidance. This Skill encodes the AI Billing project's backend conventions so changes to business logic, Prisma schemas, and OpenAPI definitions follow the project's architecture and domain invariants. ## Core Features & Use Cases - Role-scoped backend guidance: Activates only for tasks touching backend/src/, backend/tests/, backend/prisma/, or OpenAPI descriptions, and defers UI, docs, review, and test-run tasks to other roles. - Architecture enforcement: Defines layered + hexagonal rules (domain, application, infrastructure, API) with ports/adapters, a pure BillingCalculator domain service, and a PriceResolver abstraction. - Billing domain invariants: Encodes pricing rules (provider + model + metricType + sessionStartedAt), decimal.js-only money math, idempotent usage ingestion, and transactional persistence. - Use Case: When adding a new usage endpoint, the Skill directs you through a pre-task architecture checklist, the correct layer placement, required unit/integration tests, and the NEVER list (e.g., no float money math, no Prisma in routes). ## Quick Start Ask the assistant to implement a new billing usage endpoint in the backend following the project architecture and domain rules.