You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: /qa skill should handle 'no implementation' case gracefully #102
When /qa is run on an issue with no implementation (no worktree, no commits, no PR), the skill still attempts to run the full QA workflow including spawning sub-agents for quality checks. This wastes tokens and produces confusing output.
Problem
Current behavior when running /qa 97 on an unimplemented issue:
Skill instructions say "MUST spawn sub-agents for quality checks"
But git diff main...HEAD returns nothing - sub-agents have nothing to check
The workflow completes but feels incomplete/awkward
Proposed Solution
Add early-exit logic to /qa skill:
### Early Exit: No Implementation
Before spawning quality check agents, verify implementation exists:
\`\`\`bash
# Check for worktree
worktree_exists=$(git worktree list | grep -i "<issue-number>" | head -1)
# Check for commits on a feature branch
commits_exist=$(git log --oneline main..HEAD 2>/dev/null | head -1)
# Check for open PR
pr_exists=$(gh pr list --search "<issue-number>" --state open --json number -q '.[0].number')
\`\`\`**If none exist:**- Skip sub-agent spawning (nothing to check)
- Skip code review (no code to review)
- Proceed directly to verdict: `AC_NOT_MET`- Output: "No implementation found. Run `/exec <issue>` first."
Acceptance Criteria
/qa skill includes early-exit check for missing implementation
Sub-agents are NOT spawned when no implementation exists
Clear message directs user to run /exec first
Verdict is AC_NOT_MET with appropriate explanation
Files to Modify
.claude/skills/qa/SKILL.md
Discovered From
Session reflection after running /qa 97 on an unimplemented issue - the skill ran through its full workflow unnecessarily.
Activity
admarble commentedon Jan 17, 2026
📋 Implementation Plan
Acceptance Criteria (with Verification)
/qaon issue with no worktree/commits/PR → exits early/exec <issue>first"AC_NOT_METwith explanationVerification Summary
Assumptions to Validate (Before Implementation)
git worktree listcan find worktrees by issue numbergit log main..HEADreturns empty when no commits existgh pr list --searchworks for finding PRs by issue numberImplementation Plan
Phase 1: Add Implementation Status Check
SKILL.mdPhase 2: Add Early Exit Output Format
AC_NOT_MET/execfirstPhase 3: Integration
SEQUANT_WORKTREE,SEQUANT_ORCHESTRATOR)Effort Breakdown
.claude/skills/qa/SKILL.md.claude/skills/qa/SKILL.md.claude/skills/qa/SKILL.mdTotal: Single-file modification, ~30-50 lines of markdown additions
Open Questions
Recommended Workflow
Phases:
exec→qaQuality Loop: Disabled
Reasoning: Single-file skill modification with clear AC. No complex refactoring.
fix(#102): add early-exit handling for /qa on unimplemented issues
admarble commentedon Jan 17, 2026
Implementation Complete
AC Coverage
/exec <issue-number>to implement the feature"AC_NOT_METverdict with explanationCoverage: 4/4 AC items fully met
Files Changed
.claude/skills/qa/SKILL.md(+87 lines)Implementation Details
Phase 0: Implementation Status Check - Added before "Quality Checks (Multi-Agent)" section
Early Exit Output Template - Streamlined output when no implementation exists
AC_NOT_METverdict with explanation/execfirstUpdated Output Verification - Split into two sections
Test Results
npm test- 368 passed, 1 skippednpm run build- successfulPR Status
Created: #105
Self-Evaluation
/qais run on an unimplemented issue.Next Steps
/qa 102to verify the implementationadmarble commentedon Jan 17, 2026
QA Review ✅
AC Coverage
/exec <issue-number>to implement the feature"AC_NOT_METwith appropriate explanationCoverage: 4/4 AC items fully met
Quality Metrics
Code Review Summary
Strengths:
Issues: None
Verdict: READY_FOR_MERGE
All acceptance criteria fully met. Implementation is minimal, focused, and well-documented.
Documentation: Before merging, run
/docs 102to generate feature documentation.fix(#102): add early-exit handling for /qa on unimplemented issues (#105