Plan Review Intake
Gather the minimum context required for a plan review.
Guardrails
- Read the smallest set of local files that can identify the plan, branch, scope, and known TODOs.
- If multiple plans match, state the selection rule instead of guessing silently.
- Do not inspect or edit unrelated source files in intake.
- Report missing context that materially limits confidence.
Steps
- Detect the repo root with
git rev-parse --show-toplevel; if that fails, use the current directory. - Detect the current branch with
git rev-parse --abbrev-ref HEAD. - Detect the base branch:
- Use
gh pr view --json baseRefName -q .baseRefNamewhen available. - Otherwise use
gh repo view --json defaultBranchRef -q .defaultBranchRef.name. - Otherwise fall back to
main.
- Use
- Find candidate plans and context only under
.planning/*:.planning/plans/**/*.md.planning/requirements/**/*.md.planning/specs/**/*.md.planning/tasks/**/*.md.planning/reviews/**/*.md.planning/qa/**/*.md
- Read the most relevant plan first. If multiple plans are plausible, choose the newest file that mentions the current branch, current task, or user-provided feature name.
- Read
.planning/tasks/TODOS.mdif present.
Output
Return:
- Selected plan path
- Base branch
- Current branch
- Relevant
.planning/*context files - Existing TODO sources
- Any missing context that materially limits review confidence
Install:
npx skills add ChristopherAlphonse/calphonse-skills --skill plan-review-intake