CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-create-component

Use when adding a new UI component to an existing module - handles templates, inputs, and test scaffolding.

Quality

73%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./packs/angular/skills/dev-create-component/SKILL.md
SKILL.md
Quality
Evals
Security

Create an Angular standalone component following docs/ARCHITECTURE.md section 5.

Component: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 5.

  2. Determine the type:

    • Feature component -> src/modules/[module]/components/kebab-case.component.ts
    • Shared component -> src/shared/components/kebab-case.component.ts
    • Page -> src/modules/[module]/pages/kebab-case-page.component.ts
  3. Create the component with the standard template:

import { Component, ChangeDetectionStrategy, inject, input, output, signal, computed } from '@angular/core'

@Component({
  selector: 'app-kebab-case',
  standalone: true,
  imports: [],
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <!-- clean template, < 100 lines -->
  `,
})
export class PascalCaseComponent {
  // Inputs / Outputs (signal-based)
  readonly myInput = input<string>()
  readonly myOutput = output<string>()

  // Injected dependencies
  private readonly service = inject(MyService)

  // Local state, computed, handlers...
}
  1. Checklist:

    • Standalone component ✅
    • input()/output() signals ✅
    • inject() for DI ✅
    • OnPush change detection ✅
    • < 200 lines ✅
    • kebab-case.component.ts ✅
  2. Validate: npx tsc --noEmit

Repository

fernandezbaptiste/specialist-agent

Path

packs/angular/skills/dev-create-component/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.