What problem does it solve? Choosing and documenting a software architecture is often inconsistent or skipped entirely, leaving teams without clear dependency rules, folder structures, or module boundaries. This Skill analyzes your project's tech stack and generates a tailored ARCHITECTURE.md with concrete rules and code examples. ## Core Features & Use Cases - Architecture Recommendation: Evaluates team size, domain complexity, and scale requirements against a decision matrix covering Layered, Structured Modules, Explicit Architecture, and Microservices patterns. - Tailored Artifact Generation: Creates .ai-factory/ARCHITECTURE.md with folder structures, dependency rules, and code examples adapted to your actual language and framework. - Codebase Alignment Check: Compares the ideal architecture against your existing project structure and asks whether to document reality or enforce strict guidelines. - Use Case: After setting up a new project with /aif, run this Skill to get architecture guidelines that all subsequent AI-assisted development follows, including legacy vs new code policies. ## Quick Start Ask the AI to recommend and generate an architecture for this project based on DESCRIPTION.md, optionally specifying a pattern like explicit-vertical or structured-layers.