/mvp-builder:validation [feature-path]from mvp-builder
Validates requirement quality by generating deterministic checklists (CHK###) across requirements, UX, UI, API, and data domains. Use after doc chain acceptance and before feature-setup.
Ships in mvp-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate "Unit Tests for Requirements" — deterministic checklists that validate requirement quality.
Input: $ARGUMENTS — feature path (e.g. ai-docs/features/cv-upload). If empty, ask the user which feature to validate.
Tools Usage:
Read: For loading feature artifactsWrite: For saving checklist files and updating tasks.mdBash: For directory creation and file verificationSkills:
Templates (doc-templates skill — read before generating each artifact):
references/checklist-template.mdreferences/resolutions-template.mdFile Structure:
./ai-docs/features/[feature]/ (requires core artifacts)./ai-docs/features/[feature]/validation/[domain]-checklist.md (5 files)./ai-docs/features/[feature]/validation/resolutions.md (if any)./ai-docs/features/[feature]/tasks.md (updated with resolution tasks)Checklists test whether requirements are well-specified, not whether implementation works.
| Domain | Primary | Secondary | Focus |
|---|---|---|---|
requirements | spec.md | plan.md, tasks.md | FR coverage, acceptance criteria, edge cases |
ux | ux.md | spec.md, ui.md | Flows, states, accessibility, errors |
ui | ui.md | ux.md, plan.md | Component trees, DS mapping, layout, visual states |
api | contracts/, plan.md | spec.md | Endpoints, messages, schemas, auth |
data | data-model.md | spec.md | Entities, validation, states, relationships |
| Category | Dimension | Pattern |
|---|---|---|
| Completeness | Completeness | "Is [X] documented?" |
| Clarity | Clarity | "Is [X] unambiguous/quantified?" |
| Consistency | Consistency | "Does [X] align with [Y]?" |
| Coverage | Coverage | "Are all [scenarios] addressed?" |
| Edge Case | Edge Case | "Is behavior for [boundary] defined?" |
| Cross-Artifact | Consistency/Coverage | "Does [X] in [source-A] match [Y] in [source-B]?" |
Per-domain categories (required):
requirements: Completeness, Clarity, Consistency, Coverage, Cross-Artifactux: Completeness, Clarity, Coverage, Edge Case, Cross-Artifactui: Completeness, Consistency, Coverage, Cross-Artifactapi: Completeness, Clarity, Consistency, Coverage, Cross-Artifactdata: Completeness, Clarity, Consistency, Edge Case, Cross-ArtifactMay add other categories if content warrants.
Each domain MUST include these cross-checks:
requirements:
ux:
ui:
data:
api:
- [ ] CHK### Question [Dimension, Reference]
Components:
CHK###: Sequential ID across ALL checklists (CHK001, CHK002... CHK073, etc.)[Dimension, Reference]: Quality dimension + sourceQuality Dimensions:
Completeness — Is requirement present?Clarity — Is requirement unambiguous/quantified?Consistency — Does requirement align with others?Coverage — Are all scenarios addressed?Edge Case — Are boundary conditions defined?Examples:
- [ ] CHK007 Is the 60-second timeout explicitly defined with units? [Clarity, FR-009]
- [ ] CHK018 Are all error types covered by TEST tasks? [Coverage, ux.md → tasks.md]
- [ ] CHK042 Is behavior defined when estimated time exceeds timeout? [Edge Case, Resolution: CHK042]
Numbering order: requirements → ux → ui → api → data (follows artifact chain: spec → ux → ui → contracts → data-model)
References:
[FR-XXX], [UX-XXX] — requirement IDs[source: Section] — artifact section[source-A → source-B] — cross-artifact check[Resolution: CHK###] — Phase 4 decisionIntermediate markers (resolved in Phase 4):
[Gap] — missing specification[Ambiguity] — unclear specification[Conflict] — disagreeing specifications[Assumption] — implicit requirement[Gap]: verify not in secondary sources[Conflict] items must name both sources in question[Dimension, Reference]Prohibited verbs: Verify, Test, Confirm, Check + behavior Prohibited phrases: "works correctly", "functions as expected", "displays properly"
Rewrite:
Scope: Validation skill modifies ONLY:
validation/*.md — checklist filesvalidation/resolutions.md — decisions logtasks.md — task updatesDO NOT propose changes to: spec.md, ux.md, ui.md, plan.md, data-model.md, contracts/, or any other artifacts. Resolutions flow INTO tasks.md only.
Every resolution MUST update tasks.md. No exceptions. Options:
| Resolution Type | Task Impact |
|---|---|
[Gap] → new feature | NEW: TEST + IMPL |
[Gap] → specific value/config | UPDATE: existing task with value |
[Gap] → "not MVP" | DEFERRED: add to Notes |
[Conflict] → new approach | NEW: TEST + IMPL |
[Conflict] → choose existing | UPDATE: existing task with decision |
[Ambiguity] → clarify value | UPDATE: existing task with value |
[Assumption] → confirmed | UPDATE: existing task with confirmation |
[Assumption] → changed | NEW: TEST + IMPL |
PROHIBITED: Options with "No tasks generated" or "No task impact"
### From CHK###: [Title]
**Coverage**:
- Resolution: [CHK### decision summary]
#### RED Phase
- [ ] TEST-{N} [USX] Test [resolved requirement] in [path]
#### GREEN Phase
- [ ] IMPL-{N} [USX] Implement [resolved requirement] in [path]
New tasks inherit [USX] from resolution context and are placed in corresponding phase:
| Task Label | Target Phase |
|---|---|
| [US1] | Phase containing "User Story 1" |
| [US2] | Phase containing "User Story 2" |
| [USN] | Phase containing "User Story N" |
| INIT-* | Phase 1: Core Infrastructure |
| No label | Last user story phase |
Rule: Tasks are appended as new TDD Cycles at the end of their target phase, preserving phase integrity and logical grouping.
Before: - [ ] TEST-045 [US5] Test stage-level retry with exponential backoff
After: - [ ] TEST-045 [US5] Test stage-level retry with exponential backoff (500ms, 1s, 2s per CHK002)
Notes section:
- Deferred: CHK### - [brief reason] (post-MVP)
Extract FEATURE_PATH from $ARGUMENTS.
Apply Feature Analyzer skill to scan and load feature artifacts:
ui domain checklist and every cross-check that
references ui.md; note the skip in the final reportIf core files missing → Report error and exit.
From tasks.md: LAST_TEST_NUM, LAST_IMPL_NUM, LAST_PHASE_NUM.
Parse tasks.md to create phase-to-story mapping:
PHASE_MAP = {}
For each "## Phase N:" header:
- Extract phase number N
- Extract user story label from header (e.g., "User Story 1" → US1)
- PHASE_MAP[USX] = N
Apply Sequential Thinking Methodology for artifact analysis:
mkdir -p $FEATURE_PATH/validation
Generate in order: requirements → ux → ui → api → data (follows artifact chain)
Track LAST_CHK_NUM = 0 across all domains.
For each domain:
Apply Sequential Thinking Methodology for item generation:
Generate 5-10 items per category.
Write to $FEATURE_PATH/validation/[domain]-checklist.md
Exclude from output: Review Checklist section (template internal validation only)
Verify per checklist:
Scan for [Gap], [Ambiguity], [Conflict], [Assumption].
If none → Phase 5.
Build list: UNRESOLVED[] = [{id, domain, marker, question}, ...]
Apply Sequential Thinking Methodology for each unresolved item:
Classify every item in UNRESOLVED[] before any dialogue:
| Class | Covers | Resolved by |
|---|---|---|
| ARCHITECTURAL | Tech stack, code organization, module/API shape, storage, testing strategy, tolerances, mechanisms, naming — anything a senior engineer can decide from the docs alone | Orchestrator, autonomously |
| INTELLECTUAL | Content, copy, domain semantics, business/pedagogical meaning, asset choices, data governance, legal/product policy — anything requiring product-owner knowledge | User dialogue |
ARCHITECTURAL items: do NOT ask the user. Technical aspects were already discussed
at the PRD stage; re-asking them is noise. Select the recommended option from 4.2,
record decision + rationale in resolutions.md (mark resolved: orchestrator), apply
task impact per 4.4.
INTELLECTUAL items only enter the dialogue below. If there are none, skip the dialogue entirely and proceed to 4.4/4.5 with the autonomous resolutions.
CRITICAL: Process ONE dialogue item at a time. Do NOT batch multiple questions.
For each INTELLECTUAL item in UNRESOLVED[]:
4.3.1 Find Related Tasks
Search tasks.md for tasks referencing same FR-XXX, UX-XXX, or component.
Store as RELATED_TASKS[].
4.3.2 Present Dialogue
Each option MUST show task impact. Never show "No tasks generated".
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Resolution [current]/[total]
[domain]-checklist.md | [marker]
CHK###: [question]
> a) [option]
→ NEW: TEST-XXX, IMPL-XXX [USX] → Phase N
b) [option]
→ UPDATE: TEST-XXX (add: [clarification])
c) Defer to post-MVP
→ DEFERRED: add to Notes
Related: [RELATED_TASKS or "None found"]
↑/↓ select · Enter confirm · Esc skip
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Rules for options:
Wait for user selection before showing next item (INTELLECTUAL items only — ARCHITECTURAL items never reach this dialogue).
Apply Sequential Thinking Methodology for each selection:
4.4.1 Rewrite Checklist Item
[Resolution: CHK###]4.4.2 Record Decision
Add to RESOLUTIONS[] with task_impact field.
4.4.3 Apply Task Impact
If NEW tasks:
LAST_TEST_NUM++; LAST_IMPL_NUM++
Extract [USX] label from resolution context (from related tasks or requirement reference)
Determine target_phase using PHASE_MAP:
- [USX] found in PHASE_MAP → target_phase = PHASE_MAP[USX]
- INIT-* prefix → target_phase = 1
- No US context → target_phase = LAST_PHASE_NUM (last user story phase)
Add to NEW_TASKS[] with {task, target_phase, chk_id, us_label}
If UPDATE existing:
Search tasks.md for task by ID (TEST-XXX or IMPL-XXX)
If NOT FOUND:
Show error: "⚠️ Task [ID] not found in tasks.md"
List 3 closest matches by Coverage/Requirements
Ask: "Select correct task ID or enter manually:"
Wait for user input
If FOUND:
Append clarification: "(value per CHK###)"
Add to UPDATED_TASKS[]
If DEFERRED:
Add to DEFERRED[] for Notes section
After ALL resolutions complete:
4.5.1 Update Checklists Write rewritten items to checklist files.
4.5.2 Update tasks.md
If NEW_TASKS[] not empty:
4.5.2.1 Group Tasks by Target Phase
PHASE_GROUPS = {}
For each task in NEW_TASKS[]:
phase = task.target_phase
PHASE_GROUPS[phase].append(task)
4.5.2.2 Insert into Existing Phases For each phase in PHASE_GROUPS (sorted by phase number ascending):
- Locate "## Phase {N}:" section in tasks.md
- Find last "### TDD Cycle" or "### From CHK" subsection in that phase
- After last subsection (before next "## Phase" or end of file), append:
### From CHK###: [Resolution Title]
**Coverage**:
- Resolution: [CHK### decision summary]
#### RED Phase
- [ ] TEST-{N} [USX] [description]
#### GREEN Phase
- [ ] IMPL-{N} [USX] [description]
4.5.2.3 Numbering Continuity
If UPDATED_TASKS[] not empty:
If DEFERRED[] not empty:
4.5.3 Create resolutions.md Write per template with task_impact for each decision.
The validation stage is a completed block — commit it on the feature branch before reporting. Format per Git Workflow conventions, summary ≤50 chars, imperative:
docs([feature]): validation checklists
Body: checklist/item counts, resolution split (orchestrator / user / deferred), tasks impact.
✅ Checklists Generated
Feature: [NAME]
Location: [PATH]/validation/
Files:
- requirements-checklist.md ([N] items)
- ux-checklist.md ([N] items)
- ui-checklist.md ([N] items)
- api-checklist.md ([N] items)
- data-checklist.md ([N] items)
- resolutions.md ([N] decisions)
Resolved: [N] uncertainties ([N] orchestrator / [N] user / [N] deferred)
Committed: [commit-hash]
Tasks impact:
- New: [N] tasks added
- Updated: [N] tasks clarified
- Deferred: [N] items (see Notes)
Next: Use feature-setup <feature-path>
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/clarifyRefine an existing feature specification through targeted clarification dialogue. Use when a spec.md contains ambiguities — vague roles, non-testable requirements, unclear entities — that should be resolved before generating the doc chain./code-analyzerComprehensive codebase analysis for building mental model of project structure, dependencies, and implementation context. Use when needing to: (1) Understand project architecture before review or documentation, (2) Find dependencies and shared modules, (3) Trace execution paths and abstraction layers for similar features, (4) Locate implementation markers (AICODE-*), (5) Prepare context for review, memory generation, or agent creation. Triggers on: analyze code, load code context, scan codebase, understand project structure, trace feature./npx claudepluginhub app-builders-club/mvp-builder --plugin mvp-builderOther plugins' skills for the same job