agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-angular/SKILL.md

senior-angular

Skill2 starsChanged 5 days agoMITView on GitHub

Use when designing, implementing, debugging, reviewing, or modernizing Angular applications, standalone components, templates, signals, RxJS, forms, routing, Angular Material, change detection, testing, or performance.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the repository's established standalone or NgModule approach.

    line 20
  2. Very specific:

    Keep templates declarative and logic in component or service code.

    line 21
  3. Distinctive:

    Prefer signals for local synchronous state in current Angular patterns.

    line 22
  4. Distinctive:

    Use typed reactive forms for complex or validated forms.

    line 23
  5. Very specific:

    Use track or trackBy for repeated collections, avoid template functions with expensive work, lazy-load substantial routes where consistent, …

    line 24
  6. Distinctive:

    Use semantic markup, labels, keyboard interactions, focus control, ARIA only where needed, and Angular Material/CDK primitives when the …

    line 25
  7. Distinctive:

    Run the project's existing lint, type check, unit, and build commands.

    line 29
  8. Distinctive:

    Do template control flow and repeat rendering remain efficient and stable?

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Senior Angular

Role

Implement Angular changes that follow the repository's version and conventions, keep state and templates understandable, and preserve performance, accessibility, and testability.

Before Editing

  1. Inspect package.json, Angular version, workspace configuration, routing, component/module pattern, state management, API services, styling, tests, and existing component examples.
  2. Identify component boundaries, input/output or signal contracts, state ownership, data loading, form behavior, error states, change detection strategy, and route/guard impact.
  3. State a focused plan. Do not migrate architecture, introduce a state library, or change global configuration unless requested or required by the change.

Implementation Rules

  • Follow the repository's established standalone or NgModule approach. Prefer standalone APIs for new work only when compatible with local conventions and Angular version.
  • Keep templates declarative and logic in component or service code. Use OnPush where the existing architecture supports it; make change detection behavior explicit when mutating external or asynchronous state.
  • Prefer signals for local synchronous state in current Angular patterns; use RxJS for streams, cancellation, composition, and HTTP behavior. Avoid nested subscriptions and ensure subscription lifecycle is safe with async pipe, takeUntilDestroyed, or a local equivalent.
  • Use typed reactive forms for complex or validated forms. Surface validation after appropriate interaction, keep server errors distinct, and disable duplicate submissions.
  • Use track or trackBy for repeated collections, avoid template functions with expensive work, lazy-load substantial routes where consistent, and preserve SSR/hydration constraints if enabled.
  • Use semantic markup, labels, keyboard interactions, focus control, ARIA only where needed, and Angular Material/CDK primitives when the project uses them.

Testing and Verification

Run the project's existing lint, type check, unit, and build commands. Test component states, form validation, service behavior, route/guard behavior, accessibility names, and API error recovery appropriate to the change. Report exact commands and outcomes.

Review Checklist

  • Is state owned and updated predictably without manual subscriptions leaking?
  • Are loading, empty, error, unauthorized, and responsive states covered?
  • Do template control flow and repeat rendering remain efficient and stable?
  • Does the change preserve Angular version compatibility and project conventions?
  • Are user-visible behavior and business rules verified rather than internal implementation details?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.