Verify Subtask (spec compliance)

VerifiedSafe

Checks that a subtask implementation matches its spec. Gathers the diff and produces a compliance report via subtask-verifier.

Sby Skills Guide Bot
DevelopmentIntermediate
8/30/2026
Claude Code
#spec-compliance#code-review#git-diff#subtask-verification#agent-orchestration

Recommended for

Automated summary

Invoked as /verify-subtask, this skill reads a subtask specification, collects the corresponding git diff, and delegates to the subtask-verifier agent to produce a spec-compliance matrix with a PASS, PARTIAL, or FAIL verdict.

Strengths

  • Automates the comparison between a roadmap spec and the code that was actually changed
  • Resolves the spec path sensibly (explicit .md or expansion under docs/roadmap/) and returns an error message with a concrete example
  • Handles a clean working tree by falling back to the most recent commit (HEAD~1)
  • Emits a normalized output: verbatim matrix, verdict, and a 'Next step' line pointing to /test-gap, a fix, or /pr-review

Limitations

  • Assumes a docs/roadmap/<...>.md spec layout and a pre-existing subtask-verifier agent
  • Only covers uncommitted changes or the last commit; wider commit ranges are not handled
  • Fixes nothing and runs no tests: it is a read-only compliance check, not functional validation
When to use it

Use it right after implementing a subtask, before running /test-gap and /pr-review, to confirm the code matches its specification.

When not to use it

Skip it if the project does not keep subtask specs under docs/roadmap/ or if the subtask-verifier agent is not installed.

Security analysis

Safe
Quality score84/100

The skill is a read-and-report workflow: it resolves a markdown spec path under docs/roadmap, runs read-only git diff commands, and delegates a compliance report to a named sub-agent. There are no network calls, no deletion, no credential handling, no obfuscated payloads, and no attempts to weaken agent safety behavior. The only notable residual risk is that diff and spec text are passed into a sub-agent as context, which is a mild prompt-injection surface inherent to any code-review skill.

Findings
  • •Declares Bash but the instructions restrict usage to read-only git plumbing (`git diff --name-only`, `git diff`), which is appropriate
  • •Spawns a sub-agent (`Agent`) and passes it spec-file contents plus raw diff output, which is untrusted text; a hostile diff/spec could carry injected instructions to the verifier (low, indirect prompt-injection exposure)
  • •Contains explicit error handling instead of failing silently, so no destructive fallback behavior
How this analysis is made

Examples

Verify a roadmap subtask by short path
/verify-subtask 0001-working-implementation/01.0-hello-world-endpoint/01-config-model
Verify using an explicit spec file
/verify-subtask docs/roadmap/0002-auth/02.1-login-flow.md
Re-check after fixing gaps
/verify-subtask 0002-auth/02.1-login-flow — I addressed the PARTIAL deviations, please re-run the compliance check against the current diff.

name: verify-subtask description: User-invoked as /verify-subtask <path>. Reads the subtask spec, gathers the implementation diff, and spawns subtask-verifier to produce a spec-compliance report. Run after implementation, before /pr-review and /test-gap. allowed-tools: Read, Grep, Glob, Bash, Agent invocation: /verify-subtask <subtask-path>

Verify Subtask (spec-compliance check)

Check that the implementation of a subtask matches its specification document.

Steps

  1. Resolve the spec path from $ARGUMENTS.

    • If the argument ends with .md, use it as-is relative to repo root.
    • Otherwise, expand to docs/roadmap/$ARGUMENTS.md.
    • If the file does not exist, error: "Spec not found: <path>. Pass the path relative to docs/roadmap/ without the .md extension, e.g. 0001-working-implementation/01.0-hello-world-endpoint/01-config-model."
  2. Gather the diff scope. Run git diff --name-only HEAD to get changed files. If the working tree is clean (no staged or unstaged changes), try git diff --name-only HEAD~1 to capture the most recent commit.

  3. Spawn subtask-verifier with:

    • The resolved spec path
    • The diff (changed file list + git diff HEAD or git diff HEAD~1 output) Ask it to produce a full compliance matrix and verdict.
  4. Return the agent's compliance report verbatim.

    • PASS → confirm to the caller that review/testing can proceed.
    • PARTIAL → list deviations; recommend fixing before merge but do not block.
    • FAIL → list blocking gaps; instruct caller to return to cpp-expert with the list.

Output

The verbatim compliance matrix from subtask-verifier, plus one line:

→ Next step: [proceed to /test-gap | fix gaps then re-run /verify-subtask | proceed with caution]

Completion checklist

  • [ ] Spec file found and readable
  • [ ] Diff scope captured (changed files list non-empty or commit diff used)
  • [ ] subtask-verifier returned a verdict (not null / timed out)
  • [ ] On FAIL: blocking gaps listed and next step is "return to cpp-expert"
  • [ ] On PARTIAL: deviations listed and next step is "fix before merge"
  • [ ] On PASS: confirmation that /test-gap and /pr-review can proceed

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/verify-subtask-spec-compliance-mtfbwl1l/download' --output '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md.part' && mv '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md.part' '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Grep, Glob, Bash, Agent

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md' && test -s '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/verify-subtask' && cp -R '.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l' '.claude/skills/verify-subtask'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/verify-subtask-spec-compliance-mtfbwl1l'

openskills read 'verify-subtask-spec-compliance-mtfbwl1l'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/verify-subtask-spec-compliance-mtfbwl1l/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills