SkilVaultSign inStart free

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).

  1. 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.
  2. 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.
  3. 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:), plus shortcut: / ponytail: debt markers (flagging no-trigger markers) and the net line-count reduction estimate (net: -<N> lines possible.).
  4. Rank & Verdict — Output findings ranked by severity (critical, high, important, low) and file:line (via code-vader.{sh,ps1} format or 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: YES or CHANGES-REQUESTED.