agentleFS
GustavoGutierrezGustavoGutierrez/engineering-skills/skills/validation-strategist/SKILL.md

validation-strategist

Skill0 starsChanged 5 months agoMITView on GitHub

Design layered validation and verification strategies for software artifacts. Trigger: when designing a validation plan, QA strategy, release gates, verification layers, test strategy, entry/exit criteria, or multi-layer quality assurance.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to design a multi-layer validation and verification strategy for any software artifact or release.

    line 29
  2. Distinctive:

    Gates: All tests pass; coverage above threshold.

    line 49
  3. Distinctive:

    If Layer 1 unit tests prove correctness, do not require Layer 4 system tests for that specific check.

    line 80
  4. Distinctive:

    If a flow can be validated at Layer 3 or 4 with reliable automation, do not add a Layer 5 E2E test.

    line 92
  5. Distinctive:

    All gates passed with evidence attached.

    line 114
  6. Distinctive:

    No open critical or high severity findings.

    line 115
  7. Distinctive:

    Before presenting the validation strategy, verify:

    line 197
  8. Distinctive:

    All five layers are evaluated.

    line 201
  9. Distinctive:

    User provides no artifact type: Ask for the artifact type or the primary deliverable being validated before designing the strategy.

    line 207
  10. Distinctive:

    No defined NFRs or ACs: Treat this as a gap — the strategy should note that entry/exit criteria cannot be verified without defined …

    line 210

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Validation Strategist

Purpose

Use this skill to design a multi-layer validation and verification strategy for any software artifact or release. The output is a structured plan that maps what to validate at each layer, which environments and evidence are required, and what gates must pass before progressing.

This skill is domain-generic. It must work for PRDs, SDDs, RFCs, ADRs, ACs, NFRs, architectures, OpenAPI specs, workflows, and release plans without embedding project-specific assumptions.

Core Distinction: Verification vs Validation

TermDefinitionFocus
Verification"Did we build it right?" — checks implementation matches design.Artifacts, traces, constraints
Validation"Did we build the right thing?" — checks product meets user needs.Outcomes, business value, real-world behavior

A complete strategy uses both. Verification gives confidence in correctness; validation gives confidence in correctness.

The Five Validation Layers

Design validation across these five layers, from narrowest to widest scope:

Layer 1 — Unit

  • What: Individual functions, methods, classes in isolation
  • Evidence: Unit tests, code coverage, linting, type checks
  • Gates: All tests pass; coverage above threshold; no critical lints
  • Metrics: Pass rate, coverage %, cyclomatic complexity

Layer 2 — Component

  • What: Integration between modules within a service or package
  • Evidence: Integration tests, contract tests, module-level mocks
  • Gates: Component tests pass; contracts between modules verified
  • Metrics: Integration pass rate, contract compliance

Layer 3 — Feature

  • What: End-to-end behavior of a single feature or user story
  • Evidence: Feature tests, API contract tests, UI automation, Given/When/Then scenarios
  • Gates: Feature acceptance criteria met; all happy and sad paths covered
  • Metrics: Feature test pass rate, scenario coverage, critical path coverage

Layer 4 — Application

  • What: Multiple features working together across services
  • Evidence: System tests, end-to-end tests, performance benchmarks, security scans
  • Gates: Cross-feature flows work; NFRs met; security scan clean
  • Metrics: System test pass rate, p99 latency, error rate, security findings

Layer 5 — Release Candidate

  • What: The deliverable in a production-like environment
  • Evidence: Staging deployment, smoke tests, manual QA, canary rollout, rollback test
  • Gates: Rollback procedure verified; monitoring and alerting operational; feature flags active; business metrics within expected range
  • Metrics: Deployment success rate, time-to-production-ready, rollback success rate

Layer Selection Principle

Always prefer the lowest layer that gives enough signal.

If Layer 1 unit tests prove correctness, do not require Layer 4 system tests for that specific check. Higher layers are slower, more expensive, and harder to debug. Reserve them for what lower layers cannot catch:

  • Cross-service interactions → Layer 3–4
  • User-facing flows → Layer 4–5
  • Critical-path flows → Layer 5 (E2E reserved for flows where failure is catastrophic)

E2E Abuse Prevention

End-to-end tests are a limited resource. Use them only when:

  • The flow spans multiple services or domains.
  • The consequence of failure is severe (data loss, security breach, financial impact).
  • Lower-layer tests cannot simulate the failure mode.

If a flow can be validated at Layer 3 or 4 with reliable automation, do not add a Layer 5 E2E test.

Validation Triggers and Environments

TriggerEnvironmentEvidence Required
Code commit / PRCI pipeline (isolated)Unit + component tests; lint; type check
Feature completeFeature environmentFeature tests; contract tests
Release candidate buildStaging / pre-productionSystem tests; smoke tests; security scan
Canary / production rolloutProductionLive metrics; error rates; business KPIs
HotfixProduction with expedited gateTargeted unit + integration tests; smoke suite

Entry and Exit Criteria per Layer

For each active layer, define:

Entry criteria — what must be true before running validation at this layer:

  • Prior layers passed and gates closed.
  • Required test artifacts exist and are passing.
  • Environment is stable and isolated.

Exit criteria — what must be true to consider this layer passed:

  • All gates passed with evidence attached.
  • No open critical or high severity findings.
  • Metrics within defined thresholds.

Release Readiness Checklist

At Layer 5 (Release Candidate), validate all of the following before promoting to production:

CheckCriteria
Unit + Component layersAll gates closed
Feature layerAll acceptance criteria verified
Application layerNFRs met (performance, security, scalability)
Smoke test suite100% pass in staging
Rollback procedureDocumented, tested, and team knows the steps
Monitoring + alertingAll critical paths monitored; alerts firing correctly
Feature flagsKill switches and rollbacks configured
Business metricsBaseline metrics established for comparison post-release
Go/no-go decisionAuthorized by defined stakeholder

Input Artifact Mapping

Adapt the validation strategy based on what artifact is provided:

ArtifactPrimary Validation Focus
PRDValidation: does the product solve the stated problem? Trace requirements to acceptance criteria.
SDD / SpecVerification: does implementation match spec? Trace REQs to test cases.
RFC / ArchitectureVerification: does implementation follow the approved design? Trace decisions to components.
ADRVerification: was the decision applied correctly? Trace decision to implemented behavior.
AC (Acceptance Criteria)Verification: do tests prove ACs are met? Map each AC to test case.
NFR (Non-Functional Requirements)Verification: do benchmarks prove NFRs are met? Measure and report.
OpenAPI / API ContractVerification: do contract tests prove API matches spec? Use contract testing.
WorkflowVerification: does the implementation follow the state machine? Trace transitions to test scenarios.
Release PlanValidation + Verification: can we ship safely? Apply full Layer 5 checklist.

Validation Strategy Output Structure

# Validation Strategy: <Artifact Name>

## 1. Scope and Context
- Artifact type: <PRD / SDD / RFC / ADR / AC / NFR / OpenAPI / Workflow / Release Plan>
- Validation goal: <what we need to prove>
- Active layers: <which of the 5 layers apply>

## 2. Verification vs Validation Split
- Verification checks: <list>
- Validation checks: <list>

## 3. Layer-by-Layer Plan
| Layer | What to Validate | Evidence | Gates | Metrics |
| --- | --- | --- | --- | --- |

## 4. E2E Justification
- Critical flows requiring E2E: <list>
- Why lower layers are insufficient for each: <reason>

## 5. Environment and Trigger Map
| Trigger | Environment | Evidence |
| --- | --- | --- |

## 6. Entry/Exit Criteria
| Layer | Entry Criteria | Exit Criteria |
| --- | --- | --- |

## 7. Release Readiness (Layer 5 only)
| Check | Status | Notes |
| --- | --- | --- |
| Unit + Component gates closed | ✅/❌ | |
| Feature ACs verified | ✅/❌ | |
| NFRs met | ✅/❌ | |
| Smoke tests pass | ✅/❌ | |
| Rollback tested | ✅/❌ | |
| Monitoring active | ✅/❌ | |
| Go/no-go authorized | ✅/❌ | |

## 8. QA Flow Summary
<One-paragraph description of the end-to-end QA flow from commit to production>

Quality Bar

Before presenting the validation strategy, verify:

  • Verification and validation are treated as distinct activities with separate outputs.
  • The lowest-layer principle is applied: no layer used beyond what it can meaningfully prove.
  • E2E tests are justified and limited to critical paths.
  • All five layers are evaluated; inactive layers are explicitly excluded with rationale.
  • Entry and exit criteria are concrete and evidence-attached.
  • The strategy is generic: no vendor names, project names, or concrete technology names unless essential.

Troubleshooting

  • User provides no artifact type: Ask for the artifact type or the primary deliverable being validated before designing the strategy.
  • All five layers requested for a simple change: Apply the lowest-layer principle strictly. A one-line bug fix may only need Layer 1 evidence.
  • E2E tests are the only evidence available: Flag this as a risk. E2E is slow, brittle, and expensive to maintain. Recommend building lower-layer test coverage.
  • No defined NFRs or ACs: Treat this as a gap — the strategy should note that entry/exit criteria cannot be verified without defined thresholds.
  • Conflicting evidence from different layers: Investigate the discrepancy. Lower-layer failures may indicate an environment issue; higher-layer failures always take priority.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.