agentleFS
Will-SW74Will-SW74/passdown-os/.claude/skills/spectra-verify/SKILL.md

spectra-verify

Skill0 starsChanged 4 months agoMITView on GitHub

Verify implementation matches artifacts

4 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

41 rules. About 0 are common, 37 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈37

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify that an implementation matches the change artifacts (specs, tasks, design).

    line 23
  2. Very specific:

    Run spectra list --json to get available changes.

    line 33
  3. Distinctive:

    IMPORTANT: Do NOT guess or auto-select a change.

    line 39
  4. Distinctive:

    Create a report structure with three dimensions:

    line 61
  5. Distinctive:

    If tasks.md exists in contextFiles, read it

    line 71
  6. Distinctive:

    If incomplete tasks exist:

    line 74
  7. Distinctive:

    Add CRITICAL issue for each incomplete task

    line 75
  8. Very specific:

    If delta specs exist in openspec/changes/<name>/specs/:

    line 79
  9. Distinctive:

    Search codebase for keywords related to the requirement

    line 82
  10. Distinctive:

    If requirements appear unimplemented:

    line 84
  11. Distinctive:

    Add CRITICAL issue: "Requirement not found: <requirement name>"

    line 85
  12. Distinctive:

    Search codebase for implementation evidence

    line 92
  13. Distinctive:

    If found, note file paths and line ranges

    line 93
  14. Distinctive:

    Add WARNING: "Implementation may diverge from spec: <details>"

    line 96
  15. Distinctive:

    Check if conditions are handled in code

    line 101
  16. Distinctive:

    Check if tests exist covering the scenario

    line 102
  17. Distinctive:

    If scenario appears uncovered:

    line 103
  18. Distinctive:

    Add WARNING: "Scenario not covered: <scenario name>"

    line 104
  19. Very specific:

    Check if a test exists that uses the same input values from the example's GIVEN/WHEN/THEN

    line 109
  20. Distinctive:

    If the example has a table, check if parameterized tests cover all rows

    line 110
  21. Very specific:

    If examples appear untested, add WARNING: "Spec example not covered by test: <example name>" with recommendation to add a test using the …

    line 111
  22. Distinctive:

    If design.md exists in contextFiles:

    line 116
  23. Distinctive:

    Verify implementation follows those decisions

    line 118
  24. Distinctive:

    Add WARNING: "Design decision not followed: <decision>"

    line 120
  25. Distinctive:

    If no design.md: Skip design adherence check, note "No design.md to verify against"

    line 122
  26. Distinctive:

    Check file naming, directory structure, coding style

    line 126
  27. Distinctive:

    If significant deviations found:

    line 127
  28. Distinctive:

    Add SUGGESTION: "Code pattern deviation: <details>"

    line 128
  29. Distinctive:

    If CRITICAL issues: "X critical issue(s) found.

    line 163
  30. Distinctive:

    If only warnings: "No critical issues.

    line 164
  31. Distinctive:

    If all clear: "All checks passed.

    line 165
  32. Distinctive:

    Correctness: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty

    line 170
  33. Distinctive:

    Coherence: Look for glaring inconsistencies, don't nitpick style

    line 171
  34. Distinctive:

    False Positives: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL

    line 172
  35. Distinctive:

    Actionability: Every issue must have a specific recommendation with file/line references where applicable

    line 173
  36. Distinctive:

    If only tasks.md exists: verify task completion only, skip spec/design checks

    line 177
  37. Distinctive:

    If tasks + specs exist: verify completeness and correctness, skip design

    line 178
  38. Distinctive:

    If full artifacts: verify all three dimensions

    line 179
  39. Distinctive:

    Always note which checks were skipped and why

    line 180
  40. Distinctive:

    Use clear markdown with:

    line 184
  41. Distinctive:

    No vague suggestions like "consider reviewing"

    line 190

≈ “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

Claude fork context

This generated Claude Code skill runs with context: fork. The rules in this section take precedence over the shared verify body below.

When no change name is provided, run spectra list --json and consider only active changes with implementation tasks. Auto-select only when exactly one matching active change exists. If there are zero matching active changes or more than one matching active change, return the candidate list or empty-state message and ask the main thread to rerun /spectra-verify <change-name>. Do NOT ask an interactive selection question inside the fork.


Verify that an implementation matches the change artifacts (specs, tasks, design).

Input: Optionally specify a change name after /spectra-verify (e.g., /spectra-verify add-auth). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.

Prerequisites: This skill requires the spectra CLI. If any spectra command fails with "command not found" or similar, report the error and STOP.

Steps

  1. If no change name provided, prompt for selection

    Run spectra list --json to get available changes. Use the AskUserQuestion tool to let the user select (if this tool is not available, ask as plain text and wait for the user's response).

    Show changes that have implementation tasks (tasks artifact exists). Include the schema used for each change if available. Mark changes with incomplete tasks as "(In Progress)".

    IMPORTANT: Do NOT guess or auto-select a change. Always let the user choose.

  2. Check status to understand the schema

    spectra status --change "<name>" --json

    Parse the JSON to understand:

    • schemaName: The workflow being used (e.g., "spec-driven")
    • Which artifacts exist for this change
  3. Get the change directory and load artifacts

    spectra instructions apply --change "<name>" --json

    This returns the change directory and context files. Read all available artifacts from contextFiles.

  4. Initialize verification report structure

    Create a report structure with three dimensions:

    • Completeness: Track tasks and spec coverage
    • Correctness: Track requirement implementation and scenario coverage
    • Coherence: Track design adherence and pattern consistency

    Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.

  5. Verify Completeness

    Task Completion:

    • If tasks.md exists in contextFiles, read it
    • Parse checkboxes: - [ ] (incomplete) vs - [x] (complete)
    • Count complete vs total tasks
    • If incomplete tasks exist:
      • Add CRITICAL issue for each incomplete task
      • Recommendation: "Complete task: <description>" or "Mark as done if already implemented"

    Spec Coverage:

    • If delta specs exist in openspec/changes/<name>/specs/:
      • Extract all requirements (marked with "### Requirement:")
      • For each requirement:
        • Search codebase for keywords related to the requirement
        • Assess if implementation likely exists
      • If requirements appear unimplemented:
        • Add CRITICAL issue: "Requirement not found: <requirement name>"
        • Recommendation: "Implement requirement X: <description>"
  6. Verify Correctness

    Requirement Implementation Mapping:

    • For each requirement from delta specs:
      • Search codebase for implementation evidence
      • If found, note file paths and line ranges
      • Assess if implementation matches requirement intent
      • If divergence detected:
        • Add WARNING: "Implementation may diverge from spec: <details>"
        • Recommendation: "Review <file>:<lines> against requirement X"

    Scenario Coverage:

    • For each scenario in delta specs (marked with "#### Scenario:"):
      • Check if conditions are handled in code
      • Check if tests exist covering the scenario
      • If scenario appears uncovered:
        • Add WARNING: "Scenario not covered: <scenario name>"
        • Recommendation: "Add test or implementation for scenario: <description>"

    Example Traceability:

    • For each ##### Example: in delta specs:
      • Check if a test exists that uses the same input values from the example's GIVEN/WHEN/THEN
      • If the example has a table, check if parameterized tests cover all rows
      • If examples appear untested, add WARNING: "Spec example not covered by test: <example name>" with recommendation to add a test using the GIVEN/WHEN/THEN from the example
  7. Verify Coherence

    Design Adherence:

    • If design.md exists in contextFiles:
      • Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
      • Verify implementation follows those decisions
      • If contradiction detected:
        • Add WARNING: "Design decision not followed: <decision>"
        • Recommendation: "Update implementation or revise design.md to match reality"
    • If no design.md: Skip design adherence check, note "No design.md to verify against"

    Code Pattern Consistency:

    • Review new code for consistency with project patterns
    • Check file naming, directory structure, coding style
    • If significant deviations found:
      • Add SUGGESTION: "Code pattern deviation: <details>"
      • Recommendation: "Consider following project pattern: <example>"
  8. Generate Verification Report

    Summary Scorecard:

    ## Verification Report: <change-name>
    
    ### Summary
    | Dimension    | Status           |
    |--------------|------------------|
    | Completeness | X/Y tasks, N reqs|
    | Correctness  | M/N reqs covered |
    | Coherence    | Followed/Issues  |

    Issues by Priority:

    1. CRITICAL (Must fix before archive):
      • Incomplete tasks
      • Missing requirement implementations
      • Each with specific, actionable recommendation
    2. WARNING (Should fix):
      • Spec/design divergences
      • Missing scenario coverage
      • Each with specific recommendation
    3. SUGGESTION (Nice to fix):
      • Pattern inconsistencies
      • Minor improvements
      • Each with specific recommendation

    Final Assessment:

    • If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
    • If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
    • If all clear: "All checks passed. Ready for archive."

Verification Heuristics

  • Completeness: Focus on objective checklist items (checkboxes, requirements list)
  • Correctness: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
  • Coherence: Look for glaring inconsistencies, don't nitpick style
  • False Positives: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
  • Actionability: Every issue must have a specific recommendation with file/line references where applicable

Graceful Degradation

  • If only tasks.md exists: verify task completion only, skip spec/design checks
  • If tasks + specs exist: verify completeness and correctness, skip design
  • If full artifacts: verify all three dimensions
  • Always note which checks were skipped and why

Output Format

Use clear markdown with:

  • Table for summary scorecard
  • Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
  • Code references in format: file.ts:123
  • Specific, actionable recommendations
  • No vague suggestions like "consider reviewing"

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.