
define-architecture
热门Generates folder structures, module contracts, middleware pipelines, and frontend/backend boundaries for TypeScript full-stack applications, and finds domain-informed deepening opportunities in existing codebases. Use when setting up project structure, organizing a monorepo, defining folder layout, designing backend modules, establishing team conventions, improving architecture outside a local diff, writing an architecture brief, or asking \"how should I structure this app\", \"design the folder structure\", \"set up the architecture\", \"find architecture improvements\", \"make this codebase agent-friendly\", or \"set up guardrails for coding agents\". For scaffolding a new Next.js repo use scaffold-nextjs, for a new TypeScript CLI use scaffold-cli, for multi-tenant domain or isolation strategy use multi-tenant-architecture, and for structural review of a local diff use pr-reviewer.
Generates folder structures, module contracts, middleware pipelines, and frontend/backend boundaries for TypeScript full-stack applications, and finds domain-informed deepening opportunities in existing codebases. Use when setting up project structure, organizing a monorepo, defining folder layout, designing backend modules, establishing team conventions, improving architecture outside a local diff, writing an architecture brief, or asking \"how should I structure this app\", \"design the folder structure\", \"set up the architecture\", \"find architecture improvements\", \"make this codebase agent-friendly\", or \"set up guardrails for coding agents\". For scaffolding a new Next.js repo use scaffold-nextjs, for a new TypeScript CLI use scaffold-cli, for multi-tenant domain or isolation strategy use multi-tenant-architecture, and for structural review of a local diff use pr-reviewer.
Define Architecture
Define durable, easy-to-change architecture defaults for TypeScript full-stack apps; produce an enforceable architecture brief.
-
IS: folder structures, module contracts, middleware pipelines, frontend/backend boundaries; architecture briefs; domain-informed deepening of an existing codebase; agent-friendly codebase guardrails.
-
IS NOT: scaffolding a new repo (
scaffold-nextjsfor a Next.js turborepo,scaffold-clifor a TypeScript CLI), multi-tenant domain/isolation/routing (multi-tenant-architecture), or structural review of a local diff (pr-reviewer).
Contents
-
Workflow and references
-
Setup workflow (new codebase)
-
Adoption workflow (existing codebase)
-
Validation loop
-
Output template
-
Related skills
-
Gotchas



