Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Add integration/E2E tests to existing codebase using Design Docs
.claude/skills/shinpr-recipe-add-integration-tests/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 193% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 196% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 112% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 105% | 0% |
Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts. Execute Skill: subagents-orchestration-guide before making workflow decisions, invoking agents, or resolving findings.
Context: Test addition workflow for existing implementations (backend, frontend, or fullstack)
Core Identity: "I am an orchestrator."
Local authority gate: Make this recipe's workflow decisions and validate each returned result directly; delegate semantic deliverable production to the named specialist.
Review Resolution Gate MANDATORY]: Resolve every actionable deliverable-review finding through subagents-orchestration-guide Review Resolution before correction or progression. Before the first finding disposition, read references/review-resolution.md from the loaded subagents-orchestration-guide skill.
First Action: Register Steps 1-7 using TaskCreate before any execution.
Why Delegate: Orchestrator's context is shared across all steps. Direct implementation consumes context needed for review and quality check phases. Subagents work in isolated context.
Execution Method:
At each Agent invocation below, build the prompt as a mechanical extraction: copy the named source values into the exact fields, apply only the declared serialization, then invoke immediately.
Document paths: $ARGUMENTS
Confirm $ARGUMENTS names at least one existing document path; report and end when it is empty or every path is unresolvable. Then discover the remaining Design Docs, UI Specs, and PRDs under docs/design/, docs/ui-spec/, and docs/prd/.
Classify discovered documents by filename:
backend → Design Doc (backend)frontend → Design Doc (frontend)docs/ui-spec/ → UI Spec (optional)docs/prd/ → approved PRD / confirmed requirement context (optional; prefer the path named by the Design Doc)Invoke acceptance-test-generator using Agent tool:
subagent_type: "dev-workflows-fullstack:acceptance-test-generator"description: "Generate test skeletons"design_docs: Existing backend, frontend, or single-layer Design Doc paths from Step 1ui_spec: Existing UI Spec path when presentconfirmed_requirement_context: Approved PRD path or unchanged Design Doc Requirement Convergence recordFollow subagents-orchestration-guide HC-06 for value_input_required and its unknown-value continuation before Step 3.
Expected output: generatedFiles containing integration and e2e paths
For each layer with generated skeletons, record the current HEAD as diffBase, then invoke the layer's task-executor:
subagent_type: "dev-workflows-fullstack:task-executor"subagent_type: "dev-workflows-fullstack:task-executor-frontend"description: "Implement integration tests"direct_scope: Implement every test defined by the layer-specific generated skeletonsgoverning_sources: Layer-specific Design Doc, applicable UI Spec, and generated skeleton pathstarget_paths: Generated test paths plus the existing setup or fixture paths explicitly identified before invocationobservable_verification: Execute the implemented tests and verify every skeleton claim at its declared boundaryExecute one layer at a time through Steps 3→4→5→6→7 before starting the next.
Expected output: status, testsAdded, mutationEvidence
Apply this response gate after every task-executor invocation in Steps 3 and 5:
Invoke integration-test-reviewer using Agent tool:
subagent_type: "dev-workflows-fullstack:integration-test-reviewer"description: "Review test quality"prompt: "Review test quality. changedTestFiles: confirmed changed integration/E2E test paths]. diffBase: revision recorded before Step 3]. skeletonFiles: layer-specific paths from Step 2 generatedFiles]. mutationEvidence: Step 3 mutationEvidence]."Expected output: status (approved/needs_revision/blocked), testFiles, reviewBasis, qualityIssues; correction re-review also returns prior_feedback_reconciliation
Check Step 4 result:
status: approved → Mark complete, proceed to Step 6status: blocked → Apply Specialist Result Acceptancestatus: needs_revision → Pass Step 4 qualityIssues unchanged into the Review Resolution Gate; invoke task-executor for rerouted corrections, return to Step 4, and derive convergence from prior_feedback_reconciliationInvoke the same layer's task-executor:
description: "Fix review findings"direct_scope, governing_sources, target_paths, and observable_verificationcorrection_findings: Complete reviewer finding objects verbatim, with only their orchestrator dispositions addedInvoke quality-fixer for the current layer:
subagent_type: "dev-workflows-fullstack:quality-fixer"subagent_type: "dev-workflows-fullstack:quality-fixer-frontend"description: "Final quality assurance"mutationEvidence.prompt: "Run the repository-configured quality checks applicable to the test files added in this workflow and verify their intended observable behavior."Expected output: status (approved, stub_detected, verification_incomplete, or blocked)
Check quality-fixer response:
stub_detected → Return to Step 3 with the quality-fixer's incompleteImplementations array unchanged as the canonical incompleteImplementations field, then re-execute Steps 3→4→5→6blocked → Apply Specialist Result Acceptanceverification_incomplete → Retain the complete result for one final retry and proceed to Step 7approved → Proceed to Step 7On approved or verification_incomplete from quality-fixer:
verification_incomplete.After every layer has a clean commit boundary, retry each retained verification limitation once with the same layer quality-fixer inputs. Clear an approved result, route newly discovered incomplete implementation through Steps 3→6, and retain a repeated limitation for the completion report while continuing the workflow.
In the completion report, list each repeated verification limitation and each declined actionable finding with its ID, governing reason, and evidence when any occurred.
Other measured skills in the registry, with their headline benchmark lift.