plugins/specweave/skills/validate/SKILL.md
Validate increment with rule-based checks and AI quality assessment. Use when saying "validate", "check quality", or "verify increment".
npx skillsauth add anton-abyzov/specweave plugins/specweave/skills/validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Skill Memories: If .specweave/skill-memories/validate.md exists, read and apply its learnings.
Project Context: If .specweave/config.json exists, read it for testing mode, TDD enforcement, and multi-project settings. Check for active increments in .specweave/increments/*/metadata.json.
You are helping the user validate a SpecWeave increment with optional AI-powered quality assessment.
sw:validate <increment-id> [--quality] [--export] [--fix] [--always]
Flags: --quality (AI assessment) | --export (suggestions to tasks.md) | --fix (auto-fix HIGH issues) | --always (save quality preference)
--quality), AI-powered, ~2K tokensGate 1 catches structural issues first; Gate 2 catches semantic issues.
--quality, --export, --fix, --always.specweave/increments/. Show error with available increments if not found.Before validation, sync spec.md ACs with tasks.md completion status to prevent false positives:
const acManager = new ACStatusManager(projectRoot);
const acSyncResult = await acManager.syncACStatus(incrementId);
This is idempotent and prevents "0 ACs checked" false positives from async hooks.
Run 130+ checks across 7 categories. Run structure validation FIRST.
| Category | Checks | Purpose | |----------|--------|---------| | Structure | 5 | Single tasks.md, allowed root files, metadata.json valid | | Three-File Canonical (ADR-0047) | 10 | tasks.md has Implementation (not ACs), spec.md has no task IDs, plan.md has no AC sections | | Consistency | 47 | Cross-document alignment (stories -> plan -> tasks -> tests) | | Completeness | 23 | Required sections in spec.md, plan.md, tasks.md | | Quality | 31 | Tech-agnostic spec, testable ACs, actionable tasks (<1 day) | | Traceability | 19 | TC format, ADR refs, diagram refs | | AC Coverage | 6 | All ACs have tasks, no orphan tasks, valid US linkage |
Key three-file rules (ADR-0047):
**Implementation**: and **AC-IDs**: references. Must NOT have **Acceptance Criteria**: or user story language.## Acceptance Criteria. Must NOT have task IDs (T-001).Display category pass/fail counts and AC coverage percentage.
--quality flag: run quality assessment (skip prompt)Use CLI: specweave qa <id> --pre (or increment-quality-judge-v2 skill auto-activates).
6 quality dimensions:
| Dimension | Weight | |-----------|--------| | Clarity | 0.20 | | Testability | 0.25 | | Completeness | 0.20 | | Feasibility | 0.15 | | Maintainability | 0.10 | | Edge Cases | 0.10 |
Display: overall score (0-100), per-dimension scores, issues (MAJOR/MINOR), and actionable suggestions.
If --export: parse suggestions, add to tasks.md as prioritized tasks with [HIGH]/[MEDIUM] labels and estimates.
If --fix: identify HIGH-priority fixable issues, generate diffs, show to user for confirmation, apply if approved, then re-validate.
Only fix issues with clear unambiguous improvements. Skip domain-specific or ambiguous issues.
If --always: enable validation.quality_judge.always_run: true so future validations auto-run quality assessment.
Save detailed report to: .specweave/increments/<id>/reports/validation-report.md
Report includes: executive summary, rule-based results by category, AI quality scores, issues, suggestions, recommendations, and validation history.
| Score | Grade | |-------|-------| | 90-100 | EXCELLENT | | 80-89 | GOOD | | 70-79 | ACCEPTABLE | | <70 | NEEDS WORK |
Pass/fail gate: Rule-based must pass all CRITICAL checks. Quality score is advisory (no hard gate).
increment-quality-judge skill: AI assessment enginesw:done: validates before closingspecweave qa <id>: CLI equivalenttools
Generate AI videos from text prompts or images. Supports Google Veo 3.1 and Pollinations.ai (free). Use when generating video, creating animations, text-to-video, AI video, video generation, make clip, animate.
tools
Create and manage umbrella workspaces for multi-repo projects. Activate when the user wants to: create umbrella, umbrella init, wrap in umbrella, create workspace, setup multi-repo, migrate repos to umbrella, umbrella create, new workspace, restructure into umbrella, "wrap this repo", "create umbrella for these repos", "setup workspace with repos", "move repos into umbrella". Do NOT activate for: add a repo to existing umbrella (use sw:get), add a feature, add an increment, clone a repo (use sw:get).
tools
--- description: Merge completed parallel agent work and trigger GitHub sync per increment. Activates for: team merge, merge agents, combine work, team finish. --- # Team Merge **Verify all teammates completed, run quality gates, close increments, and trigger sync.** ## Usage ```bash sw:team-merge sw:team-merge --dry-run # Preview merge plan sw:team-merge --skip-sync # Merge without GitHub/JIRA sync ``` ## What This Skill Does 1. **Verify all teammates completed** -- bl
tools
Phase-agnostic orchestrator for parallel multi-agent work — brainstorm, plan, implement, review, research, or test. Auto-detects mode from intent. Use for implementation (3+ domains or 15+ tasks), brainstorming (multiple perspectives), parallel planning (PM + Architect), code review (delegates to sw:code-reviewer), research (multiple topics), or testing (parallel test layers). Also use when user says "team setup", "parallel agents", "team lead", "agent teams", "brainstorm with agents", "plan in parallel", "review code", "research this".