tdd-parity-review
Parity-focused review using grumpy-gopher to verify a branch faithfully implements a Python SDK PR with idiomatic Go
Qualify an open issue or PR against requirements and Python SDK parity before /tdd
How it fires
How this command gets triggered: by you, by Claude, or both.
/qualifyContext preview
What this command does when you run it.
Qualify an open issue or PR against requirements and Python SDK parity before /tdd
argument-hint: <issue-or-pr-number> description: Qualify an open issue or PR against requirements and Python SDK parity before /tdd
Validate issue/PR #$ARGUMENTS for correctness, completeness, and Python SDK alignment. Produces a verdict report that feeds into `/tdd`.
Determine what #$ARGUMENTS is and find its linked counterpart:
1. **Check if it is an issue** - Run `gh issue view $ARGUMENTS --json number,title,body,state,labels,comments` 2. **Check if it is a PR** - Run `gh pr view $ARGUMENTS --json number,title,body,state,files,additions,deletions,commits,comments,headRefName` 3. **Find the linked counterpart:**
4. **Fetch all comments** on both the issue and PR (if both exist) for additional context
Display a summary:
Context for #$ARGUMENTS ----------------------- Issue: #<number> - <title> (<state>) PR: #<number> - <title> (<state>) [or "None found"]
---
Assess whether the issue is well-defined and ready for implementation:
1. **Check issue structure** - Does the body contain:
2. **Read all comments** - Look for scope changes, decisions, or additional requirements added after filing 3. **Check labels** - Confirm categorization (bug, enhancement, good first issue, etc.) 4. **Extract requirements** - Build a numbered list of acceptance criteria from the issue body and comments. Include both explicit requirements and implied ones.
Output the requirements list - this feeds directly into `/tdd` Phase 2:
Requirements for #$ARGUMENTS ----------------------------- 1. <requirement> 2. <requirement> ...
**If the issue is missing critical information:** Note the gaps but continue - the verdict will reflect them.
---
Determine if this change has a Python SDK equivalent and validate alignment:
1. **Fetch official Python SDK docs:**
curl -s https://platform.claude.com/docs/en/agent-sdk/python.md
2. **Search local Python SDK clone** (if `../claude-agent-sdk-python/` exists):
3. **Follow referenced PRs** - If the issue body references `anthropics/claude-agent-sdk-python#NNN`, fetch that PR for context 4. **Check Python SDK issue tracker** - Search for related issues via `gh issue list -R anthropics/claude-agent-sdk-python --search "<keywords>"`
**Classify the change:**
If `PARITY_REQUIRED`: document the expected behavior from the Python SDK, including API signatures, edge case handling, and any Go-specific adaptations needed. This feeds into `/tdd` Phase 3.
If Python SDK reference is unavailable (no local clone, docs fetch fails): note this in the verdict and proceed with what is available.
---
**If no PR exists, skip to Phase 5.**
When a PR is linked, review the implementation against the requirements:
1. **Fetch the diff** - `gh pr diff <pr-number>` 2. **Map requirements to diff** - For each requirement from Phase 2, check if the diff addresses it 3. **Check project conventions:**
4. **Parity verification** (if `PARITY_REQUIRED`):
5. **Check for common issues:**
---
Produce a structured verdict. This report is designed to feed into `/tdd`:
Qualification Verdict: [QUALIFIED | QUALIFIED WITH ITEMS | NOT QUALIFIED] Subject: Issue: #<number> - <title> (<state>) PR: #<number> - <title> (<state>) [or "None"] Requirements: 1. <requirement> - [CLEAR | UNCLEAR | MISSING DETAIL] 2. <requirement> - [CLEAR | UNCLEAR | MISSING DETAIL] Python SDK Parity: [PARITY_REQUIRED | GO_SPECIFIC | AHEAD_OF_PYTHON] <reference details - SDK behavior, docs link, or referenced PR> Implementation Review: [REVIEWED | NO PR | SKIPPED] <if reviewed, per-requirement coverage> 1. <requirement> - [MET | PARTIALLY MET | NOT MET] 2. <requirement> - [MET | PARTIALLY MET | NOT MET] Action Items: [must-fix] <specific item> [should-fix] <specific item> Recommendation: - QUALIFIED: "Ready for /tdd #$ARGUMENTS" - QUALIFIED WITH ITEMS: "Address items above, then /tdd #$ARGUMENTS" - NOT QUALIFIED: "<specific reason and s
Unofficial Go SDK for Claude Code CLI integration. Build production-ready applications that leverage Claude's advanced code understanding, secure file operations, and external tool integrations through a clean, idiomatic Go API with comprehensive error
Parity-focused review using grumpy-gopher to verify a branch faithfully implements a Python SDK PR with idiomatic Go
Comprehensive code review using team-based specialized agents with self-coordination