Catalogue / code-vader
code-vader
MITSignedPre-commit diff review replicating Claude Code /code-review (correctness & safety) and Ponytail / code-yoda (restraint, anti-bloat & shortcut debt) across all hosts, ending in READY-TO-COMMIT: YES or CHANGES-REQUESTED (code-vader)--- name: code-vader description: "Pre-commit diff review replicating Claude Code /code-review (correctness & safety) and Ponytail / code-yoda (restraint, anti-bloat & shortcut debt) across all hosts, ending in READY-TO-COMMIT: YES or CHANGES-REQUESTED (code-vader)" ---
Load the code-vader skill ({{SKILLS}}/code-vader/SKILL.md) and run its unified two-lens pre-commit review on this repo's diff. Arguments: the words typed after the command (optional: --staged, --unstaged, --auto, or --range <base>..<head> for committed work; default --auto prefers git diff --cached and falls back to unstaged git diff).
- Collect diff & debt markers — Run
sh {{SKILLS}}/code-vader/scripts/code-vader.sh collect <args>(Windows:powershell -NoProfile -ExecutionPolicy Bypass -File {{SKILLS}}/code-vader/scripts/code-vader.ps1 collect <args>). Read the changed files and callers of modified symbols before judging. - Lens 1: Correctness & Safety (`/code-review` replication) — Audit the diff for logic flaws, edge cases, unchecked error returns, null/undefined crashes, race conditions, type unsoundness, security vulnerabilities, and regression risks. Keep only findings with confidence >= 80 and a concrete failure scenario.
- Lens 2: Restraint & Anti-Bloat (`code-yoda` / Ponytail replication) — Audit the diff for over-engineering, unnecessary abstractions (
yagni:), duplicate utilities (reuse:), stdlib replacements (stdlib:), platform features (native:), dead code (delete:), near-copies (merge:), and shorter forms (shrink:), plusshortcut:/ponytail:debt markers (flaggingno-triggermarkers) and the net line-count reduction estimate (net: -<N> lines possible.). - Rank & Verdict — Output findings ranked by severity (
critical,high,important,low) andfile:line(viacode-vader.{sh,ps1} formator the canonical report template), followed by the debt ledger and net line estimate, ending with the literal binary verdict on the final line:READY-TO-COMMIT: YESorCHANGES-REQUESTED.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 2.1 kB | 484183cfa4c4 |
| SKILVAULT_SOURCE.json | 1.1 kB | 82245fc91792 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | 4a8ffbcbd854 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 202dd22dc06e | 28 Nov 2026 |
Locking a skill to one version needs Pro.