odjaramillo/custom-rules/angular

Claude Code and agent skill by odjaramillo/custom-rules

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Angular best practices with TypeScript, RxJS, and modern patterns. Trigger: When building Angular applications with TypeScript.

Install

npx vskill@latest install odjaramillo/custom-rules/angular

SKILL.md

The same SKILL.md was published earlier as odjaramillo/custom-rules/angular.

Critical Patterns

Standalone Components (REQUIRED)
typescript
// ✅ ALWAYS: Use standalone components (Angular 16+)
@Component({
selector: 'app-user-card',
standalone: true,
imports: [CommonModule, RouterModule],
template: `
<div class="card">
<h2>{{ user.name }}</h2>
</div>
`
})
export class UserCardComponent {
@Input({ required: true }) user!: User;
}
Signals (RECOMMENDED)
typescript
// ✅ Use signals for reactive state (Angular 16+)
@Component({...})
export class CounterComponent {
count = signal(0);
doubleCount = computed(() => this.count() * 2);
increment() {
this.count.update(n => n + 1);
}
}
RxJS Best Practices (REQUIRED)
typescript
// ✅ ALWAYS: Use async pipe, avoid manual subscriptions
@Component({
template: `
<div *ngFor="let user of users$ | async">
{{ user.name }}
</div>
`
})
export class UsersComponent {
users$ = this.userService.getUsers();
}
// ❌ NEVER: Manual subscribe without cleanup
ngOnInit() {
this.userService.getUsers().subscribe(users => {
this.users = users; // Memory leak risk!
});
}

Decision Tree

Need component state? → Use signals
Need shared state? → Use service with BehaviorSubject
Need HTTP data? → Use HttpClient + async pipe
Need form validation? → Use Reactive Forms
Need lazy loading? → Use loadComponent()

Code Examples

Reactive Forms
typescript
@Component({...})
export class UserFormComponent {
form = new FormGroup({
name: new FormControl('', [Validators.required]),
email: new FormControl('', [Validators.required, Validators.email]),
});
onSubmit() {
if (this.form.valid) {
this.userService.create(this.form.value);
}
}
}
Service with State
typescript
@Injectable({ providedIn: 'root' })
export class CartService {
private items = new BehaviorSubject<CartItem[]>([]);
items$ = this.items.asObservable();
addItem(item: CartItem) {
this.items.next([...this.items.value, item]);
}
}

Commands

bash
ng new myapp --standalone
ng serve
ng generate component users
ng build --configuration production
ng test

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/odjaramillo/custom-rules/angular/badge)](https://verified-skill.com/skills/odjaramillo/custom-rules/angular)

Something wrong with this skill or its page? Tell us.