/subagent-system:chain-verifierfrom subagent-system
Audits final working-tree state against original requirements via git diff and file reads. Use at the end of multi-phase pipelines to confirm all changes satisfy stated requirements.
Ships in subagent-system. 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.
Do not attempt to reconstruct the pipeline's history. Treat this as an independent audit — evaluate only what is present in the provided files and git diff. Requesting chain history defeats the purpose of this skill.
Input: Original requirements (verbatim) + final affected file paths + optional TEST_COMMAND.
Step 0 — Verify git repo and read chain start commit.
First, confirm this is a git repository:
Bash("git rev-parse --is-inside-work-tree 2>/dev/null || echo NOT_GIT")
If the result is NOT_GIT: output CHAIN_VERIFICATION_BLOCKED: not a git repository — chain-verifier requires git to compute diffs. Run chain-verifier only in git-managed projects. and stop.
Resolve working dir and read the chain start commit:
Bash("git rev-parse --show-toplevel 2>/dev/null || echo '.'") # → WORKING_DIR
Bash("cat \"[WORKING_DIR]/.claude/checkpoints/chain-start-commit\" 2>/dev/null || echo NO_CHECKPOINT") # → start-commit
This file is written by checkpoint-writer at the start of Phase 1. If the result is NO_CHECKPOINT, set start-commit to HEAD~1 and report: "chain-start-commit not found — checkpoint-writer may not have run. Falling back to HEAD~1 as approximate start commit — run git log --oneline -10 to verify the correct range, then diff with git diff HEAD~1."
Verify independently in this order:
1. Read the affected files. Use Read to examine every file in the affected file paths list. Do not skim — read enough to assess whether the requirements are met.
2. Verify requirements are satisfied. Compare the current code state against the original requirements text. Do not compare against any intermediate agent output.
3. Review all changes made by the chain.
Resolve working dir first: Bash("git rev-parse --show-toplevel 2>/dev/null || echo '.'") → WORKING_DIR. Then run Bash("git -C [WORKING_DIR] diff [start-commit]") to see every change the pipeline made. Check for unexpected modifications outside the stated scope.
4. Check for unexpected changes. List any files modified that were not in the affected file paths list. Flag any behavior changes that the original requirements did not call for.
5. Run tests if a TEST_COMMAND was provided. Execute it with Bash and record the result.
Output format:
CHAIN_VERIFICATION:
Original requirement: "[verbatim quote]"
Actual code state: [summary of what the code currently does]
Changes made: [summary of git diff — files changed, lines added/removed]
Requirement met: YES | PARTIAL | NO
Detail: [what is or is not satisfied]
Unexpected changes: [list of files or behaviors outside stated scope, or NONE]
Tests: PASS | FAIL | N/A
Detail: [test output summary or "no TEST_COMMAND provided"]
VERDICT: APPROVED | NEEDS_REVERT | NEEDS_FIX
Reason: [one sentence]
APPROVED — requirements met, no unexpected changes, tests passNEEDS_REVERT — cascaded errors make the changes unsafe; include the git log for revert target selectionNEEDS_FIX — requirements partially met or tests fail, but revert is not necessaryWhat SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/apply-improvementsThis skill should be used when the user asks to apply improvement proposals ('apply improvements', 'ap dung improvement proposals') from .claude/improvement-proposals.md (written by pipeline-retrospective) to the plugin files./audit-outputThis skill should be used after a pipeline run completes, when the user asks to audit the pipeline output ('audit output', 'audit the run', '4-level audit'). Requires the project's test command as argument - without it Level 4 regression tests are skipped and the report is marked incomplete./checkpoint-writerThis skill should be used when saving current pipeline phase state to disk and creating a recovery commit. Trigger at the end of every implementation phase, when the user asks to "save a checkpoint", "commit this phase", or before any /compact or session end. Enables resume-from-checkpoint to reconstruct pipeline state after interruption./completion-checkerThis skill should be used after receiving output from a subagent that was assigned an explicit numbered task list and is expected to have produced a COMPLETION_CHECKLIST block. Do not invoke if the subagent was not given a task list — there will be no checklist to parse. Uses grep counts, not LLM estimation, to detect premature termination. Also trigger when user asks to "verify completion checklist", "check if agent finished all tasks", or "detect premature termination"./consolidate-findingsThis skill should be used when the user asks to "merge findings", "consolidate audit results", "combine security findings", or after all parallel audit agents complete and before running finding-validator or severity-gate. Produces FINDINGS_REPORT.md sorted CRITICAL→HIGH→MEDIUM→LOW with duplicates removed./context-packagerThis skill should be used before spawning a dependent agent when the previous phase produced interface changes, breaking changes, new constraints, or key file modifications the next agent must not violate. Extracts only the minimum necessary context — not the full prior output. Uses character count to decide INJECT (≤4,000 chars) vs USE_FORK (>4,000 chars). Also trigger when user asks to "package context for next phase", "prepare agent handoff", or "extract phase context".npx claudepluginhub minhthang1009/dotclaude --plugin subagent-systemOther plugins' skills for the same job