create-ai-project 1.16.0 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.claude/agents-en/document-reviewer.md +1 -0
  2. package/.claude/agents-en/prd-creator.md +2 -0
  3. package/.claude/agents-en/skill-creator.md +132 -0
  4. package/.claude/agents-en/skill-reviewer.md +123 -0
  5. package/.claude/agents-ja/document-reviewer.md +1 -0
  6. package/.claude/agents-ja/prd-creator.md +2 -0
  7. package/.claude/agents-ja/skill-creator.md +132 -0
  8. package/.claude/agents-ja/skill-reviewer.md +123 -0
  9. package/.claude/commands-en/build.md +1 -1
  10. package/.claude/commands-en/create-skill.md +93 -0
  11. package/.claude/commands-en/design.md +1 -1
  12. package/.claude/commands-en/implement.md +1 -1
  13. package/.claude/commands-en/plan.md +1 -1
  14. package/.claude/commands-en/refine-skill.md +27 -24
  15. package/.claude/commands-en/reverse-engineer.md +71 -10
  16. package/.claude/commands-en/review.md +3 -1
  17. package/.claude/commands-en/update-doc.md +22 -2
  18. package/.claude/commands-ja/build.md +1 -1
  19. package/.claude/commands-ja/create-skill.md +93 -0
  20. package/.claude/commands-ja/design.md +1 -1
  21. package/.claude/commands-ja/implement.md +1 -1
  22. package/.claude/commands-ja/plan.md +1 -1
  23. package/.claude/commands-ja/refine-skill.md +27 -24
  24. package/.claude/commands-ja/reverse-engineer.md +71 -10
  25. package/.claude/commands-ja/review.md +3 -1
  26. package/.claude/commands-ja/update-doc.md +22 -2
  27. package/.claude/skills-en/skill-optimization/SKILL.md +145 -0
  28. package/.claude/skills-en/skill-optimization/references/creation-guide.md +58 -0
  29. package/.claude/skills-en/skill-optimization/references/review-criteria.md +51 -0
  30. package/.claude/skills-en/task-analyzer/references/skills-index.yaml +32 -14
  31. package/.claude/skills-ja/skill-optimization/SKILL.md +145 -0
  32. package/.claude/skills-ja/skill-optimization/references/creation-guide.md +58 -0
  33. package/.claude/skills-ja/skill-optimization/references/review-criteria.md +51 -0
  34. package/.claude/skills-ja/task-analyzer/references/skills-index.yaml +40 -15
  35. package/CHANGELOG.md +43 -0
  36. package/README.ja.md +59 -67
  37. package/README.md +47 -61
  38. package/docs/guides/en/quickstart.md +18 -0
  39. package/docs/guides/en/skills-editing-guide.md +53 -5
  40. package/docs/guides/en/use-cases.md +30 -4
  41. package/docs/guides/ja/quickstart.md +18 -0
  42. package/docs/guides/ja/skills-editing-guide.md +53 -5
  43. package/docs/guides/ja/use-cases.md +30 -4
  44. package/package.json +1 -1
@@ -84,6 +84,24 @@ The workflow is: create design documents, review them with users to align unders
84
84
 
85
85
  For detailed mechanics, see [this article](https://dev.to/shinpr/zero-context-exhaustion-building-production-ready-ai-coding-teams-with-claude-code-sub-agents-31b).
86
86
 
87
+ ## What's Next?
88
+
89
+ Now that you're set up, here are common things you'll want to do and how to do them.
90
+
91
+ | "I want to..." | How |
92
+ |---|---|
93
+ | Have AI reference my library docs (llms.txt, API refs, etc.) | Add to an existing skill or [create a new one](./skills-editing-guide.md) — [see below](#example-where-to-put-library-documentation) |
94
+ | Enforce my team's coding conventions | Use `/create-skill` or [create a custom skill manually](./skills-editing-guide.md) |
95
+ | Set project-specific constraints and context | Run `/project-inject` |
96
+ | Learn the full set of available commands | [Use Cases & Commands](./use-cases.md) |
97
+ | Customize how agents behave | Edit skill files under `.claude/skills/` |
98
+
99
+ Skills are the primary way to give AI project-specific knowledge. See the [Skills Editing Guide](./skills-editing-guide.md) for how to create your own.
100
+
101
+ ### Example: Where to Put Library Documentation
102
+
103
+ Where to place library docs depends on your project — there's no single right answer. Think about **when AI needs the information** and **what it relates to**: add to an existing skill, a phase-specific doc, or create a dedicated skill. See the [Use Cases guide](./use-cases.md#want-ai-to-reference-specific-library-docs) for concrete examples and the [Skills Editing Guide](./skills-editing-guide.md#determining-where-to-document) for details.
104
+
87
105
  ## Troubleshooting
88
106
 
89
107
  If things aren't working, check the following.
@@ -61,13 +61,61 @@ description: Start with a verb. Use when: specify trigger conditions.
61
61
  # Skill content
62
62
  ```
63
63
 
64
+ ### Naming Conventions
65
+
66
+ Use consistent naming patterns. The [official recommendation](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices) suggests **gerund form** (verb + -ing) for clarity.
67
+
68
+ - **Gerund form (recommended)**: `processing-pdfs`, `managing-databases`, `testing-code`
69
+ - **Action-oriented (acceptable)**: `process-pdfs`, `analyze-spreadsheets`
70
+ - **Avoid vague names**: `helper`, `utils`, `tools`, `documents`
71
+
72
+ **Constraints**: lowercase letters, numbers, and hyphens only. Maximum 64 characters. Cannot contain "anthropic" or "claude".
73
+
64
74
  ### Writing Effective Descriptions
65
75
 
66
- The description is the most critical field — it determines skill selection accuracy.
76
+ The description is the most critical field — it determines skill selection accuracy. At startup, only metadata (name and description) from all skills is loaded. Claude uses descriptions to decide which skill to activate from potentially 100+ available skills. [Research indicates](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices) that well-optimized descriptions can improve activation rates from 20% to over 90%.
77
+
78
+ **Rules**:
67
79
 
68
- 1. **Start with a verb**: "Applies TDD process and inspects quality" not "Testing principles"
69
- 2. **Use "Use when:" with concrete triggers**: 3-5 triggers using expressions users actually say
70
- 3. **Over 200 characters signals a split**: The skill's responsibility may be too broad
80
+ 1. **Write in third person**: The description is injected into the system prompt. Inconsistent point-of-view causes discovery problems.
81
+ - Good: "Processes Excel files and generates reports"
82
+ - Avoid: "I can help you process Excel files"
83
+ - Avoid: "You can use this to process Excel files"
84
+ 2. **Start with a verb**: "Applies TDD process and inspects quality" not "Testing principles"
85
+ 3. **Use "Use when:" with concrete triggers**: 3-5 triggers using expressions users actually say
86
+ 4. **Be specific and include key terms**: Include both what the skill does and when to use it
87
+ 5. **Over 200 characters signals a split**: The skill's responsibility may be too broad
88
+
89
+ **Constraints**: Maximum 1024 characters. Cannot contain XML tags.
90
+
91
+ **Good examples**:
92
+ ```yaml
93
+ # Specific, verb-first, with triggers
94
+ description: Extracts text and tables from PDF files, fills forms, merges documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
95
+
96
+ description: Generates descriptive commit messages by analyzing git diffs. Use when the user asks for help writing commit messages or reviewing staged changes.
97
+ ```
98
+
99
+ **Bad examples**:
100
+ ```yaml
101
+ # Too vague — Claude can't determine when to activate
102
+ description: Helps with documents
103
+ description: Processes data
104
+ description: Does stuff with files
105
+ ```
106
+
107
+ ### Keep File References One Level Deep
108
+
109
+ Claude may partially read files when they're referenced from other referenced files. Keep all references directly from SKILL.md to ensure complete reads.
110
+
111
+ ```markdown
112
+ # Good: One level deep from SKILL.md
113
+ See [reference.md](reference.md) for API details
114
+ See [examples.md](examples.md) for usage patterns
115
+
116
+ # Bad: Nested references
117
+ # SKILL.md → advanced.md → details.md (Claude may not fully read details.md)
118
+ ```
71
119
 
72
120
  ### Progressive Disclosure
73
121
 
@@ -96,7 +144,7 @@ This mechanism maintains token efficiency even with many skills defined. Referen
96
144
  ## 9 Principles for Maximizing LLM Execution Accuracy
97
145
 
98
146
  Here are 9 skill creation principles based on LLM characteristics and this boilerplate's design philosophy.
99
- While we provide a `/refine-skill` command to assist with skill modifications, we ultimately recommend interactive editing through dialogue, as LLMs tend to have difficulty reaching issues without comparing output with thinking after generation.
147
+ We provide `/create-skill` for creating new skills through interactive dialog, and `/refine-skill` for modifying existing skills with quality review. We ultimately recommend interactive editing through dialogue, as LLMs tend to have difficulty reaching issues without comparing output with thinking after generation.
100
148
 
101
149
  ### 1. Achieve Maximum Accuracy with Minimum Description (Context Pressure vs. Execution Accuracy)
102
150
 
@@ -114,6 +114,32 @@ Fixes are created as task files under `docs/plans/tasks` and executed by sub-age
114
114
  /sync-skills # Sync skill metadata
115
115
  ```
116
116
 
117
+ ## Want AI to reference specific library docs?
118
+
119
+ Where to place library docs (like `llms.txt` URLs) depends on your project. Think about **when AI needs the information** and **what it relates to**:
120
+
121
+ - If a related skill already exists (e.g., a frontend skill covering React), **add the URL there** to keep context together
122
+ - If only needed during a specific phase (e.g., design), **add to that phase's skill or Design Doc**
123
+ - If used broadly across the project, **create a dedicated skill** via `/create-skill` or manually (e.g., `.claude/skills/my-library-docs/SKILL.md`)
124
+
125
+ After adding or creating a skill, run `/sync-skills` to register it. See the [Skills Editing Guide](./skills-editing-guide.md) for details on [where to document what](./skills-editing-guide.md#determining-where-to-document).
126
+
127
+ ## Want to add team-specific rules?
128
+
129
+ Use `/create-skill` to create a custom skill through interactive dialog:
130
+
131
+ ```bash
132
+ /create-skill team coding conventions and naming rules
133
+ ```
134
+
135
+ Or create one manually:
136
+
137
+ 1. Create `.claude/skills/my-team-rules/SKILL.md`
138
+ 2. Define your coding standards, naming conventions, architectural constraints, etc.
139
+ 3. Run `/sync-skills` to register the new skill
140
+
141
+ Any information you want AI to know about your project can be added as a skill.
142
+
117
143
  ---
118
144
 
119
145
  # Command Reference
@@ -216,11 +242,11 @@ Use when not adopting the full design-to-implementation process via `/implement`
216
242
  **Args**: What to change
217
243
  **Process**:
218
244
  1. Select skill file
219
- 2. Create change proposal
220
- 3. 3-pass review process
221
- 4. Apply
245
+ 2. Create change proposal against skill-optimization editing principles
246
+ 3. Quality review by skill-reviewer agent (grade A/B to proceed)
247
+ 4. Apply after user approval
222
248
 
223
- Assists with skill file editing. Since skills must be optimized for LLMs to maintain execution accuracy, creating optimal skills with this command alone is difficult. Refer to the [Skills Editing Guide](./skills-editing-guide.md) and refine skills through command usage or direct dialogue with LLMs.
249
+ Assists with skill file editing. Uses the skill-reviewer agent for quality evaluation. Since skills must be optimized for LLMs to maintain execution accuracy, creating optimal skills with this command alone is difficult. Refer to the [Skills Editing Guide](./skills-editing-guide.md) and refine skills through command usage or direct dialogue with LLMs.
224
250
 
225
251
  ### /sync-skills
226
252
  **Purpose**: Sync skill metadata
@@ -85,6 +85,24 @@ AI活用によるスループットを最大化するためには、極力人間
85
85
 
86
86
  詳しい仕組みについては、[こちらの記事](https://qiita.com/shinpr/items/98771c2b8d2e15cafcd5)で解説されています。興味があれば読んでみてください。
87
87
 
88
+ ## 次のステップ
89
+
90
+ セットアップが完了したら、よくあるカスタマイズのやり方を確認しておきましょう。
91
+
92
+ | やりたいこと | 方法 |
93
+ |---|---|
94
+ | AIにライブラリのドキュメント(llms.txt、APIリファレンス等)を参照させたい | 既存スキルに追記するか、[新規作成](./skills-editing-guide.md) — [判断例はこちら](#例ライブラリドキュメントの置き場所) |
95
+ | チームのコーディング規約をAIに守らせたい | `/create-skill`を使うか、[手動でカスタムスキルを作成](./skills-editing-guide.md) |
96
+ | プロジェクト固有の制約やコンテキストを設定したい | `/project-inject`を実行 |
97
+ | 利用可能なコマンドの全体像を知りたい | [ユースケース&コマンド](./use-cases.md) |
98
+ | エージェントの振る舞いをカスタマイズしたい | `.claude/skills/`配下のスキルファイルを編集 |
99
+
100
+ プロジェクト固有の知識をAIに伝えるにはスキルが一番手軽です。作り方は[スキル編集ガイド](./skills-editing-guide.md)を参照してください。
101
+
102
+ ### 例:ライブラリドキュメントの置き場所
103
+
104
+ ライブラリのドキュメント(`llms.txt`のURL等)をどこに置くかは、プロジェクトでの使われ方によって変わります。**AIがいつその情報を必要とするか**と**何と関連が深いか**で判断してください。既存スキルへの追記、フェーズ固有のドキュメントへの記載、専用スキルの作成など、いくつかのパターンがあります。具体的な判断例は[ユースケースガイド](./use-cases.md#aiにライブラリのドキュメントを参照させたいときは)に、詳しい判断基準は[スキル編集ガイド](./skills-editing-guide.md#どのファイルに記載するべきかの判断基準)にまとめています。
105
+
88
106
  ## トラブルシューティング
89
107
 
90
108
  うまくいかないときは、以下を確認してください。
@@ -61,13 +61,61 @@ description: 動詞で開始する説明文。Use when: トリガー条件を明
61
61
  # スキル本文
62
62
  ```
63
63
 
64
+ ### 命名規則
65
+
66
+ 一貫した命名パターンを使用する。[公式の推奨](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices)は**動名詞形**(verb + -ing)。
67
+
68
+ - **動名詞形(推奨)**: `processing-pdfs`, `managing-databases`, `testing-code`
69
+ - **動作形(許容)**: `process-pdfs`, `analyze-spreadsheets`
70
+ - **曖昧な名前は避ける**: `helper`, `utils`, `tools`, `documents`
71
+
72
+ **制約**: 小文字・数字・ハイフンのみ。最大64文字。"anthropic"や"claude"は使用不可。
73
+
64
74
  ### descriptionの書き方
65
75
 
66
- descriptionはスキル選択の精度を左右する最重要フィールド。
76
+ descriptionはスキル選択の精度を左右する最重要フィールド。起動時に全スキルのメタデータ(name, description)のみが読み込まれ、100以上のスキルから適切なものを選ぶ判断材料になる。[公式のベストプラクティス](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices)によると、descriptionを最適化するだけでスキルが正しく選ばれる確率が20%台から90%以上まで上がる。
77
+
78
+ **ルール**:
67
79
 
68
- 1. **動詞で開始する**: 「テストの原則」ではなく「TDDプロセスを適用し品質基準を検査」
69
- 2. **"Use when:"で具体的なトリガーを明示**: ユーザーが実際に使う表現で3-5個に絞る
70
- 3. **200文字を超えたら分割を検討**: 責務が広すぎるシグナル
80
+ 1. **三人称で書く**: descriptionはシステムプロンプトに埋め込まれる。視点がブレると正しく選ばれにくくなる。
81
+ - Good: "Processes Excel files and generates reports"
82
+ - Avoid: "I can help you process Excel files"
83
+ - Avoid: "You can use this to process Excel files"
84
+ 2. **動詞で開始する**: 「テストの原則」ではなく「TDDプロセスを適用し品質基準を検査」
85
+ 3. **"Use when:"で具体的なトリガーを明示**: ユーザーが実際に使う表現で3-5個に絞る
86
+ 4. **具体的でキーワードを含む**: スキルが何をするか、いつ使うかの両方を含める
87
+ 5. **200文字を超えたら分割を検討**: 責務が広すぎるシグナル
88
+
89
+ **制約**: 最大1024文字。XMLタグは使用不可。
90
+
91
+ **良い例**:
92
+ ```yaml
93
+ # 具体的、動詞始まり、トリガー付き
94
+ description: Extracts text and tables from PDF files, fills forms, merges documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
95
+
96
+ description: Generates descriptive commit messages by analyzing git diffs. Use when the user asks for help writing commit messages or reviewing staged changes.
97
+ ```
98
+
99
+ **悪い例**:
100
+ ```yaml
101
+ # 曖昧すぎる — Claudeがいつ活性化すべきか判断できない
102
+ description: Helps with documents
103
+ description: Processes data
104
+ description: Does stuff with files
105
+ ```
106
+
107
+ ### ファイル参照は1階層まで
108
+
109
+ 参照先のファイルからさらに別のファイルを参照している場合、Claudeが部分的にしか読み取れないことがある。SKILL.mdから直接参照する1階層に留める。
110
+
111
+ ```markdown
112
+ # Good: SKILL.mdから1階層
113
+ See [reference.md](reference.md) for API details
114
+ See [examples.md](examples.md) for usage patterns
115
+
116
+ # Bad: 入れ子の参照
117
+ # SKILL.md → advanced.md → details.md(details.mdが完全に読まれない可能性)
118
+ ```
71
119
 
72
120
  ### Progressive Disclosure(段階的開示)
73
121
 
@@ -96,7 +144,7 @@ descriptionはスキル選択の精度を左右する最重要フィールド。
96
144
  ## LLMの実行精度を最大化する9つの原則
97
145
 
98
146
  スキル作成の原則を9つ紹介します。
99
- `/refine-skill`コマンドも提供していますが、LLMは「生成後に出力と考え方を突き合わせなければ課題に到達しづらい」傾向があるため、対話的にスキルを修正することを最終的には推奨します。
147
+ スキル新規作成には`/create-skill`、既存スキルの品質レビュー付き修正には`/refine-skill`コマンドを提供しています。ただしLLMは「生成後に出力と考え方を突き合わせなければ課題に到達しづらい」傾向があるため、対話的にスキルを修正することを最終的には推奨します。
100
148
 
101
149
  ### 1. 最小記述で最大精度を実現する(コンテキスト圧迫 vs 実行精度)
102
150
 
@@ -104,6 +104,32 @@ LLMが規模を自動判定して、必要なドキュメントを作成して
104
104
  /sync-skills # スキルメタデータ同期
105
105
  ```
106
106
 
107
+ ## AIにライブラリのドキュメントを参照させたいときは?
108
+
109
+ ライブラリのドキュメント(`llms.txt`のURL等)の置き場所は、**AIがいつその情報を必要とするか**と**何と関連が深いか**で決めます。
110
+
111
+ - 関連するスキルが既にある場合(例:frontendスキルにReactの記載がある)→ **そのスキルにURLを追記**して関連情報をまとめる
112
+ - 特定フェーズでしか使わない場合(例:設計時のみ)→ **該当フェーズのスキルやDesign Docに記載**
113
+ - プロジェクト全体で横断的に使う場合 → `/create-skill`または手動で**専用スキルを作成**(例:`.claude/skills/my-library-docs/SKILL.md`)
114
+
115
+ スキルを追加・作成したら `/sync-skills` で登録してください。判断基準の詳細は[スキル編集ガイド](./skills-editing-guide.md)の[「どのファイルに記載するべきかの判断基準」](./skills-editing-guide.md#どのファイルに記載するべきかの判断基準)を参照してください。
116
+
117
+ ## チーム固有のルールをAIに守らせたいときは?
118
+
119
+ `/create-skill` を使うと、対話形式でカスタムスキルを作成できます。
120
+
121
+ ```bash
122
+ /create-skill チームのコーディング規約と命名規則
123
+ ```
124
+
125
+ 手動で作成する場合:
126
+
127
+ 1. `.claude/skills/my-team-rules/SKILL.md` を作成
128
+ 2. コーディング規約、命名規則、アーキテクチャ上の制約などを定義
129
+ 3. `/sync-skills` を実行して新しいスキルを登録
130
+
131
+ AIに知っておいてほしい情報があれば、スキルとして追加できます。
132
+
107
133
  ---
108
134
 
109
135
  # コマンドリファレンス
@@ -206,11 +232,11 @@ Design Docから作業計画書を作成します。また、実装に必要な
206
232
  **引数**: 変更したい内容
207
233
  **実行内容**:
208
234
  1. スキルファイル選択
209
- 2. 変更設計案作成
210
- 3. 3回見直しプロセス
211
- 4. 適用
235
+ 2. skill-optimizationの編集原則に照らして変更設計案を作成
236
+ 3. skill-reviewerエージェントによる品質レビュー(グレードA/Bで次へ進行)
237
+ 4. ユーザー承認後に適用
212
238
 
213
- スキルファイルの編集を支援します。スキルはLLMに最適化された文章にしなければ実行精度が落ちてしまうため、本コマンドだけで最良のスキルを作成することは困難です。[スキル編集ガイド](./skills-editing-guide.md)を参照し、コマンド活用もしくはLLMと直接対話しながら、スキルの整備を行なってください。
239
+ スキルファイルの編集を支援します。skill-reviewerエージェントによる品質評価を行います。スキルはLLMに最適化された文章にしなければ実行精度が落ちてしまうため、本コマンドだけで最良のスキルを作成することは困難です。[スキル編集ガイド](./skills-editing-guide.md)を参照し、コマンド活用もしくはLLMと直接対話しながら、スキルの整備を行なってください。
214
240
 
215
241
  ### /sync-skills
216
242
  **用途**: スキルメタデータの同期
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ai-project",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "packageManager": "npm@10.8.2",
5
5
  "description": "TypeScript boilerplate with skills and sub-agents for Claude Code. Prevents context exhaustion through role-based task splitting.",
6
6
  "keywords": [