rune-kit/rune/verification

Claude Code and agent skill by rune-kit/rune

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Universal verification runner. Runs lint, type-check, tests, and build. Use after any code change to verify nothing is broken.

Install

npx vskill@latest install rune-kit/rune/verification

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as rune-kit/rune/verification.

verification

Runs all automated checks to verify code health. Stateless — runs checks and reports results.

Instructions

Phase 1: Detect Project Type

Use Glob to find project config files:

  1. Check for package.json → Node.js/TypeScript project
  2. Check for pyproject.toml or setup.py → Python project
  3. Check for Cargo.toml → Rust project
  4. Check for go.mod → Go project
  5. Check for pom.xml or build.gradle → Java project

Use Read on the detected config file to find scripts or tool config (e.g., package.json scripts block for custom lint/test commands).

TodoWrite: [
{ content: "Detect project type", status: "in_progress" },
{ content: "Run lint check", status: "pending" },
{ content: "Run type check", status: "pending" },
{ content: "Run test suite", status: "pending" },
{ content: "Run build", status: "pending" },
{ content: "Generate verification report", status: "pending" }
]
Phase 2: Run Lint

Use Bash to run the appropriate linter. If package.json has a lint script, prefer that:

  • Node.js (npm lint script): npm run lint
  • Node.js (no script): npx eslint . --max-warnings 0
  • Python: ruff check . (fallback: flake8 .)
  • Rust: cargo clippy -- -D warnings
  • Go: golangci-lint run (fallback: go vet ./...)

If lint fails: record the failure output, mark lint as FAIL, continue to next step. Do NOT stop.

Verification gate: Command exits without crashing (even if it reports lint errors — those are FAIL, not errors).

Phase 3: Run Type Check

Use Bash:

  • TypeScript: npx tsc --noEmit
  • Python: mypy . (fallback: pyright .)
  • Rust: cargo check
  • Go: go vet ./...

If type check fails: record error count and first 10 error lines, mark as FAIL, continue.

Phase 4: Run Tests

Use Bash to run the test suite. Prefer the project script if available:

  • Node.js (npm test script): npm test
  • Vitest: npx vitest run
  • Jest: npx jest --passWithNoTests
  • Python: pytest -v (fallback: python -m unittest discover)
  • Rust: cargo test
  • Go: go test ./...

Record: total tests, passed count, failed count, coverage percentage if output includes it.

If tests fail: record which tests failed (first 20), mark as FAIL, continue to build.

Phase 5: Run Build

Use Bash:

  • Node.js: check package.json for build script → npm run build (fallback: npx tsc)
  • Python: check pyproject.toml for [build-system] section:
  • If build backend found (setuptools, poetry-core, hatchling, flit-core): python -m build --no-isolation 2>&1 | head -20 to verify packaging
  • If setup.py exists (legacy): python setup.py check --strict
  • Then always: pip install -e . --dry-run to catch broken entry points, missing __init__.py, or import path issues
  • If no pyproject.toml and no setup.py (scripts-only project): SKIP
  • Rust: cargo build
  • Go: go build ./...

If build fails: record first 20 lines of build output, mark as FAIL.

Phase 6: Generate Report

Compile all results into the structured report. Update all TodoWrite items to completed.

3-Level Artifact Verification

Every file created or modified during implementation must pass ALL 3 levels:

Level 1 — EXISTS: File is on disk, non-empty.

Glob("path/to/expected/file") → found

Level 2 — SUBSTANTIVE: Contains real logic, NOT a stub. Scan for these stub patterns:

PatternLanguageMeaning
Component returns only <div>Placeholder</div> or <div>TODO</div>React/VueStub component
Route returns { message: "Not implemented" } or res.status(501)APIStub endpoint
Function body is only return null / return {} / return [] / passAnyStub function
Class with all methods throwing NotImplementedErrorPython/JavaStub class
useEffect with empty body / async function with no awaitReact/JSHollow implementation
File has only type/interface exports but no implementationTypeScriptStub types-only file
// TODO or # TODO as the only content in a functionAnyPlaceholder
onClick={() => {}} / handler bound to an empty or console.log-only functionReact/Vue/SvelteDead handler — wired to nothing
href="#" on an action link (not navigation)HTML/JSXDead action link
Submit handler whose body is only event.preventDefault()Any UIForm that swallows input

If ANY stub pattern detected → mark file as STUB, Level 2 FAIL.

Level 3 — WIRED: Actually imported/called/used by the rest of the system.

File TypeWiring Check
ComponentGrep("<ComponentName") in parent files → ≥1 consumer
API route`Grep("fetch\\axios\\api.*endpoint")` for this path → ≥1 caller
HookGrep("useHookName(") → ≥1 consumer
Utility functionGrep("import.*from.*this-file") → ≥1 importer
DB model/schema`Grep("ModelName\\table_name")` in query files → ≥1 reference
CSS/style moduleGrep("import.*from.*this-style") → ≥1 importer

If file has 0 consumers → mark as UNWIRED, Level 3 FAIL.

Exception: Entry-point files are exempt from Level 3 — they ARE the top-level consumers. Entry points include: main.ts/index.ts/App.tsx/routes config, server entrypoints referenced by package.json main/start/bin, and root pages served statically (e.g. public/index.html behind express.static).

Config/manifest files (package.json, tsconfig, *.yml, dotfiles): Level 2 = valid, non-empty, matches its schema's basic shape; Level 3 = exempt (consumed by tooling, not imports).

Level 3.5 — INTERACTION WIRED (UI files in this task's diff only — .tsx/.jsx/.vue/.svelte/.html):

Level 3 proves the component is rendered; Level 3.5 proves its interactive elements do something. For each UI file created or modified in this task:

  1. Grep interactive elements in the file — framework-aware patterns: <button, <form, type="submit", action=, <a with an action-style href (href="#", href="", javascript:) — pure-navigation anchors (href="#section-id" with a matching id, route paths) are exempt — plus binding syntax per framework: React onClick=/onSubmit=, Svelte on:click=/on:submit=, Vue @click/@submit/v-on:, plain HTML addEventListener
  2. For each element, trace INWARD:
  • Handler bound? Interactive element with NO binding in any framework syntax above and no enclosing form handler → UNWIRED-INTERACTIVE. Prop-origin handlers PASS: onClick={props.onSave}, on:click={dispatch('save')}, or a callback-library pattern (onSubmit={handleSubmit(onSubmit)} — react-hook-form et al.) count as bound; wiring the prop is the parent's/caller's responsibility, checked at the parent's own 3.5 pass
  • Handler resolves? The bound symbol is locally defined OR imported (imported = resolves; do not demand the import's body) and its body is non-trivial (not caught by the Level 2 dead-handler patterns)
  • Target exists? If the handler calls fetch/axios/a service function → the route path or service symbol EXISTS somewhere in the codebase (Grep the path/symbol). Handler → nonexistent target = UNWIRED-INTERACTIVE. Pure-navigation handlers (router.push, navigate(...), framework <Link>) PASS — navigation is their target
  1. Reverse check: every API route HANDLER created in this task (per-route, not per-file — a file with 3 routes gets 3 checks) has ≥1 caller (Grep each route's path across UI/service files). Route with 0 callers → UNCALLED-ROUTE
  2. Pure-display elements (no user expectation of action: decorative buttons in mockups explicitly listed in .rune/ui-spec.md ## Unwired Elements) are reported as INFO, not failures — they are design's declared debt, tracked by converge
  3. De-dup: if preflight already flagged the same element as dead-interactive in this session, cite the cross-reference ("preflight Step 4.5 already flagged") instead of emitting a duplicate finding

Scope guard: Level 3.5 runs ONLY on files in this task's diff. Pre-existing files with dead interactive elements → WARN (legacy debt, don't punish), never FAIL.

Signal: when the diff touches both UI and api/service/data files AND every Level 3.5 check passes, emit integration.verified with {files_checked, interactions_traced}. Downstream deploy uses this as its cross-layer wiring evidence.

<HARD-GATE name="3-level-verification"> ALL new files must pass Level 1 + Level 2 + Level 3. UI files in this task's diff must ALSO pass Level 3.5. EXISTS but STUB = "Existence Theater" — agent created files but didn't implement them. EXISTS and SUBSTANTIVE but UNWIRED = dead code — created but never connected. SUBSTANTIVE and WIRED but UNWIRED-INTERACTIVE = dead button — renders, does nothing. Same failure tier as UNWIRED. Report which level failed for each file in the Verification Report. </HARD-GATE>

Artifact Output Verification

Never trust exit 0. Many tools exit 0 even when they fail silently. Always verify ACTUAL output.

After each phase command, verify that the expected artifact or indicator is present:

Test output — scan stdout for the pass/fail summary line:

  • Vitest/Jest: look for X passed, X failed — if neither appears, output is incomplete
  • Pytest: look for X passed or X failed — exit 0 with no summary = runner crashed silently
  • If only exit code available and no summary line found → mark as INCOMPLETE, not PASS

Build output — after npm run build / cargo build / go build:

  • Verify the output file exists: Glob("dist/**/*.js") or equivalent
  • Verify file size > 0 bytes: a zero-byte output = silent truncation failure
  • If output directory is missing → FAIL even if command exited 0

Lint output — parse stdout for counts, not just exit code:

  • ESLint: look for X problems (Y errors, Z warnings) — 0 problems = PASS
  • Ruff/Flake8: zero output lines = PASS; any file:line output = FAIL
  • If linter exits 0 but output contains error keyword → log as suspicious, mark WARN

Generated files — check magic bytes for binary outputs:

  • PDF: first bytes must be %PDF — use Bash("head -c 4 file.pdf")
  • ZIP/XLSX/DOCX: first bytes must be PK (ZIP magic) — use Bash("head -c 2 file.zip")
  • File size must exceed minimum threshold (PDF > 1KB, ZIP > 100 bytes)

Type check — do not trust exit code alone:

  • TypeScript tsc --noEmit: look for Found X errors or absence of error lines
  • Found 0 errors = PASS; any other count = FAIL
  • Empty output from tsc = PASS (no errors emitted) — note explicitly

<HARD-GATE name="artifact-verification"> Verification MUST check actual command output for success indicators, not just exit codes. Exit 0 without a confirming output artifact or success string = UNVERIFIED. Report the specific line that confirmed success (e.g., "3 passed, 0 failed"). </HARD-GATE>

Surface-Constraint Verification (the Constraint Loop)

Everything above verifies behaviour with a tool. Some deliverables instead carry a constraint on their own surface form: a banned or required character, an exact word or line count, a positional pattern, a strict format, a naming scheme every entry must follow, a diff that must not touch a listed path. These look trivial and are the opposite — a model generates meaning-first and reads its own output as tokens, not characters, so the constraint sits exactly where its perception is weakest. The most natural wording for the topic is usually the likeliest violator.

Re-reading the output and judging that it complies is not verification. A re-read always passes. That is the whole failure mode.

Run this loop whenever a deliverable carries a mechanically checkable surface constraint:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
93
Repository forks
26
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rune-kit/rune/verification/badge)](https://verified-skill.com/skills/rune-kit/rune/verification)

Something wrong with this skill or its page? Tell us.