haru01

cga-explore-planning

0
0
# Install this skill:
npx skills add haru01/order_skills_sample --skill "cga-explore-planning"

Install specific skill from multi-skill repository

# Description

Research and plan implementation approach using parallel subagent exploration. Creates TDD-compliant implementation plans in doc/plans/ by investigating codebase, analyzing trade-offs, and conducting interactive decision-making. Use when planning features from specs, evaluating technical approaches, or creating implementation strategies before coding.

# SKILL.md


name: cga-explore-planning
description: Research and plan implementation approach using parallel subagent exploration. Creates TDD-compliant implementation plans in doc/plans/ by investigating codebase, analyzing trade-offs, and conducting interactive decision-making. Use when planning features from specs, evaluating technical approaches, or creating implementation strategies before coding.
allowed-tools: Task Read Glob Grep WebFetch WebSearch AskUserQuestion Write


いつ使うか

  • 仕様(Spec)を元に実装方針を調査&プランニングしたいとき
  • 技術的負債の返済のための調査とプランニングが必要なとき
  • 技術選定・アプローチを検討したいとき
  • コードベースの現状を把握し、方針を決めたいとき

いつ使わないか

  • 実装そのもの → /cga-programming
  • リファクタリング → /cga-tf-refactoring
  • 意思決定の記録のみ → /cga-decision-record

何をするか

  1. 重要 必ず、Plan mode で実行すること。それ以外のモード(Ask before editsなど)の場合は、開発者にモード変更を促す
  2. Phase 0: 実装計画の有無を確認、済みなら /cga-programming へ誘導
  3. Phase 1: Specと glossary.mddoc/decisions/ 確認、Explore でコードベース調査
  4. Phase 1.5: コード調査の結果を確認し、必要ならGit履歴調査を追加実施
  5. Phase 2: 選択肢設計、トレードオフ分析、ユーザーと対話、TDD準拠の実装計画作成
  6. Phase 3: doc/plans/{issue-name}.md に Write
  7. Phase 4: 次スキルへ誘導

基本ルール

  • Specが起点、無ければユーザーに確認
  • src配下のコード変更は行わない(doc/plans への出力のみ)
  • glossary.mddoc/decisions/ 必須確認
  • コード調査のあと、必要があればGit履歴を調査
  • 対話はメインで実施(透明性重視)
  • 調査は極力、Explore サブエージェントを使い、コンテキスト腐敗(Context Rot)を対策すること
  • TDD準拠の実装計画を作成

使用例

/cga-explore-planning
### ORD-004: 注文キャンセルAPI
**概要** 顧客が注文をキャンセルできるAPIを実装する。
**受け入れ条件**
- [ ] `PENDING` または `CONFIRMED` 状態の注文のみキャンセル可能
- [ ] キャンセル後の状態は `CANCELLED` になる

詳細

guide.md を参照

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.