jpskill.com
🛠️ 開発・MCP コミュニティ

angular-best-practices-rule-creator

For contributors to angular-best-practices. Creates new rule files and library skills following project conventions. Not for Angular application development — install angular-best-practices instead.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o angular-best-practices-rule-creator.zip https://jpskill.com/download/21605.zip && unzip -o angular-best-practices-rule-creator.zip && rm angular-best-practices-rule-creator.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21605.zip -OutFile "$d\angular-best-practices-rule-creator.zip"; Expand-Archive "$d\angular-best-practices-rule-creator.zip" -DestinationPath $d -Force; ri "$d\angular-best-practices-rule-creator.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して angular-best-practices-rule-creator.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → angular-best-practices-rule-creator フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1
📖 Claude が読む原文 SKILL.md(中身を展開)

この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。

Rule Creator Agent

Creates new Angular best practice rules and optional library skills following the exact project conventions.

Capabilities

1. Create a New Rule

When asked to create a rule:

  1. Determine the prefix from the rule filename (e.g., material-imports.md → prefix material)
  2. Look up the section number in packages/angular-best-practices-build/src/config.tssectionMap
  3. Place the file in the correct rules/ subdirectory based on the prefix:
    • test-*rules/testing/
    • a11y-*, ui-*, loading-*, dialogs-*, theming-*rules/ui/
    • http-*, mapper-*rules/data/
    • ts-*rules/typescript/
    • opt-*, bundle-*, async-*rules/optimization/
    • arch-*rules/core/
    • Everything else (signals, components, forms, rxjs, ngrx, material, primeng, spartan, transloco, etc.) → rules/angular/
  4. Copy the template from rules/_template.md
  5. Fill in the frontmatter and content following these rules:
    • Title: Verb + Subject (e.g., "Use Signal Inputs")
    • Description: 1 sentence max
    • Code blocks: 0-2 max (incorrect + correct, or just correct)
    • Code per block: 3-5 lines max
    • Total length: Under 50 lines (ideal 30-40)
    • No installation commands, configuration dumps, or folder structures
  6. Validate with the angular-best-practices-rules-reviewer skill

2. Create a New Library Skill

When asked to create a new optional library skill:

  1. Choose the next available section number (check SECTION_TITLES in config.ts)
  2. Update packages/angular-best-practices-build/src/config.ts:
    • Add prefix → section number in sectionMap
    • Add section title in SECTION_TITLES
    • Add section impact in SECTION_IMPACTS
    • Add entry in OPTIONAL_SKILLS array
  3. Add section definition in rules/_sections.md
  4. Create skills/<skill-name>/SKILL.md with frontmatter (name, description, metadata, tags, globs). Read .claude/skills/angular-best-practices-rules-reviewer/references/skill-best-practices.md for SKILL.md quality standards.
  5. Create initial rule files in rules/angular/ with the skill's prefix
  6. Run npm run build to generate AGENTS.md files

Prefix → Section Mapping (Current)

Prefix Section Title
async, opt-async 1 Eliminating Waterfalls
bundle 2 Bundle Optimization
opt, performance 3 JavaScript Performance
ts 4 TypeScript Best Practices
signal 5 Signals & Reactivity
component 6 Component Patterns
rxjs 7 RxJS Patterns
cd 8 Change Detection
template 9 Template Optimization
ssr 10 SSR & Hydration
form 11 Forms
ngrx 12 NgRx State Management
signalstore 13 SignalStore
tanstack 14 TanStack Query
arch 15 Architecture
test 16 Testing
core, di, error-handling, observability, pattern, routing, security 17 Infrastructure
ui, a11y, loading, dialogs, theming 18 UI & Accessibility
http, mapper 19 Data Handling
material 20 Angular Material
primeng 21 PrimeNG
spartan 22 Spartan UI
transloco 23 Internationalization

File Placement

Subdirectory Prefixes
rules/angular/ signal, component, rxjs, cd, template, ssr, form, ngrx, signalstore, tanstack, material, primeng, spartan, transloco
rules/testing/ test
rules/ui/ ui, a11y, loading, dialogs, theming
rules/typescript/ ts
rules/optimization/ opt, bundle, async, performance
rules/core/ arch, core, di, error-handling, observability, pattern, routing, security
rules/data/ http, mapper

Template Reference

---
title: Verb + Subject
impact: MEDIUM
impactDescription: Brief metric (e.g., "2-10x faster", "O(n) to O(1)")
tags: tag1, tag2
---

## Verb + Subject

One sentence explaining the rule.

**Incorrect:**

\`\`\`typescript
// 3-5 lines max
\`\`\`

**Correct:**

\`\`\`typescript
// 3-5 lines max
\`\`\`

Build Commands

npm run build                    # Regenerate all AGENTS.md files
npm run build:skip-validation    # Skip validation during development