VA

validate-phase-quality

Runs a suite of quality checks for completed implementation phases to ensure production readiness.

Install

mkdir -p .claude/skills/validate-phase-quality && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10239" && unzip -o skill.zip -d .claude/skills/validate-phase-quality && rm skill.zip

Installs to .claude/skills/validate-phase-quality

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Code quality gates — tests, coverage, lint, type-check, build, CI/CD, staging deploy, migrations, spec coverage for the validate-phase workflow
143 charsno explicit “when” trigger
Advanced

Key capabilities

  • Run test suite
  • Check coverage
  • Lint code
  • Verify staging deployment

How it works

Executes sequential quality gates including tests, coverage, linting, and staging smoke tests.

Inputs & outputs

You give it
Completed phase
You get back
Validation report

When to use validate-phase-quality

  • Run full test suite
  • Validate code quality
  • Check phase readiness

About this skill

// turbo-all

Validate Phase — Code Quality Gates

Run all code quality checks for a completed implementation phase.

Prerequisite: All slices in the phase must be complete.

  1. Read .memory/pipeline/progress/phases/phase-N.md
  2. Verify every slice shows complete status
  3. If any slice is not complete → STOP: "Phase N has incomplete slices: [list]. Complete them via /implement-slice before running validation."

0. Load validation skills

Read these skills before running checks:

  1. .agents/skills/testing-strategist/SKILL.md — Coverage strategy and test quality
  2. .agents/skills/code-review-pro/SKILL.md — Review checklist for self-audit
  3. .agents/skills/deployment-procedures/SKILL.md — Build and release readiness

0.5. Parallel dispatch option

If the phase contains independent slices that don't share files, validation can run in parallel:

  1. Identify independent slices — slices that don't import from or export to each other
  2. Dispatch parallel validation — run Steps 1–5 concurrently for independent slices using the parallel-agents skill
  3. Sequential for shared — slices that share contracts or utilities must validate sequentially

This is an optimization, not a requirement. Sequential validation is always correct.

1. Run test suite

Run the Test Cmd from .agents/instructions/commands.md. All tests must pass. Zero tolerance.

Test failure early-exit: If tests fail, do NOT proceed to steps 2-5. Instead:

  1. Capture the failing test output
  2. Identify which slice(s) the failing tests belong to
  3. STOP: "Validation blocked — [N] tests failing in slice(s) [names]. Fix via /implement-slice and re-run /validate-phase."

2. Check coverage

Run the Test Coverage Cmd from .agents/instructions/commands.md.

Read .memory/wiki/specs/ENGINEERING-STANDARDS.md and use the coverage thresholds defined in the "Test Coverage" section. If the file doesn't exist or thresholds aren't defined, fall back to these defaults:

  • Statements: 80%
  • Branches: 90% (critical paths: auth, payments, data mutations, permission checks), 75% (non-critical paths)
  • Functions: 80%
  • Lines: 80%

Critical paths are defined as: auth flows, payment processing, data mutations, and permission/authorization checks.

2.5. Mutation testing (critical paths)

Optional but recommended. If the project's test tooling supports mutation testing (e.g., Stryker for JS/TS, mutmut for Python, cargo-mutants for Rust):

  1. Run the mutation testing tool against critical path modules only (auth, payments, data mutations, permission checks)
  2. Required: Mutation score ≥ 70% on critical paths — if below, the tests are passing but not actually catching bugs
  3. Recommended: Mutation score ≥ 50% on non-critical paths — log as a finding but don't block

If mutation testing is not available in the project's tooling, skip and note in the validation report that mutation testing was not run.

3. Lint

Run the Lint Cmd from the surface stack map.

Zero lint errors. Warnings should be reviewed and addressed.

4. Type check

Run the Type Check Cmd from the surface stack map.

Zero type errors. Strict mode must be enabled.

5. Build

Run the Build Cmd from the surface stack map.

Build must succeed with no errors.


5.5. CI/CD pipeline verification

Verify the CI/CD pipeline is green for this phase's changes:

  1. Check that a CI/CD configuration file exists (e.g., .github/workflows/, .gitlab-ci.yml)
  2. Verify the pipeline has run for the latest commit in this phase
  3. Verify ALL CI/CD jobs are passing (not just the test job — include lint, type-check, build, and any deployment jobs)

If CI/CD is red → red path: STOP immediately. Do not mark this phase as complete. List the failing jobs and their error output. Fix them and re-run /validate-phase after fixes.

Pass criteria: CI/CD pipeline is green for the latest commit in this phase.


5.6. Staging deployment gate

  1. Deploy to staging using .agents/skills/deployment-procedures/SKILL.md
  2. Verify deployment succeeded (no rollback triggered, no error logs in the deployment output)
  3. Run smoke tests against the staging environment:
    • Health check endpoint returns 200
    • At least one authenticated route works with a valid token
    • At least one protected route returns 401/403 for unauthenticated requests
  4. If smoke tests fail → red path: Capture the failing test output, rollback the staging deployment, and fix the issue before re-running /validate-phase
  5. If deployment fails → red path: Do not mark this phase as complete — diagnose the deployment failure, fix it, and re-run /validate-phase

Pass criteria: Staging deployment succeeds and all smoke tests pass.


5.6.5. Deployment strategy verification

Read the project's architecture design document (.memory/wiki/specs/*-architecture-design.md) and look for a ## Deployment Strategy section.

If no deployment strategy is defined → Log: "No deployment strategy in architecture doc. Using direct deploy." Proceed.

If a deployment strategy is defined:

  1. Verify the deployment in Step 5.6 followed the documented strategy (e.g., canary → verify traffic was gradually shifted; blue-green → verify old environment is still available for rollback; rolling → verify instances were replaced sequentially)
  2. If the architecture documents feature flags as the rollout mechanism → verify the new features in this phase are behind flags
  3. Verify the documented rollback trigger mechanism is configured (error rate monitoring, latency threshold alert, or manual switch — whatever the architecture specifies)

Pass criteria: Deployment follows the architecture-documented strategy, or no strategy is documented.


5.7. Migration verification

  1. Run the migration status command (e.g., prisma migrate status, drizzle-kit status, or equivalent)
  2. Verify there are no pending migrations and no failed migrations
  3. Verify the CI/CD pipeline ran migrations successfully as part of this phase's deployment
  4. Check that rollback scripts exist for each migration in this phase
  5. If migrations are pending or failed → red path: do not mark this phase as complete — run the pending migrations, verify they succeed, and re-run /validate-phase

Pass criteria: Migration status is clean. All migrations from this phase ran successfully in the CI/CD environment. Rollback scripts are present.


5.8. Spec coverage sweep

Read .agents/skills/prd-templates/references/spec-coverage-sweep.md and follow its full procedure for FE spec, BE spec, and IA shard coverage. Apply its hard-stop rule for any uncovered items.


Next step

STOP — do NOT proceed to any other workflow. The only valid next step is /validate-phase-readiness.

If invoked standalone, surface via notify_user and wait for user confirmation.

When not to use it

  • Incomplete phases

Prerequisites

Phase completion

Limitations

  • Requires all slices to be complete

How it compares

Enforces a strict, multi-stage verification pipeline before phase completion.

Compared to similar skills

validate-phase-quality side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
validate-phase-quality (this skill)03moNo flagsAdvanced
verify66moNo flagsBeginner
code-change-verification44moReviewBeginner
springboot-verification44moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by RepairYourTech

View all by RepairYourTech

database-schema-design

RepairYourTech

Design database schemas with normalization, relationships, and constraints. Use when creating new database schemas, designing tables, or planning data models for any database paradigm.

00

testing-strategist

RepairYourTech

Design and implement comprehensive testing strategies. Use when setting up tests, choosing test types, implementing TDD, or improving code quality. Covers unit tests, integration tests, E2E tests, test-driven development, and testing best practices.

00

evolve-feature-classify

RepairYourTech

Capture the new feature/requirement, classify the change type, identify the entry point document, write new content, and determine cascade scope

00

idea-extraction

RepairYourTech

Exhaustive idea extraction through recursive breadth-before-depth exploration with Deep Think protocol and fractal structure. Use during /ideate to transform raw ideas into comprehensive, structured ideation output. Writes to a fractal folder hierarchy — every node has an index, CX file, and childre

00

api-design-principles

RepairYourTech

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

00

cross-layer-consistency

RepairYourTech

Systematic methodology for verifying that IA, BE, and FE specification layers are mutually consistent. Covers coverage matrices, field mapping checks, error code propagation, access control consistency, and data contract drift detection.

00

Search skills

Search the agent skills registry