scope-rule-architect-angular

Codify Angular 20+ architecture with Scope Rule and standalone components.

10|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Alan-TheGentleman/gentle-ai-enterprise --skill scope-rule-architect-angular
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scope-rule-architect-angular
Source: https://github.com/Alan-TheGentleman/gentle-ai-enterprise/tree/main/skills/angular
Command: npx skills add https://github.com/Alan-TheGentleman/gentle-ai-enterprise --skill scope-rule-architect-angular

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured approach to building Angular 20+ applications by enforcing Scope Rule, Screaming Architecture, and the use of standalone components, ensuring consistent organization, naming, and maintainability.

Core Features & Use Cases

  • Standalone Components First: ALL components SHOULD be standalone; modern Angular favors standalone components and inject() usage, coupled with signal-based state management.
  • Modern Template Syntax: Use @if, @for, @switch, @defer, typed reactive forms, and avoid legacy NgModules for structure.
  • The Scope Rule — Unbreakable Law: Code used by 2+ features MUST live in global/shared areas; code for a single feature stays local.
  • Screaming Architecture: Directory structure should tell the business story; feature components must align with feature names.
  • Decision Framework: Count feature usage, apply the rule, validate against best practices, and document decisions with rationale.
  • Project Structure: Presents a complete layout for feature, shared, core, and routing with standalone patterns.
  • Standalone Component Pattern: Demo patterns for using imports, signals, and inject() in standalone components.
  • Service with Signals: Pattern for local and injectable services using signals for state management.
  • Quality Checklist & Edge Cases: Migration strategies, lazy loading via standalone routes, and guardrails.

Quick Start

Follow the guide to implement a scalable Angular project using Scope Rule and standalone components.

Frequently Asked Questions about scope-rule-architect-angular

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

FAQPage Schema
How do I structure a large Angular application using standalone components?

Apply the Scope Rule by placing code used by two or more features in global or shared areas, while keeping single-feature code local. This ensures consistent organization, naming, and maintainability across medium-to-large Angular projects.

What is the Scope Rule in Angular architecture?

The Scope Rule in Angular architecture dictates that code used by two or more features must live in global or shared areas, while code for a single feature stays local. This unbreakable law ensures consistent project organization and maintainability.

How do I migrate legacy NgModules to standalone components in Angular 20+?

Migrate legacy NgModules by adopting standalone components alongside modern template syntax like @if and @defer, and signal-based state. The framework provides migration strategies, lazy loading via standalone routes, and guardrails to validate decisions.

Does this Angular architecture approach work with signal-based state management?

Yes, this Angular architecture mandates signal-based state management coupled with standalone components and inject() usage. It provides specific patterns for local and injectable services using signals for state handling.

When should I use shared versus local code in an Angular project?

Use shared or global code when a feature is used by two or more areas, and keep code local when it serves a single feature. Apply the Scope Rule by counting feature usage, validating against best practices, and documenting decisions with rationale.

What are the limitations of using standalone components in Angular?

Limitations and edge cases during migration include managing lazy loading via standalone routes and validating guardrails. The architecture addresses these by providing a quality checklist and decision framework to ensure correct standalone component implementation.