| name | develop |
| description | Run the full research → design → implement pipeline end-to-end. Use when user says '開発して', 'build this feature', '新機能を作って', '一気通貫で実装', or wants the complete workflow from investigation to implementation. Do NOT use for research-only, design-only, or implementing an existing plan — use /research, /design, or /implement respectively. |
| allowed-tools | Agent, AskUserQuestion, Bash, Read, Edit, Write, Glob, Grep |
| argument-hint | [task description] [--from 'research'|'design'|'implement'] [--research 'file.md'] [--output 'design-filename'] |
| disable-model-invocation | true |
| metadata | {"author":"ysk1031","version":"1.0.0"} |
Develop Skill
Orchestrator skill that runs the research → design → implement pipeline end-to-end. References existing skill SKILL.md files (/research, /design, /implement) with overrides to coordinate investigation, planning, and implementation automatically.
Instructions
Argument Parsing (Main Entry Point)
Arguments: $ARGUMENTS
Extract the following variables:
| Variable | Description | Default |
|---|
TASK | Task description (all text except --from, --research, --output flags) | — |
FROM | Starting phase (--from flag value) | research |
RESEARCH_FILE | Existing research file path (--research flag value) | — |
OUTPUT | Design output filename (--output flag value) | design-<sanitized-task>.md |
Phase Branching:
--from research (default): Phase R → Phase D → Phase I
--from design: Phase D → Phase I
--from implement: Phase I only
Validation:
-
If FROM is research or design and TASK is empty:
タスクの説明を指定してください。例: /develop "ユーザー認証機能の追加"
Display message and stop.
-
If FROM is implement and the design file is not found:
Use OUTPUT value (default: design-<sanitized-task>.md) as the design file path.
if [ ! -f "$DESIGN_FILE" ]; then
ls design-*.md 2>/dev/null | head -5
fi
If not found:
設計ファイルが見つかりません。先に /design でファイルを作成するか、--output でパスを指定してください。
利用可能なファイル: <list or なし>
Display message and stop.
After validation passes, execute phases sequentially starting from the FROM value.
Phase R: Research (executed when FROM is research)
Read the /research/SKILL.md file (relative to the skills directory where this SKILL.md resides) with the Read tool and follow its
Instructions section with the following overrides:
Overrides:
- Phase 1 (Scope Determination): Apply these adjustments to the subagent prompt:
SCOPE: Always set to "broad" — ignore --scope flag parsing
OUTPUT: Always set to empty — Phase R determines filename automatically
"status": "NO_TOPIC" error message example: Use /develop "認証フロー" (not /research)
- Phase 3 (User Review): Skip entirely — do NOT ask for user review
- Phase 4 (Output Generation): Execute automatically after Phase 2 completes
Output: Set RESEARCH_FILE to the generated file path. Display Phase R
completion summary, then transition to Phase D.
Phase D: Design (executed when FROM is research or design)
Read the /design/SKILL.md file (relative to the skills directory where this SKILL.md resides) with the Read tool and follow its
Instructions section with the following overrides:
RESEARCH_FILE Resolution (before Phase 1):
- If Phase R was executed: use the file path written by the Write tool in Phase R's Phase 4 (Output Generation) of the research skill. This is the filename determined in Phase R Phase 4 Step 1 (either the
output field from the Phase R Phase 1 result, or research-<sanitized-topic>.md). Store this path as RESEARCH_FILE when Phase R Phase 4 completes.
- If
--from design with --research: use the --research flag value
- If
--from design without --research: search for research-*.md in the
current directory and display candidates (do NOT auto-select)
Overrides:
- Phase 1 (Context Gathering): Apply these adjustments to the subagent prompt:
TASK: Already validated as non-empty — skip the "status": "NO_TASK" validation
RESEARCH_FILE: Use the resolved value from above
OUTPUT: Use the $OUTPUT value (default: design-<sanitized-task>.md)
- Phase 1 Error Handling (
--from design with missing research file):
- Use AskUserQuestion with options: "なしで続行" / "パスを変更" / "キャンセル"
- "キャンセル": Display "開発を終了しました。" and stop entire pipeline
- Phase 3 (Annotation Cycle): The annotation cycle is the ONLY confirmation
gate in
/develop. Add research file reference to the review display (Step 1).
- Display
> 調査ファイル: \<RESEARCH_FILE>` — 調査結果の詳細はこちらを参照できます` in the review message (skip if RESEARCH_FILE is empty)
- "キャンセル": Display "開発を終了しました。" and stop entire pipeline
- Phase 4 (Finalization): After completion, display
"Phase I(実装)に自動遷移します..." and automatically transition to Phase I
Output: The approved plan file at OUTPUT path.
Phase I: Implement (executed in all flows)
Read the /implement/SKILL.md file (relative to the skills directory where this SKILL.md resides) with the Read tool and follow its
Instructions section with the following overrides:
Overrides:
- Phase 1 (Plan Loading): Apply these adjustments to the subagent prompt:
PLAN_FILE: Use OUTPUT value (default: design-<sanitized-task>.md) — skip argument parsing
selected_steps: Always "ALL" — omit from return result
"status": "NO_PLAN" error message: Use shorter version: 計画ファイルが見つかりません。
- Phase 2 (Scope Confirmation): Skip entirely — do NOT ask for user
confirmation. Auto-execute all steps.
- Phase 3 → renumbered as the implementation loop: Execute all remaining
steps without pausing
Output: Display implementation completion summary with git diff --stat,
checklist, and verification results.
Error Handling Summary
Each phase's specific error handling is defined in the referenced skill's SKILL.md and the overrides above. The following table provides a pipeline-wide overview:
| Situation | Phase | Response |
|---|
| Task description empty | Argument parsing | Display error message and stop |
"status": "NO_TOPIC" in Phase R | Phase R (via /research) | Display message field and stop (fallback) |
"entry_point_count": 0 in Phase R | Phase R (via /research) | AskUserQuestion: change keyword or cancel |
Research file not found with --from design | Phase D (override) | AskUserQuestion: continue without / change path / cancel |
| Cancel during annotation cycle | Phase D (override) | Display "開発を終了しました。" and stop entire pipeline |
Plan file not found with --from implement | Argument parsing | Display error message + candidates and stop |
| Validation failure in Phase I | Phase I (via /implement) | Fix immediately → re-validate |
| Test failure in Phase I | Phase I (via /implement) | AskUserQuestion: fix or skip |
Rules
- ALWAYS display messages in Japanese — the user is a Japanese speaker and needs to review pipeline progress in Japanese
- NEVER modify existing skills —
/develop is an independent skill — modifying existing skills would affect their standalone usage (e.g., /research used independently)
- NEVER skip the plan annotation cycle (Phase D-3) — the plan annotation cycle is the only confirmation gate in the pipeline; skipping it risks implementing unintended changes
- Skip the review gate in Research phase — within the pipeline, research is an intermediate artifact that will be reviewed during plan annotation
- Skip scope confirmation in Implement phase — the plan is already approved, so re-confirming implementation start is redundant
- Reference existing skill SKILL.md files directly and specify only overrides — minimizes logic duplication and ensures standalone skill changes propagate automatically
- When starting mid-pipeline with
--from, validate preconditions for skipped phases — executing later phases without meeting preconditions leads to errors or incomplete results
- NEVER commit or push changes — commits should only happen after user review; unintended pushes trigger unnecessary CI runs
- Correctly pass data between phases (RESEARCH_FILE, OUTPUT, etc.) and maintain variable consistency — data inconsistency between phases silently produces incorrect results
Examples
Example 1: 新機能の一気通貫開発
User says: "ユーザー認証機能を開発して"
Actions:
- Phase R: research-planner → codebase-investigator で既存コードを調査、research-auth.md出力
- Phase D: project-profiler → plan-generator で実装計画生成、注釈サイクルで計画確定
- Phase I: 承認済み計画に沿って全ステップを自動実装
Result: 調査→設計→実装が一気通貫で完了する
Example 2: 途中から再開
User says: "--from implement で実装"
Actions:
- 既存のdesign-*.mdを読み込み
- Phase Iのみ実行(調査・設計をスキップ)
Result: 既に承認済みの計画に沿って実装のみ実行される
Troubleshooting
Phase R失敗
Cause: トピック指定が曖昧で関連ファイルが見つからない
Solution: より具体的なキーワードを含むタスク説明を指定
Phase D中止
Cause: 計画の注釈サイクルで「キャンセル」を選択した
Solution: --from design で設計フェーズから再開可能