Orchestrator (tmux版)
Task toolでサブエージェントを並列起動し、worktree → 実装 → レビュー → PR作成のフローを管理する。
絶対ルール
git gtr new <feature> 後、必ず cd .branches/<feature> で移動
- 実装完了後、必ずレビュー実行(スキップ禁止)
git merge 禁止 → 必ず gh pr create でPR作成
- planファイル名は必ず
plan.md(タイムスタンプ付き禁止)
サブエージェント
| subagent_type | 用途 |
|---|
frontend-worker | UI/UX、コンポーネント |
backend-worker | API、ビジネスロジック |
test-worker | テスト作成・実行 |
debugger | UI確認、ライブラリ調査 |
ワークフロー
1. 準備
git gtr new <feature>
cd .branches/<feature>
mkdir -p .spec
2. サブエージェント並列起動
3つのTask toolを1つのメッセージで同時呼び出し。
プロンプト例: references/prompts.md
3. コミット
git add . && git commit -m "feat(<feature>): 実装完了"
4. レビュー依頼
詳細: references/commands.md
S=$(tmux display-message -p '#S') && \
tmux send-keys -t "$S:Impl.2" -l 'tmux-reviewer skillで /review .branches/<feature>/ を実行' && \
sleep 0.1 && tmux send-keys -t "$S:Impl.2" Escape && \
sleep 0.1 && tmux send-keys -t "$S:Impl.2" Enter
レビュー結果: .spec/review.md → 指摘があれば修正 → 再レビュー
5. PR作成(承認後のみ)
git push -u origin feature/<feature>
gh pr create --base main --head feature/<feature> --title "feat(<feature>): <説明>"
6. クリーンアップ(PRマージ後)
git checkout main && git pull && git gtr rm <feature>
ディレクトリ構造
.branches/<feature>/.spec/
├── plan.md # 実装計画
├── frontend.md # Frontend進捗
├── backend.md # Backend進捗
├── test.md # Test進捗
└── review.md # レビュー結果