Skip to main content
skill CX Codex

verify · mag123c — Claude Code skill: what it does, how to install

Runs a self-healing Rust verification loop using cargo test, clippy, and fmt. It prevents false passes by enforcing actual test execution before review.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mag123c/toktrack --skill verify -a claude-code
Open on GitHub

What verify does

The skill automates Rust project checks in a strict sequence: cargo test --quiet, cargo clippy --all-targets --all-features -- -D warnings, and cargo fmt --all -- --check. When a step fails, the agent inspects compiler or linter errors, modifies the source code, and retries. If the exact same failure occurs 3 times in a row, the loop stops to notify the user.

Verification honesty rules prevent false green reports. Skipped tests marked #[ignore] or runs blocked by missing external services count as unresolved blockers instead of passes. Mock-only coverage must be explicitly flagged in the report as unconfirmed integration.

The workflow depends entirely on an active Rust toolchain with Cargo. Once all checks run honestly without blockers, the agent immediately triggers /review without asking for confirmation.

What it helps with

  • run Cargo test, Clippy, and formatting checks before committing
  • fix compiler and linter errors automatically in a retry loop
  • stop unrun or ignored tests from masquerading as verified passes
  • trigger the /review step right after all verification gates clear

Example prompts for the agent

  • Run the verify loop on this crate before making a commit
  • Check the Rust codebase and fix any clippy warnings automatically
  • Verify test execution and report unresolved blockers

How to install verify

1Skills CLI (Vercel)

npx skills add mag123c/toktrack --skill verify -a claude-code

2Manually: put the files in place

~/.claude/skills/verify/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/verify/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about verify

How to install verify in Claude Code?

Run npx skills add mag123c/toktrack --skill verify -a claude-code in your terminal.

What does verify do?

It executes cargo test, cargo clippy, and cargo fmt --check in order. When tests or linter checks fail, the agent repairs the code and retries the process.

What happens when an error persists during self-healing?

After 3 identical failures, the agent halts retries and escalates the issue directly to the user.

Source text

SKILL.md · MIT
---
name: verify
description: Self-healing verification loop (test → clippy → fmt)
required_context: []
---

# Verify

## Flow
```
cargo test → cargo clippy → cargo fmt --check
    │            │              │
    └── On fail: fix and retry (notify user after 3 same failures)
```

## Commands
```bash
cargo test --quiet
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --all -- --check
```

## Verification Honesty (MUST — PASS gate)

Verification trustworthiness lies not in "what passed" but in **"what was *actually executed* and passed"**. Enforced before any PASS verdict.

### Skip ≠ Pass
- Tests marked `ignored` / `#[ignore]` are **unverified** → do not count as green.
- Tests skipped due to environment (missing external service, platform constraints, etc.) are a **BLOCKER**. If unfixable, escalate to user as "verification incomplete + reason" rather than PASS.

### Do not cite unrun tests as verification evidence
- "Confirmed via test X" is only valid when **that test actually ran and passed in this execution**.
- Do not use a merely written test as evidence of "confirmed" (false-green = false reassurance).

### Coverage honesty (mock ≠ real)
- Mock-based unit tests verify **only the logic inside the mock boundary**. Behaviors invisible to mocks — file I/O, concurrency, simd-json real parsing — are **confirmed only by integration verification**.
- If a path is covered only by mocks, report it as **"mock coverage only — integration unconfirmed"** rather than "verified".

### Acceptance/DoD cross-check (carry PLAN gates)
- Read the PLAN Acceptance/DoD and any `[unverified-gate]` passed from implement; cross-check whether each item **actually ran and passed in this execution**.
- If unrunnable (prod smoke / external service / CI-only environment) → no green-wash. Tag as `[unverified-gate: delegated, owner/due/probe]` and **carry to wrap Plan Reconciliation** (`../wrap/references/reconciliation.md`).

### Report format
- ✅ Actually executed and passed
- ⛔ Skipped/environment-blocked + **reason** (unresolved = BLOCKER, not PASS)
- ⚠️ Mock coverage only, integration unconfirmed
- ⏳ Delegated to wrap due to unverifiable Acceptance item

## Self-Healing
- Fail → analyze error → fix code → retry
- Same error 3 times → notify user

## Rules
- Required before commit
- Order: test → clippy → fmt
- All must pass to proceed

## Next Step
**Only when the Verification Honesty gate passes** (actual execution passed, no unresolved BLOCKERs) → call `/review` immediately. Do not ask "should I review?".

If there are unresolved BLOCKERs, **do not proceed to /review** — report "verification incomplete + reason + required environment actions" to the user.

© mag123c · MIT · mag123c/toktrack

Similar skills

All skills for Testing and QA →

verify by other authors comes first.

verify react Validates code changes against React repository requirements before committing. Runs Prettier, linter, Flow type checks, and tests. CX Codex +1 1,200installs verify Yeachan-Heo Turns "it should work" into evidence you can read: which check ran, what passed, and what stayed unverified. CX Codex +1 652installs verify codewithmukesh Runs a .NET project check before review, covering builds, tests, security, formatting, and changed files. CX Codex +1 2,800installs verify kirkchen Checks an implementation against change artifacts before archiving. Two independent subagents handle the verification. CX Codex +1 509installs verify timschoch Defines a single source of truth for gate checks across git hooks and CI. Keeps local pre-push checks and pull request pipelines aligned. CX Codex +1 536installs improve-codebase-architecture Matt Pocock This skill scans a codebase for architectural friction, then builds a visual HTML report with refactoring candidates. Use it before a deeper architecture review. 1,163,035installs design-taste-frontend Leonxlnx This skill directs the design of public pages and work screens, then checks the result in a browser through screenshots. Use it when an interface feels generic or unfinished. CX Codex +1 678,700installs tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. 1,141,062installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. 414,180installs agent-browser vercel-labs A CLI skill for browser control: it opens pages, fills forms, clicks buttons, and tests web apps. Use it when an agent needs to act inside a website. CX Codex +1 1,200,000installs prototype Matt Pocock Creates throwaway prototypes for checking state logic or exploring UI before committing the decision to the main codebase. 986,201installs

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor