跳到正文
cccskills
免费在 GitHub 公开

mk:angular

Use when working with Angular code — components, signals, services, forms, routing, HTTP, testing, SSR, or tooling. Targets Angular v20+ modern patterns. Auto-activates on .ts files in Angular projects (detected via angular.json).

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(12)

  • SKILL.md3.8 KB
  • references/component.md6.2 KB
  • references/di.md7.7 KB
  • references/directives.md10.2 KB
  • references/forms.md10.0 KB
  • references/gotchas.md4.2 KB
  • references/http.md8.2 KB
  • references/routing.md8.4 KB
  • references/signals.md6.9 KB
  • references/ssr.md10.5 KB
  • references/testing.md10.9 KB
  • references/tooling.md9.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Angular

Angular v20+ patterns — 10 topics consolidated with progressive disclosure.

v20+ Modern Defaults (apply always)

  • Standalone components are default — no NgModule needed
  • Signal-based inputs/outputs — use input(), input.required(), output() (not @Input/@Output)
  • Signal-based state — use signal(), computed(), linkedSignal() (not BehaviorSubject)
  • inject() function — use inject() in field initializers (not constructor injection)
  • Native control flow — use @if, @for with track, @switch (not *ngIf/*ngFor)
  • OnPush change detection — always set changeDetection: ChangeDetectionStrategy.OnPush
  • Functional guards/resolvers — use functions (not class-based guards)
  • resource() / httpResource() — prefer over manual HttpClient subscribe for data loading

When to Read Each Reference

Task involvesRead
Components, templates, host bindings, content projectionreferences/component.md
signal(), computed(), linkedSignal(), effect(), reactive statereferences/signals.md
inject(), providers, injection tokens, servicesreferences/di.md
Custom directives, DOM manipulation, host listenersreferences/directives.md
Forms, validation, signal forms APIreferences/forms.md
HTTP calls, resource(), httpResource(), interceptorsreferences/http.md
Routes, lazy loading, guards, resolvers, navigationreferences/routing.md
SSR, hydration, prerendering, browser-only APIsreferences/ssr.md
Unit tests, integration tests, TestBed, Vitestreferences/testing.md
Angular CLI, schematics, build config, project setupreferences/tooling.md

Read multiple references when task spans topics (e.g., component + signals + forms).

Gotchas (top 5 — most common Claude mistakes)

  1. Using @Input/@Output decorators: deprecated in v20+ → use input(), output() signal functions
  2. **Using ngIf/ngFor: deprecated template syntax → use @if, @for with track expression
  3. Constructor injection: outdated pattern → use inject() in field initializers
  4. BehaviorSubject for component state: over-complex → use signal() + computed()
  5. Class-based guards/interceptors: deprecated → use functional CanActivateFn, HttpInterceptorFn

Full list: references/gotchas.md

Workflow Integration

Auto-activates during Phase 3 (Build) when Angular project detected (angular.json or @angular/core in package.json). Loaded by developer agent alongside mk:typescript.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

mk-advise

免费

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

查看 ngocsangyem 的全部技能

报告此技能的问题