angular-single-app-architecture

Enforce Angular src/app architecture with core, layout, ui, feature, and pattern areas.

3|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/mnkyjs/angular-single-app-architecture --skill angular-single-app-architecture
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: angular-single-app-architecture
Source: https://github.com/mnkyjs/angular-single-app-architecture/tree/main
Command: npx skills add https://github.com/mnkyjs/angular-single-app-architecture --skill angular-single-app-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents Angular projects from drifting into unstructured shared/-style code by enforcing a strict src/app architecture with clear responsibilities and one-way dependency boundaries.

Core Features & Use Cases

  • Architecture area classification: Directs new or moved code into core, layout, ui, feature, or pattern based on responsibility.
  • Lazy route feature organization: Ensures feature routes live in the owning feature folder as *.routes.ts and encourages lazy loading patterns.
  • Import-boundary enforcement guidance: Helps keep layout independent from feature implementation and promotes reuse via pattern, ui, or core instead of cross-feature implementation imports.

Quick Start

Ask your AI to refactor your src/app structure by moving misplaced components/services/routes into core, layout, ui, feature, or pattern, and to rewrite any violating imports so layout does not depend on feature.

Frequently Asked Questions about angular-single-app-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize my Angular folder structure to avoid a messy shared directory?▼

Organize your Angular folder structure by classifying code into core, layout, ui, feature, or pattern areas based on responsibility. Place artifacts in the narrowest valid folder instead of a generic shared directory to keep architecture clean and import-safe.

How do I enforce import boundaries between layout and feature areas in Angular?▼

Enforce import boundaries by ensuring layout areas remain independent from feature implementation. Promote reuse through pattern, ui, or core areas instead of cross-feature implementation imports to maintain a strict one-way dependency direction.

What is the best way to configure lazy routing for Angular feature modules?▼

Configure lazy routing by placing feature route configurations in the owning feature folder as *.routes.ts files. This encourages lazy loading patterns and keeps route ownership clearly tied to its specific feature area.

When refactoring Angular apps, how do I decide if a service belongs in core or a feature folder?▼

When refactoring Angular apps, classify services by responsibility and place them in the narrowest valid folder. Use core for app-wide singletons and feature folders for services scoped to specific feature areas.

Why does my Angular architecture drift into unstructured code over time?▼

Angular architecture drifts into unstructured code when generic shared folders accumulate misplaced components and services. Enforcing strict src/app architecture with clear responsibilities and one-way dependency boundaries prevents this drift.