What problem does it solve? Backend controllers accumulate duplicated cross-cutting logic like authentication, tenancy checks, and onboarding gates. This Skill provides language-specific playbooks for building HTTP middlewares that enforce these concerns before a controller runs, with typed errors that map to HTTP statuses and drive frontend routing. ## Core Features & Use Cases - Language dispatch hub: Routes to TypeScript or Go playbooks based on file extension, each with its own registry of mandatory patterns and bad practices. - Typed error contract: Middlewares throw typed BaseError codes registered in a GlobalErrorMapper, enabling the frontend to redirect (not just toast) via a customErrorHandlers registry. - Composition model: Default middleware chains per bounded context with per-controller overrides to add or skip middlewares. - Use Case: When adding an onboarding gate to a TypeScript API, the Skill guides creating an OnboardingMiddleware class, registering the ONBOARDING_NOT_COMPLETED error code, mapping it to HTTP 403, and wiring a frontend handler that redirects to /onboarding. ## Quick Start Ask the assistant to create an HTTP middleware that validates the user session and rejects unauthorized requests in the TypeScript backend.