ai-development-guide
Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates. Use when reviewing general/backend…
Add integration/E2E tests to existing codebase using Design Docs
$ npx -y skills add shinpr/claude-code-workflows --skill recipe-add-integration-tests --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/recipe-add-integration-testsContext preview
The summary Claude sees to decide when to auto-load this skill.
Add integration/E2E tests to existing codebase using Design Docs
name: recipe-add-integration-tests description: Add integration/E2E tests to existing codebase using Design Docs disable-model-invocation: true
**Explicit User Instruction**: The user explicitly instructs and authorizes every subagent call named in this recipe. Execute each applicable call when its prerequisites are met.
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.
**Execution Gate**: Complete Steps 1-7 in order for each generated layer. Advance only through the current step's stated output or response gate; skip work only when its stated condition is false. Report completion after every layer has completed its review, quality, commit, and retained-limitation retry.
**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:
Invoke acceptance-test-generator using Agent tool:
Follow 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:
Execute 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:
**Expected output**: `status` (pass/needs_revision/blocked), `testFiles`, `reviewBasis`, `qualityIssues`; correction re-review also returns `prior_feedback_reconciliation`
Check Step 4 result:
Claude Code can explore a codebase deeply. On non-trivial work, the harder problem is convergence.
Repo: shinpr/claude-code-workflows
Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates. Use when reviewing general/backend…
Language-agnostic coding principles for maintainability, readability, and quality. Use when implementing features, refactoring code, or reviewing code quality.
Determines which of PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires, and where each is stored. Use when deciding documentation scope, or when…
Records where resources outside the repository live (design source, design system, API schema, IaC source, secret store) and how design, implementation, and…
Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates. Use when reviewing components,…
Implementation strategy selection framework. Use when planning implementation strategy, selecting development approach, or defining verification criteria.