angular — Claude Code skill: what it does, how to install
Configures your AI agent to follow official Angular and TypeScript conventions with standalone components, reactive signals, and strict interfaces.
npx skills add Mindrally/skills --skill angular -a claude-codeWhat angular does
This skill directs AI assistants to follow official Angular, SASS, and TypeScript style conventions. It instructs the model to create standalone components, inject dependencies via the inject function, and handle reactivity through Angular signals. Every file follows kebab-case naming with explicit suffixes like .component.ts or .service.ts.
Template recommendations focus on rendering efficiency. The agent applies deferrable views, utilizes NgOptimizedImage, and supplies trackBy functions for ngFor loops. Because the rules ban any completely, the agent will rewrite untyped data into explicit interfaces across your services.
Security standards restrict direct DOM access and forbid innerHTML to prevent XSS. For tests, the skill mandates .spec.ts files structured around the Arrange-Act-Assert pattern. Code style stays consistent with 2-space indentation and single quotes.
What it helps with
- Refactor state management to Angular signals and the inject function
- Enforce interface-based data models while eliminating the any type
- Speed up template rendering using NgOptimizedImage and trackBy
- Generate unit tests formatted with the Arrange-Act-Assert pattern
Example prompts for the agent
- Generate a standalone user profile component using signals and the inject function
- Refactor this list view to use trackBy and deferrable views
- Create a typed authentication service with custom error types and no any
How to install angular
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill angular -a claude-code2Manually: put the files in place
~/.claude/skills/angular/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/angular/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill angular -a codex2Manually: put the files in place
.agents/skills/angular/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill angular -a cursor2Manually: put the files in place
.cursor/skills/angular/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills angular2Manually: put the files in place
.github/skills/angular/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill angular -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path angularManually: put the files in place
.devin/skills/angular/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill angular -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about angular
How to install angular in Claude Code?
Run npx skills add Mindrally/skills --skill angular -a claude-code in your terminal. Alternatively, place the skill file directly at ~/.claude/skills/angular/SKILL.md.
What does the angular skill do?
It configures the AI assistant with Angular, TypeScript, and SASS standards. The model generates standalone components, adopts reactive signals, avoids innerHTML, and targets Web Vitals metrics.
Does this skill allow the any type in TypeScript?
No, the skill strictly bans the any type. All data structures must be defined with interfaces, using optional chaining and nullish coalescing where needed.
Source text
SKILL.md · Apache-2.0
--- name: angular description: Expert in Angular TypeScript development with scalable, high-performance patterns metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Angular You are an Angular, SASS, and TypeScript expert creating scalable, high-performance web applications with strict type safety and Angular's official style guide adherence. ## Core Principles - Provide concise, precise examples with clear explanations - Apply immutability and pure functions throughout services and state management - Favor component composition over inheritance for enhanced modularity - Use descriptive naming conventions (e.g., `isUserLoggedIn`, `fetchData()`) - Enforce kebab-case file naming with appropriate suffixes ## TypeScript Standards - Define data models using interfaces; avoid `any` type entirely - Structure files with imports first, followed by class definition, properties, methods - Leverage optional chaining (`?.`) and nullish coalescing (`??`) operators - Use standalone components appropriately for code reusability - Utilize Angular's signals system for efficient reactive state management - Employ the `inject` function for direct service injection ## File Organization - Components: `*.component.ts` - Services: `*.service.ts` - Directives: `*.directive.ts` - Pipes: `*.pipe.ts` - Tests: `*.spec.ts` ## Code Standards - Single quotes for string literals - 2-space indentation - Prefer `const` for immutable variables - Use template literals for interpolation ## Angular-Specific Guidelines - Use `async` pipe for observable subscriptions in templates - Enable lazy loading for feature modules - Ensure accessibility with semantic HTML and ARIA attributes - Implement deferrable views for non-essential components - Use `NgOptimizedImage` for efficient image loading - Apply trackBy functions with `ngFor` for optimized rendering ## Performance Optimization - Optimize list rendering with trackBy functions - Use pure pipes for computationally heavy operations - Avoid direct DOM manipulation; rely on Angular's templating engine - Leverage signals to reduce unnecessary re-renders - Focus on Web Vitals optimization (LCP, INP, CLS) ## Error Handling & Security - Implement robust error handling with custom error types - Use Angular's form validation system for input validation - Prevent XSS through Angular's sanitization; avoid `innerHTML` - Follow Arrange-Act-Assert pattern for unit tests
© Mindrally · Apache-2.0 · Mindrally/skills