Skip to content

Opinionated Angular project layout that places components by usage scope and drops file-type suffixes.

CCM score
63 of 100
skills.sh installs
326
GitHub stars
681
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the Scope Rule, folder structure for features, shared, and core, and file naming conventions
  • Includes a component class template ordering injections, inputs and outputs, state, computed values, and methods
  • Enforces inject(), readonly inputs and outputs, class/style bindings over ngClass/ngStyle, and action-named handlers
  • Provides ng g commands for generating components, services, and guards in feature and core folders

Install

$ npx -y skills add gentleman-programming/gentleman-skills --skill angular-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

The Scope Rule (REQUIRED)

"Scope determines structure" - Where a component lives depends on its usage.

UsagePlacement
Used by 1 featurefeatures/[feature]/components/
Used by 2+ featuresfeatures/shared/components/

Example

features/
  shopping-cart/
    shopping-cart.ts          # Main component = feature name
    components/
      cart-item.ts            # Used ONLY by shopping-cart
      cart-summary.ts         # Used ONLY by shopping-cart
  checkout/
    checkout.ts
    components/
      payment-form.ts         # Used ONLY by checkout
  shared/
    components/
      button.ts               # Used by shopping-cart AND checkout
      modal.ts                # Used by multiple features

Project Structure

Details

Repository
github.com/gentleman-programming/gentleman-skills
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the angular-architecture skill do?

The angular-architecture skill guides an agent on structuring Angular projects, covering the Scope Rule, project folder layout, file naming and a style guide. It tells the agent where a component should live depending on how many features use it.

Where does angular-architecture put a component used by two features?

The angular-architecture skill places a component used by two or more features in features/shared/components/. A component used by only one feature goes in that feature's components folder instead.

How do I install the angular-architecture skill?

Run npx -y skills add gentleman-programming/gentleman-skills --skill angular-architecture -y in your project. The angular-architecture skill then gives the agent its Angular structure and file naming rules.

Does angular-architecture require .component or .service suffixes on file names?

No, the angular-architecture skill drops .component, .service and .model suffixes, so a file is named user-profile.ts rather than user-profile.component.ts. Its folder already tells the reader what the file is.

More from gentleman-programming/gentleman-skills

All 13

Similar to Angular Architecture

More Frontend & UI Code