Repository navigation
feat(#217): Auto-include testgen phase when appropriate + haiku optimization - #231
Merged
admarble merged 1 commit intoFeb 1, 2026
Conversation
- Update /spec phase selection logic to recommend testgen when: - ACs have "Unit Test" or "Integration Test" verification methods - Issue has enhancement/feature labels - Project has test infrastructure (Jest, Vitest, etc.) - Update /solve workflow recommendations to include testgen: - Add --testgen flag to flags table - Add testgen to workflow examples - Add Testgen Phase Detection section - Optimize /testgen with haiku sub-agents: - Add Task tool to allowed-tools for sub-agent spawning - Add Token Optimization section with haiku patterns - Add parallel sub-agent execution guidance - Update documentation: - Add testgen to workflow-phases.md diagram - Add Phase 1.5: Testgen (Optional) section - Update label-based detection table Closes #217 Co-Authored-By: Claude Opus 4.5 <[email protected]>
5 tasks
admarble
deleted the
feature/217-feat-auto-include-testgen-phase-when-appropriate-h
branch
February 1, 2026 19:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/specnow recommendstestgenphase when ACs have Unit/Integration Test verification methods/solveincludes testgen in workflow recommendations with--testgenflag/testgenuses haiku sub-agents for cost-efficient stub generation (~90% token reduction)Changes
1.
/specPhase Selection Logic (AC-1)enhancementorfeaturelabels2.
/solveWorkflow Recommendations (AC-2)--testgenflag to flags table3.
/testgenHaiku Optimization (AC-4)4. Documentation (AC-5)
Test Plan
npm testpasses (10 pre-existing failures unrelated to changes)npm run buildpasses/specon enhancement issue → verify testgen recommended/solveon feature issue → verify testgen in workflow/testgen→ verify haiku sub-agents usedPre-PR AC Verification
/specrecommends testgen when ACs have Unit/Integration tests.claude/skills/spec/SKILL.md:562-620/solveincludes testgen in recommendations.claude/skills/solve/SKILL.md:50-54, 356-360sequant runexecutes testgen when spec recommends/testgenuses haiku sub-agents.claude/skills/testgen/SKILL.md:42-154docs/concepts/workflow-phases.mdCloses #217
🤖 Generated with Claude Code