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.
- package/.claude/agents-en/document-reviewer.md +1 -0
- package/.claude/agents-en/prd-creator.md +2 -0
- package/.claude/agents-en/skill-creator.md +132 -0
- package/.claude/agents-en/skill-reviewer.md +123 -0
- package/.claude/agents-ja/document-reviewer.md +1 -0
- package/.claude/agents-ja/prd-creator.md +2 -0
- package/.claude/agents-ja/skill-creator.md +132 -0
- package/.claude/agents-ja/skill-reviewer.md +123 -0
- package/.claude/commands-en/build.md +1 -1
- package/.claude/commands-en/create-skill.md +93 -0
- package/.claude/commands-en/design.md +1 -1
- package/.claude/commands-en/implement.md +1 -1
- package/.claude/commands-en/plan.md +1 -1
- package/.claude/commands-en/refine-skill.md +27 -24
- package/.claude/commands-en/reverse-engineer.md +71 -10
- package/.claude/commands-en/review.md +3 -1
- package/.claude/commands-en/update-doc.md +22 -2
- package/.claude/commands-ja/build.md +1 -1
- package/.claude/commands-ja/create-skill.md +93 -0
- package/.claude/commands-ja/design.md +1 -1
- package/.claude/commands-ja/implement.md +1 -1
- package/.claude/commands-ja/plan.md +1 -1
- package/.claude/commands-ja/refine-skill.md +27 -24
- package/.claude/commands-ja/reverse-engineer.md +71 -10
- package/.claude/commands-ja/review.md +3 -1
- package/.claude/commands-ja/update-doc.md +22 -2
- package/.claude/skills-en/skill-optimization/SKILL.md +145 -0
- package/.claude/skills-en/skill-optimization/references/creation-guide.md +58 -0
- package/.claude/skills-en/skill-optimization/references/review-criteria.md +51 -0
- package/.claude/skills-en/task-analyzer/references/skills-index.yaml +32 -14
- package/.claude/skills-ja/skill-optimization/SKILL.md +145 -0
- package/.claude/skills-ja/skill-optimization/references/creation-guide.md +58 -0
- package/.claude/skills-ja/skill-optimization/references/review-criteria.md +51 -0
- package/.claude/skills-ja/task-analyzer/references/skills-index.yaml +40 -15
- package/CHANGELOG.md +43 -0
- package/README.ja.md +59 -67
- package/README.md +47 -61
- package/docs/guides/en/quickstart.md +18 -0
- package/docs/guides/en/skills-editing-guide.md +53 -5
- package/docs/guides/en/use-cases.md +30 -4
- package/docs/guides/ja/quickstart.md +18 -0
- package/docs/guides/ja/skills-editing-guide.md +53 -5
- package/docs/guides/ja/use-cases.md +30 -4
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ description: Orchestrate the complete implementation lifecycle from requirements
|
|
|
4
4
|
|
|
5
5
|
**Command Context**: Full-cycle implementation management (Requirements Analysis → Design → Planning → Implementation → Quality Assurance)
|
|
6
6
|
|
|
7
|
-
Strictly adhere to subagents-orchestration-guide skill and operate as an orchestrator.
|
|
7
|
+
Strictly adhere to subagents-orchestration-guide skill and operate as an orchestrator — your role is to invoke sub-agents, pass data between them, and report results.
|
|
8
8
|
|
|
9
9
|
## Execution Decision Flow
|
|
10
10
|
|
|
@@ -9,7 +9,7 @@ description: Create work plan from design document and obtain plan approval
|
|
|
9
9
|
**Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
|
|
10
10
|
|
|
11
11
|
**Execution Protocol**:
|
|
12
|
-
1. **Delegate all work** to sub-agents
|
|
12
|
+
1. **Delegate all work** to sub-agents — your role is to invoke sub-agents, pass data between them, and report results
|
|
13
13
|
2. **Follow subagents-orchestration-guide skill planning flow exactly**:
|
|
14
14
|
- Execute steps defined below
|
|
15
15
|
- **Stop and obtain approval** for plan content before completion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Implement user skill change requests with
|
|
2
|
+
description: Implement user skill change requests with optimization pattern evaluation
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
**Command Context**: Workflow for understanding skill file change requests and implementing with
|
|
5
|
+
**Command Context**: Workflow for understanding skill file change requests and implementing with quality-assured optimization.
|
|
6
6
|
|
|
7
7
|
Change request: $ARGUMENTS
|
|
8
8
|
|
|
@@ -38,37 +38,38 @@ Present before/after comparison of current state and proposed change:
|
|
|
38
38
|
Proceed with this design? (y/n)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
**Design 9-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
5. Transform NG examples to recommendation format (background: including NG examples)
|
|
47
|
-
6. Consistent notation
|
|
48
|
-
7. Make implicit prerequisites explicit
|
|
49
|
-
8. Description order: most important first, exceptions last
|
|
50
|
-
9. Clear scope boundaries: what's covered vs what's not
|
|
41
|
+
**Design Checklist**: Evaluate proposal against the 9 editing principles defined in skill-optimization skill. Key focus areas:
|
|
42
|
+
- Context efficiency: every added sentence must contribute to LLM decision-making
|
|
43
|
+
- Measurability: all criteria use if-then format or concrete thresholds
|
|
44
|
+
- Deduplication: verify no overlap with other skill files
|
|
45
|
+
- Scope boundaries: confirm changes stay within this skill's responsibility
|
|
51
46
|
|
|
52
|
-
### Step 3:
|
|
47
|
+
### Step 3: Quality Review
|
|
53
48
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
Invoke skill-reviewer agent via Task tool:
|
|
50
|
+
- Pass the modified SKILL.md content
|
|
51
|
+
- Review mode: `modification`
|
|
57
52
|
|
|
58
|
-
|
|
53
|
+
**Review outcome handling:**
|
|
54
|
+
- Grade A or B: proceed to Step 4
|
|
55
|
+
- Grade C: revise changes based on reviewer's action items and re-review (max 2 iterations)
|
|
56
|
+
- Reviewer identifies issues outside the change scope: report to user as separate improvement opportunities
|
|
59
57
|
|
|
60
58
|
### Step 4: Approval and Implementation
|
|
61
59
|
|
|
62
60
|
1. Present before/after comparison to user and obtain approval
|
|
63
|
-
2.
|
|
64
|
-
3.
|
|
65
|
-
4.
|
|
61
|
+
2. Include skill-reviewer's grade and any remaining action items
|
|
62
|
+
3. Confirm user intent alignment: "Do the changes achieve what you originally requested?"
|
|
63
|
+
4. Apply changes with appropriate tool
|
|
64
|
+
4. Verify with git diff
|
|
65
|
+
5. If reviewer flagged issues outside change scope, list them as optional follow-ups
|
|
66
|
+
6. Suggest `/sync-skills` execution
|
|
66
67
|
|
|
67
68
|
## Completion Criteria
|
|
68
69
|
|
|
69
70
|
- [ ] Identified target skill and understood current state
|
|
70
|
-
- [ ] Reviewed design proposal against
|
|
71
|
-
- [ ]
|
|
71
|
+
- [ ] Reviewed design proposal against skill-optimization editing principles
|
|
72
|
+
- [ ] skill-reviewer returned grade A or B
|
|
72
73
|
- [ ] Obtained user approval
|
|
73
74
|
- [ ] Applied changes and verified with git diff
|
|
74
75
|
- [ ] Suggested /sync-skills execution
|
|
@@ -78,7 +79,9 @@ Final check: "Are necessary and sufficient conditions present for accurate imple
|
|
|
78
79
|
| Error | Action |
|
|
79
80
|
|-------|--------|
|
|
80
81
|
| Skill not found | Display available skill list |
|
|
81
|
-
| Large change detected (50%+) | Suggest phased implementation |
|
|
82
|
+
| Large change detected (50%+ of file) | Suggest phased implementation |
|
|
82
83
|
| Responsibility overlap with other skills | Confirm boundaries and defer to user judgment |
|
|
84
|
+
| Grade C after 2 review iterations | Present changes with issues list, let user decide |
|
|
85
|
+
| Reviewer identifies regression | Revert specific change causing regression, re-review |
|
|
83
86
|
|
|
84
|
-
**Scope**: Understanding user change requests and implementing with
|
|
87
|
+
**Scope**: Understanding user change requests and implementing with quality-assured optimization. Quality evaluation delegated to skill-reviewer agent. Metadata sync through /sync-skills.
|
|
@@ -6,6 +6,15 @@ description: Generate PRD and Design Docs from existing codebase through discove
|
|
|
6
6
|
|
|
7
7
|
Target: $ARGUMENTS
|
|
8
8
|
|
|
9
|
+
## Orchestrator Definition
|
|
10
|
+
|
|
11
|
+
**Core Identity**: "I am not a worker. I am an orchestrator." (see subagents-orchestration-guide skill)
|
|
12
|
+
|
|
13
|
+
**Execution Protocol**:
|
|
14
|
+
1. **Delegate all work** to sub-agents — your role is to invoke sub-agents, pass data between them, and report results
|
|
15
|
+
2. **Pass structured JSON** between steps using `$STEP_N_OUTPUT` placeholder notation
|
|
16
|
+
3. **Never investigate code yourself** — all code reading is done by sub-agents
|
|
17
|
+
|
|
9
18
|
**TodoWrite**: Register phases first, then steps within each phase as you enter it.
|
|
10
19
|
|
|
11
20
|
## Step 0: Initial Configuration
|
|
@@ -39,8 +48,6 @@ Phase 2: Design Doc Generation (if requested)
|
|
|
39
48
|
※ fullstack=Yes: units may produce backend + frontend Design Docs based on scope
|
|
40
49
|
```
|
|
41
50
|
|
|
42
|
-
**Context Passing**: Pass structured JSON output between steps. Use `$STEP_N_OUTPUT` placeholder notation.
|
|
43
|
-
|
|
44
51
|
## Phase 1: PRD Generation
|
|
45
52
|
|
|
46
53
|
**Register in TodoWrite**:
|
|
@@ -70,7 +77,7 @@ prompt: |
|
|
|
70
77
|
|
|
71
78
|
### Step 2-5: Per-Unit Processing
|
|
72
79
|
|
|
73
|
-
**
|
|
80
|
+
**FOR** each unit in `$STEP_1_OUTPUT.discoveredUnits` **(sequential, one unit at a time):**
|
|
74
81
|
|
|
75
82
|
#### Step 2: PRD Generation
|
|
76
83
|
|
|
@@ -96,6 +103,8 @@ prompt: |
|
|
|
96
103
|
|
|
97
104
|
#### Step 3: Code Verification
|
|
98
105
|
|
|
106
|
+
**Prerequisite**: $STEP_2_OUTPUT (PRD path from Step 2)
|
|
107
|
+
|
|
99
108
|
**Task invocation**:
|
|
100
109
|
```
|
|
101
110
|
subagent_type: code-verifier
|
|
@@ -158,10 +167,13 @@ prompt: |
|
|
|
158
167
|
## Review Feedback
|
|
159
168
|
$STEP_4_OUTPUT
|
|
160
169
|
|
|
161
|
-
##
|
|
162
|
-
|
|
170
|
+
## Code Verification Results
|
|
171
|
+
$STEP_3_OUTPUT
|
|
163
172
|
|
|
164
|
-
|
|
173
|
+
Address each issue by severity:
|
|
174
|
+
- critical: Must fix — incorrect or missing core behavior
|
|
175
|
+
- important: Should fix — improves accuracy or completeness
|
|
176
|
+
- recommended: May fix — stylistic or minor improvements
|
|
165
177
|
```
|
|
166
178
|
|
|
167
179
|
**Loop Control**: Maximum 2 revision cycles. After 2 cycles, flag for human review regardless of status.
|
|
@@ -195,13 +207,15 @@ Map `$STEP_1_OUTPUT` units to Design Doc generation targets, carrying forward:
|
|
|
195
207
|
|
|
196
208
|
### Step 7-10: Per-Unit Processing
|
|
197
209
|
|
|
198
|
-
**
|
|
210
|
+
**FOR** each unit in `$STEP_6_OUTPUT.designDocTargets` **(sequential, one unit at a time):**
|
|
199
211
|
|
|
200
212
|
#### Step 7: Design Doc Generation
|
|
201
213
|
|
|
202
214
|
Generate Design Docs per unit based on `$STEP_6_OUTPUT` mapping.
|
|
203
215
|
|
|
204
|
-
|
|
216
|
+
When fullstack=Yes, invoke 7a then 7b sequentially (7b depends on 7a output).
|
|
217
|
+
|
|
218
|
+
**7a.** Backend Design Doc (technical-designer):
|
|
205
219
|
|
|
206
220
|
When fullstack=Yes: append "Focus on: API contracts, data layer, business logic, service architecture." to the prompt.
|
|
207
221
|
|
|
@@ -226,7 +240,7 @@ prompt: |
|
|
|
226
240
|
|
|
227
241
|
**Store output as**: `$STEP_7_OUTPUT`
|
|
228
242
|
|
|
229
|
-
**Frontend Design Doc
|
|
243
|
+
**7b.** Frontend Design Doc (fullstack, units with frontend scope):
|
|
230
244
|
|
|
231
245
|
```
|
|
232
246
|
subagent_type: technical-designer-frontend
|
|
@@ -299,7 +313,54 @@ prompt: |
|
|
|
299
313
|
|
|
300
314
|
#### Step 10: Revision (conditional)
|
|
301
315
|
|
|
302
|
-
|
|
316
|
+
**Trigger Conditions** (any one of the following):
|
|
317
|
+
- Review status is "Needs Revision" or "Rejected"
|
|
318
|
+
- Critical discrepancies exist in `$STEP_8_OUTPUT`
|
|
319
|
+
- consistencyScore < 70
|
|
320
|
+
|
|
321
|
+
**Backend Design Doc revision** (technical-designer):
|
|
322
|
+
```
|
|
323
|
+
subagent_type: technical-designer
|
|
324
|
+
prompt: |
|
|
325
|
+
Update Design Doc based on review feedback.
|
|
326
|
+
|
|
327
|
+
Operation Mode: update
|
|
328
|
+
Existing Document: $STEP_7_OUTPUT
|
|
329
|
+
|
|
330
|
+
## Review Feedback
|
|
331
|
+
$STEP_9_OUTPUT
|
|
332
|
+
|
|
333
|
+
## Code Verification Results
|
|
334
|
+
$STEP_8_OUTPUT
|
|
335
|
+
|
|
336
|
+
Address each issue by severity:
|
|
337
|
+
- critical: Must fix — incorrect or missing core behavior
|
|
338
|
+
- important: Should fix — improves accuracy or completeness
|
|
339
|
+
- recommended: May fix — stylistic or minor improvements
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
**Frontend Design Doc revision** (fullstack, technical-designer-frontend):
|
|
343
|
+
```
|
|
344
|
+
subagent_type: technical-designer-frontend
|
|
345
|
+
prompt: |
|
|
346
|
+
Update frontend Design Doc based on review feedback.
|
|
347
|
+
|
|
348
|
+
Operation Mode: update
|
|
349
|
+
Existing Document: $STEP_7_FRONTEND_OUTPUT
|
|
350
|
+
|
|
351
|
+
## Review Feedback
|
|
352
|
+
$STEP_9_OUTPUT
|
|
353
|
+
|
|
354
|
+
## Code Verification Results
|
|
355
|
+
$STEP_8_OUTPUT
|
|
356
|
+
|
|
357
|
+
Address each issue by severity:
|
|
358
|
+
- critical: Must fix — incorrect or missing core behavior
|
|
359
|
+
- important: Should fix — improves accuracy or completeness
|
|
360
|
+
- recommended: May fix — stylistic or minor improvements
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
**Loop Control**: Maximum 2 revision cycles. After 2 cycles, flag for human review regardless of status.
|
|
303
364
|
|
|
304
365
|
#### Unit Completion
|
|
305
366
|
|
|
@@ -34,6 +34,8 @@ Validate Design Doc compliance:
|
|
|
34
34
|
- Code quality check
|
|
35
35
|
- Implementation completeness assessment
|
|
36
36
|
|
|
37
|
+
**Store output as**: `$STEP_2_OUTPUT`
|
|
38
|
+
|
|
37
39
|
### 3. Verdict and Response
|
|
38
40
|
|
|
39
41
|
**Criteria (considering project stage)**:
|
|
@@ -60,7 +62,7 @@ If user selects `y`:
|
|
|
60
62
|
1. **Update TodoWrite**: Register work steps. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Create task file following task template (see documentation-criteria skill) -> `docs/plans/tasks/review-fixes-YYYYMMDD.md`
|
|
61
63
|
2. **Execute task-executor**: Staged auto-fixes (stops at 5 files)
|
|
62
64
|
3. **Execute quality-fixer**: Confirm quality gate passage
|
|
63
|
-
4. **Re-validate**:
|
|
65
|
+
4. **Re-validate**: Re-validate Design Doc compliance after fixes. Prior compliance issues: $STEP_2_OUTPUT. Verify each prior issue is resolved.
|
|
64
66
|
|
|
65
67
|
### 4. Final Report
|
|
66
68
|
```
|
|
@@ -11,7 +11,7 @@ description: Update existing design documents (Design Doc / PRD / ADR) with revi
|
|
|
11
11
|
**First Action**: Register Steps 1-6 to TodoWrite before any execution.
|
|
12
12
|
|
|
13
13
|
**Execution Protocol**:
|
|
14
|
-
1. **Delegate all work** to sub-agents
|
|
14
|
+
1. **Delegate all work** to sub-agents — your role is to invoke sub-agents, pass data between them, and report results
|
|
15
15
|
2. **Execute update flow**:
|
|
16
16
|
- Identify target → Clarify changes → Update document → Review → Consistency check
|
|
17
17
|
- **Stop at every `[Stop: ...]` marker** → Wait for user approval before proceeding
|
|
@@ -125,9 +125,29 @@ prompt: |
|
|
|
125
125
|
- Completeness of change history
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
+
**Store output as**: `$STEP_5_OUTPUT`
|
|
129
|
+
|
|
128
130
|
**On review result**:
|
|
129
131
|
- Approved → Proceed to Step 6
|
|
130
|
-
- Needs revision → Return to Step 4 with
|
|
132
|
+
- Needs revision → Return to Step 4 with the following prompt:
|
|
133
|
+
```
|
|
134
|
+
subagent_type: [Update Agent from Step 2]
|
|
135
|
+
description: "Revise [Type] based on review feedback"
|
|
136
|
+
prompt: |
|
|
137
|
+
Operation Mode: update
|
|
138
|
+
Existing Document: [path from Step 1]
|
|
139
|
+
|
|
140
|
+
## Prior Review Feedback
|
|
141
|
+
$STEP_5_OUTPUT
|
|
142
|
+
|
|
143
|
+
Address each issue by severity:
|
|
144
|
+
- critical: Must fix
|
|
145
|
+
- important: Should fix
|
|
146
|
+
- recommended: May fix
|
|
147
|
+
|
|
148
|
+
Apply corrections and update change history.
|
|
149
|
+
```
|
|
150
|
+
(max 2 iterations)
|
|
131
151
|
- **After 2 rejections** → Flag for human review, present accumulated feedback to user and end
|
|
132
152
|
|
|
133
153
|
Present review result to user for approval.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 対話的にユーザーの知識を収集し、最適化されたスキルを作成
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
**コマンドコンテキスト**: 対話を通じてユーザーの知識を収集し、最適化されたスキルファイルを生成・レビューするワークフロー。
|
|
6
|
+
|
|
7
|
+
スキルのトピック: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
## 実行プロセス
|
|
10
|
+
|
|
11
|
+
以下のステップをTodoWriteに登録し、順番に進行する。
|
|
12
|
+
|
|
13
|
+
### Step 1: 事前確認
|
|
14
|
+
|
|
15
|
+
1. 既存スキルをGlob: `.claude/skills/*/SKILL.md`
|
|
16
|
+
2. `$ARGUMENTS`が既存スキル名と一致する場合: `/refine-skill`を提案して終了
|
|
17
|
+
3. 既存スキル名の一覧をユーザーに提示
|
|
18
|
+
|
|
19
|
+
### Step 2: スキル知識の収集
|
|
20
|
+
|
|
21
|
+
AskUserQuestionで3ラウンドに分けて情報を収集する。
|
|
22
|
+
|
|
23
|
+
**ラウンド1: スキルの本質**
|
|
24
|
+
- このスキルはどのドメイン知識を体系化するか?(1-2文)
|
|
25
|
+
- スキル適用時の主な目的は?(例: 「型安全性の確保」「テストパターンの標準化」)
|
|
26
|
+
|
|
27
|
+
**ラウンド2: スコープと使用場面**
|
|
28
|
+
- どのような場面でこのスキルを有効化すべきか? 具体的なシナリオを3-5個(例: 「ユニットテスト作成時」「セキュリティ観点でのPRレビュー時」)
|
|
29
|
+
- このスキルが明示的に扱わない範囲は?(スコープ境界)
|
|
30
|
+
|
|
31
|
+
**ラウンド3: 判断基準とコンテンツ**
|
|
32
|
+
- 具体的なルールや基準は?(体系化すべき中核知識)
|
|
33
|
+
- 良い/悪いパターンの具体例は?
|
|
34
|
+
- このスキルが準拠する外部参照や標準は?
|
|
35
|
+
|
|
36
|
+
### Step 3: スキル名と構造の決定
|
|
37
|
+
|
|
38
|
+
1. 既存の命名規則に従い名詞/動名詞形式のスキル名を導出:
|
|
39
|
+
- `coding-standards`, `typescript-rules`, `implementation-approach`(名詞/動名詞の複合語)
|
|
40
|
+
2. 収集した内容量からサイズを見積もり
|
|
41
|
+
3. スキル名と構造をAskUserQuestionで確認
|
|
42
|
+
|
|
43
|
+
### Step 4: スキルコンテンツの生成
|
|
44
|
+
|
|
45
|
+
収集した情報を渡してskill-creatorエージェントをTask toolで起動:
|
|
46
|
+
- ラウンド3の生の知識
|
|
47
|
+
- Step 3のスキル名
|
|
48
|
+
- ラウンド2の使用場面
|
|
49
|
+
- ラウンド2のスコープ
|
|
50
|
+
- ラウンド3の判断基準
|
|
51
|
+
|
|
52
|
+
### Step 5: 生成コンテンツのレビュー
|
|
53
|
+
|
|
54
|
+
skill-reviewerエージェントをTask toolで起動:
|
|
55
|
+
- skill-creatorの生成コンテンツを渡す
|
|
56
|
+
- レビューモード: `creation`
|
|
57
|
+
|
|
58
|
+
グレードC: reviewerの修正提案に基づき修正し再レビュー(最大2回)。
|
|
59
|
+
グレードAまたはB: Step 6へ進行。
|
|
60
|
+
|
|
61
|
+
### Step 6: ユーザー確認と書き込み
|
|
62
|
+
|
|
63
|
+
1. 生成したSKILL.mdの内容をユーザーに提示し最終承認を取得
|
|
64
|
+
2. 意図の整合性を確認: 「このスキルは説明いただいた知識と基準を正しく反映していますか?」
|
|
65
|
+
3. 修正要望がある場合: 変更を適用しskill-reviewerを再実行
|
|
66
|
+
4. 承認後、`.claude/skills/{スキル名}/SKILL.md`に書き込み
|
|
67
|
+
5. `/sync-skills`の実行を提案
|
|
68
|
+
|
|
69
|
+
## 完了条件
|
|
70
|
+
|
|
71
|
+
- [ ] 既存スキルとの名前衝突がない
|
|
72
|
+
- [ ] 3ラウンドの対話でスキル知識を収集済み
|
|
73
|
+
- [ ] スキル名をユーザーが確認済み
|
|
74
|
+
- [ ] skill-creatorが有効なJSON出力を返却
|
|
75
|
+
- [ ] skill-reviewerがグレードAまたはBを返却
|
|
76
|
+
- [ ] ユーザーが最終コンテンツを承認済み
|
|
77
|
+
- [ ] `.claude/skills/{スキル名}/SKILL.md`に書き込み済み
|
|
78
|
+
- [ ] `/sync-skills`の実行を提案済み
|
|
79
|
+
|
|
80
|
+
## エラーハンドリング
|
|
81
|
+
|
|
82
|
+
| エラー | アクション |
|
|
83
|
+
|--------|-----------|
|
|
84
|
+
| スキル名が既存と重複 | `/refine-skill {スキル名}`を提案 |
|
|
85
|
+
| 3ラウンドで知識が不足 | 対象を絞った追加質問(最大2問) |
|
|
86
|
+
| skill-creatorが無効なJSONを返却 | 入力を簡素化して1回再試行 |
|
|
87
|
+
| 2回のレビューでもグレードC | 現在の内容と問題リストを提示し、ユーザーに判断を委ねる |
|
|
88
|
+
| ユーザーが生成内容を却下 | 具体的なフィードバックを収集し、調整してskill-creatorを再実行 |
|
|
89
|
+
|
|
90
|
+
## スコープ境界
|
|
91
|
+
|
|
92
|
+
**このコマンドが担当**: 対話による知識収集、creatorとreviewerエージェントの連携、ファイル書き込み。
|
|
93
|
+
**このコマンドは担当しない**: スキルコンテンツの最適化ロジック(skill-creatorに委譲)、品質評価ロジック(skill-reviewerに委譲)、メタデータ同期(`/sync-skills`に委譲)。
|
|
@@ -9,7 +9,7 @@ description: 要件分析から設計書作成まで実行
|
|
|
9
9
|
**コアアイデンティティ**: 「私は作業者ではない。オーケストレーターである。」(subagents-orchestration-guideスキル参照)
|
|
10
10
|
|
|
11
11
|
**実行プロトコル**:
|
|
12
|
-
1.
|
|
12
|
+
1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
|
|
13
13
|
2. **subagents-orchestration-guideスキルの設計フローに厳密に従う**:
|
|
14
14
|
- 実行: requirement-analyzer → technical-designer → document-reviewer → design-sync
|
|
15
15
|
- **`[停止: ...]`マーカーで必ず停止** → 次に進む前にユーザー承認を待つ
|
|
@@ -9,7 +9,7 @@ description: 設計書から作業計画書を作成し計画承認を取得
|
|
|
9
9
|
**コアアイデンティティ**: 「私は作業者ではない。オーケストレーターである。」(subagents-orchestration-guideスキル参照)
|
|
10
10
|
|
|
11
11
|
**実行プロトコル**:
|
|
12
|
-
1.
|
|
12
|
+
1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
|
|
13
13
|
2. **subagents-orchestration-guideスキルの計画フローに厳密に従う**:
|
|
14
14
|
- 以下のステップを実行
|
|
15
15
|
- **完了前に計画承認を取得**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: ユーザーのスキル変更要求を最適化パターン評価付きで実装
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
**コマンドコンテキスト**:
|
|
5
|
+
**コマンドコンテキスト**: スキルファイルの変更要求を理解し、品質評価を伴う最適化で実装するワークフロー。
|
|
6
6
|
|
|
7
7
|
変更要求: $ARGUMENTS
|
|
8
8
|
|
|
@@ -38,37 +38,38 @@ description: ユーザーのスキル変更要求を精度最大化して実装
|
|
|
38
38
|
この設計で進めますか? (y/n)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
5. NG例は背景情報として推奨形式に変換
|
|
47
|
-
6. 一貫した表記
|
|
48
|
-
7. 暗黙前提を明示化
|
|
49
|
-
8. 記述順序: 冒頭=最重要、末尾=例外
|
|
50
|
-
9. スコープ境界: 扱う/扱わない範囲を明示
|
|
41
|
+
**設計チェックリスト**: skill-optimizationスキルの9つの編集原則に照らして設計案を評価。重点項目:
|
|
42
|
+
- コンテキスト効率: 追加する全文がLLMの判断に寄与するか
|
|
43
|
+
- 測定可能性: 全基準がif-then形式または具体的閾値か
|
|
44
|
+
- 重複排除: 他スキルファイルとの重複がないか
|
|
45
|
+
- スコープ境界: 変更内容がこのスキルの責務範囲内か
|
|
51
46
|
|
|
52
|
-
### Step 3:
|
|
47
|
+
### Step 3: 品質レビュー
|
|
53
48
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
skill-reviewerエージェントをTask toolで起動:
|
|
50
|
+
- 変更後のSKILL.md全文を渡す
|
|
51
|
+
- レビューモード: `modification`
|
|
57
52
|
|
|
58
|
-
|
|
53
|
+
**レビュー結果の処理:**
|
|
54
|
+
- グレードAまたはB: Step 4へ進行
|
|
55
|
+
- グレードC: reviewerの修正提案に基づき修正し再レビュー(最大2回)
|
|
56
|
+
- 変更スコープ外の問題を検出: 別の改善機会としてユーザーに報告
|
|
59
57
|
|
|
60
58
|
### Step 4: 承認取得と実装
|
|
61
59
|
|
|
62
60
|
1. 変更前後の比較をユーザーに提示し承認を取得
|
|
63
|
-
2.
|
|
64
|
-
3.
|
|
65
|
-
4.
|
|
61
|
+
2. skill-reviewerのグレードと残存する修正提案を提示
|
|
62
|
+
3. 意図の整合性を確認: 「この変更は当初の要求を正しく反映していますか?」
|
|
63
|
+
4. 適切なツールで変更適用
|
|
64
|
+
5. git diffで変更内容を最終確認
|
|
65
|
+
6. 変更スコープ外の問題があれば、任意の改善事項として提示
|
|
66
|
+
7. `/sync-skills`実行を提案
|
|
66
67
|
|
|
67
68
|
## 完了条件
|
|
68
69
|
|
|
69
70
|
- [ ] 対象スキルを特定し現状を把握した
|
|
70
|
-
- [ ]
|
|
71
|
-
- [ ]
|
|
71
|
+
- [ ] skill-optimizationの編集原則に照らして設計案をレビューした
|
|
72
|
+
- [ ] skill-reviewerがグレードAまたはBを返却した
|
|
72
73
|
- [ ] ユーザー承認を取得した
|
|
73
74
|
- [ ] 変更を適用しgit diffで確認した
|
|
74
75
|
- [ ] /sync-skills実行を提案した
|
|
@@ -78,7 +79,9 @@ description: ユーザーのスキル変更要求を精度最大化して実装
|
|
|
78
79
|
| エラー | アクション |
|
|
79
80
|
|--------|-----------|
|
|
80
81
|
| スキル未発見 | 利用可能なスキル一覧を表示 |
|
|
81
|
-
|
|
|
82
|
+
| 大規模変更検出(ファイルの50%以上) | 段階的実施を提案 |
|
|
82
83
|
| 他スキルとの責務重複 | 責務境界を確認しユーザーに判断を委ねる |
|
|
84
|
+
| 2回のレビューでもグレードC | 変更内容と問題リストを提示し、ユーザーに判断を委ねる |
|
|
85
|
+
| reviewerが退行を検出 | 退行原因の変更を取り消し、再レビュー |
|
|
83
86
|
|
|
84
|
-
**スコープ**:
|
|
87
|
+
**スコープ**: ユーザーの変更要求理解と品質評価付き最適化実装。品質評価はskill-reviewerエージェントに委譲。メタデータ同期は/sync-skills連携。
|
|
@@ -6,6 +6,15 @@ description: 既存コードベースからPRDとDesign Docを生成するリバ
|
|
|
6
6
|
|
|
7
7
|
対象: $ARGUMENTS
|
|
8
8
|
|
|
9
|
+
## オーケストレーター定義
|
|
10
|
+
|
|
11
|
+
**コアアイデンティティ**: 「私は作業者ではない。オーケストレーターである。」(subagents-orchestration-guideスキル参照)
|
|
12
|
+
|
|
13
|
+
**実行プロトコル**:
|
|
14
|
+
1. **全作業をサブエージェントに委譲** — 役割はサブエージェントの呼び出し、データの受け渡し、結果の報告
|
|
15
|
+
2. **ステップ間で構造化JSONを受け渡す** — `$STEP_N_OUTPUT`プレースホルダー記法を使用
|
|
16
|
+
3. **コード読解はすべてサブエージェントが実施**
|
|
17
|
+
|
|
9
18
|
**TodoWrite登録**: まずフェーズをTodoWriteに登録し、各フェーズ開始時に詳細ステップを追加登録する。
|
|
10
19
|
|
|
11
20
|
## ステップ0: 初期設定
|
|
@@ -39,8 +48,6 @@ AskUserQuestionで以下を確認:
|
|
|
39
48
|
※ fullstack=Yes: ユニットのスコープに応じてbackend + frontend Design Docを生成
|
|
40
49
|
```
|
|
41
50
|
|
|
42
|
-
**コンテキスト伝達**: ステップ間で構造化JSON出力を受け渡す。`$STEP_N_OUTPUT`プレースホルダー記法を使用。
|
|
43
|
-
|
|
44
51
|
## フェーズ1: PRD生成
|
|
45
52
|
|
|
46
53
|
**TodoWrite登録**:
|
|
@@ -70,7 +77,7 @@ prompt: |
|
|
|
70
77
|
|
|
71
78
|
### ステップ2-5: ユニット毎の処理
|
|
72
79
|
|
|
73
|
-
|
|
80
|
+
**FOR** `$STEP_1_OUTPUT.discoveredUnits`の各ユニット **(逐次実行、1ユニットずつ)**:
|
|
74
81
|
|
|
75
82
|
#### ステップ2: PRD生成
|
|
76
83
|
|
|
@@ -96,6 +103,8 @@ prompt: |
|
|
|
96
103
|
|
|
97
104
|
#### ステップ3: コード検証
|
|
98
105
|
|
|
106
|
+
**前提条件**: $STEP_2_OUTPUT(ステップ2のPRDパス)
|
|
107
|
+
|
|
99
108
|
**Task呼び出し**:
|
|
100
109
|
```
|
|
101
110
|
subagent_type: code-verifier
|
|
@@ -158,10 +167,13 @@ prompt: |
|
|
|
158
167
|
## レビューフィードバック
|
|
159
168
|
$STEP_4_OUTPUT
|
|
160
169
|
|
|
161
|
-
##
|
|
162
|
-
|
|
170
|
+
## コード検証結果
|
|
171
|
+
$STEP_3_OUTPUT
|
|
163
172
|
|
|
164
|
-
|
|
173
|
+
severity別に対処する:
|
|
174
|
+
- critical: 必須修正 — 中核的な振る舞いの誤りまたは欠落
|
|
175
|
+
- important: 推奨修正 — 正確性や完全性の向上
|
|
176
|
+
- recommended: 任意修正 — 文体や軽微な改善
|
|
165
177
|
```
|
|
166
178
|
|
|
167
179
|
**ループ制御**: 最大2回の修正サイクル。2サイクル後はステータスに関わらず人間レビュー用にフラグ。
|
|
@@ -195,13 +207,15 @@ prompt: |
|
|
|
195
207
|
|
|
196
208
|
### ステップ7-10: ユニット毎の処理
|
|
197
209
|
|
|
198
|
-
|
|
210
|
+
**FOR** `$STEP_6_OUTPUT.designDocTargets`の各ユニット **(逐次実行、1ユニットずつ)**:
|
|
199
211
|
|
|
200
212
|
#### ステップ7: Design Doc生成
|
|
201
213
|
|
|
202
214
|
`$STEP_6_OUTPUT`のマッピング結果に基づき、ユニット毎に必要なDesign Docを生成する。
|
|
203
215
|
|
|
204
|
-
|
|
216
|
+
fullstack=Yesの場合、7aの後に7bを逐次実行する(7bは7aの出力に依存)。
|
|
217
|
+
|
|
218
|
+
**7a.** バックエンドDesign Doc(technical-designer):
|
|
205
219
|
|
|
206
220
|
fullstack=Yes時: promptに「対象: APIコントラクト、データ層、ビジネスロジック、サービスアーキテクチャ。」を追加する。
|
|
207
221
|
|
|
@@ -226,7 +240,7 @@ prompt: |
|
|
|
226
240
|
|
|
227
241
|
**出力を保存**: `$STEP_7_OUTPUT`
|
|
228
242
|
|
|
229
|
-
|
|
243
|
+
**7b.** フロントエンドDesign Doc(fullstack、フロントエンドスコープを含むユニット):
|
|
230
244
|
|
|
231
245
|
```
|
|
232
246
|
subagent_type: technical-designer-frontend
|
|
@@ -299,7 +313,54 @@ prompt: |
|
|
|
299
313
|
|
|
300
314
|
#### ステップ10: 修正(条件付き)
|
|
301
315
|
|
|
302
|
-
|
|
316
|
+
**トリガー条件**(以下のいずれか):
|
|
317
|
+
- レビューステータスが「Needs Revision」または「Rejected」
|
|
318
|
+
- `$STEP_8_OUTPUT`にクリティカルな不整合が存在
|
|
319
|
+
- consistencyScore < 70
|
|
320
|
+
|
|
321
|
+
**バックエンドDesign Doc修正**(technical-designer):
|
|
322
|
+
```
|
|
323
|
+
subagent_type: technical-designer
|
|
324
|
+
prompt: |
|
|
325
|
+
レビューフィードバックに基づきDesign Docを更新する。
|
|
326
|
+
|
|
327
|
+
動作モード: update
|
|
328
|
+
既存ドキュメント: $STEP_7_OUTPUT
|
|
329
|
+
|
|
330
|
+
## レビューフィードバック
|
|
331
|
+
$STEP_9_OUTPUT
|
|
332
|
+
|
|
333
|
+
## コード検証結果
|
|
334
|
+
$STEP_8_OUTPUT
|
|
335
|
+
|
|
336
|
+
severity別に対処する:
|
|
337
|
+
- critical: 必須修正 — 中核的な振る舞いの誤りまたは欠落
|
|
338
|
+
- important: 推奨修正 — 正確性や完全性の向上
|
|
339
|
+
- recommended: 任意修正 — 文体や軽微な改善
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
**フロントエンドDesign Doc修正**(fullstack、technical-designer-frontend):
|
|
343
|
+
```
|
|
344
|
+
subagent_type: technical-designer-frontend
|
|
345
|
+
prompt: |
|
|
346
|
+
レビューフィードバックに基づきフロントエンドDesign Docを更新する。
|
|
347
|
+
|
|
348
|
+
動作モード: update
|
|
349
|
+
既存ドキュメント: $STEP_7_FRONTEND_OUTPUT
|
|
350
|
+
|
|
351
|
+
## レビューフィードバック
|
|
352
|
+
$STEP_9_OUTPUT
|
|
353
|
+
|
|
354
|
+
## コード検証結果
|
|
355
|
+
$STEP_8_OUTPUT
|
|
356
|
+
|
|
357
|
+
severity別に対処する:
|
|
358
|
+
- critical: 必須修正 — 中核的な振る舞いの誤りまたは欠落
|
|
359
|
+
- important: 推奨修正 — 正確性や完全性の向上
|
|
360
|
+
- recommended: 任意修正 — 文体や軽微な改善
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
**ループ制御**: 最大2回の修正サイクル。2サイクル後はステータスに関わらず人間レビュー用にフラグ。
|
|
303
364
|
|
|
304
365
|
#### ユニット完了
|
|
305
366
|
|