Cross-agent Angular architecture guidance for a strict standalone-first src/app folder structure.
This repository packages the same architecture rules in formats that can be consumed by different coding agents. The goal is to keep Angular applications organized around clear application areas and one-way dependency boundaries instead of drifting into a generic shared/ structure.
The application is organized around these top-level areas under src/app:
corelayoutuifeaturepattern
At a high level:
corecontains app-wide singleton and startup logic.layoutcontains shell and page composition.uicontains generic reusable presentation building blocks.featurecontains route-oriented lazy feature code.patterncontains reusable business-aware drop-in functionality shared across features.
.
├── SKILL.md
├── agents/openai.yaml
├── references/
├── ARCHITECTURE.md
├── AGENTS.md
└── CLAUDE.md
SKILL.md,agents/openai.yaml,references/Root-level packaged skill for Codex andskills.sh-style installers.ARCHITECTURE.mdNeutral source of truth for the architecture rules.AGENTS.mdGeneric agent instructions for tools that support repo-level agent guidance.CLAUDE.mdClaude-oriented instruction wrapper around the same rules.
Install this GitHub repository as a skill:
npx skills add https://github.com/mnkyjs/angular-single-app-architectureThe repository root is the skill root and contains:
SKILL.mdagents/openai.yamlreferences/
Codex uses these files to apply the architecture rules when creating, moving, or refactoring Angular files.
Use the repository root files:
ARCHITECTURE.mdas the neutral architecture referenceCLAUDE.mdfor Claude-style repo instructionsAGENTS.mdfor generic repo-level agent instructions
- No generic
shared/catch-all folder - Standalone-first Angular structure
- Route-based lazy feature organization
- Layout code must not depend on feature implementation
- Feature reuse should be extracted into
pattern,ui, orcore - One-way dependency boundaries between architecture areas
- "Create a new document-upload feature and place all files in the correct architecture folders."
- "Refactor this Angular app to move misplaced components and services into core, ui, feature, and pattern."
- "Review my src/app structure and point out architecture and import-boundary violations."
This repository is intended to make the same Angular architecture guidance reusable across multiple agent environments instead of rewriting the rules for each tool.