.cursor/skills/common-gavel/SKILL.md
Use when auditing a repository or scoped directory for dead code, abandoned work, stale TODOs, unused imports, or documentation drift that may require confirmation before cleanup and refinement.
npx skillsauth add Columbia-Cloudworks-LLC/EquipQR common-gavelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The common gavel and chisel strike away superfluities and leave the stone fit for the builder's use.
Run an idempotent tech-debt purge and logic-refinement pass on a scoped codebase.
This skill finds likely superfluities, confirms ambiguous intent with the user, removes only what is justified, updates or prunes stale docs, and then immediately polishes the surviving code in touched files without waiting for a second request.
/common-gavel/common-gavel <optional-scope-path>If no scope is supplied, use the repository root.
The stone is square.Copy this checklist and track it while running:
Common Gavel Progress
- [ ] 1) Confirm scope and constraints
- [ ] 2) Scan for superfluities and drift
- [ ] 3) Build evidence for each finding
- [ ] 4) Interview user on ambiguous intent
- [ ] 5) Strike confirmed dead code and stale docs
- [ ] 6) Chisel touched files automatically
- [ ] 7) Validate references, docs, and diagnostics
Capture:
Identify and group findings by type:
For each candidate finding, gather:
high, medium, lowDo not present speculative claims as facts.
Before proposing deletion or behavior-changing refactor, ask targeted questions:
<module/symbol> intentionally staged for future use?"<doc> or <implementation>?"If multiple questions exist, batch them with concise multiple-choice options where possible.
Delete or prune only confirmed dead code, stale docs, and confirmed superfluities. Keep the scope narrow and preserve unrelated behavior.
Immediately after the strike, refine the remaining code in every touched file:
After editing, verify that imports, references, and nearby docs still align. Run focused diagnostics or tests when relevant to the touched scope.
Use this shape in responses:
When producing the strike plan before execution, use a markdown table:
| Target | Issue | Action | Why | Checklist |
|---|---|---|---|---|
| path/or/symbol | concise problem statement | Delete / Refactor / Update Doc / Keep | intent + risk rationale | - [ ] step 1<br>- [ ] step 2 |
Then provide:
Immediate (safe, high-confidence changes)Needs Decision (blocked by policy/product intent)Deferred (lower-priority debt)If there are no confirmed actionable recommendations and docs are aligned, output exactly:
The stone is square.
If recommendations require user intent before action, state that no further safe recommendations can be made until answers are provided.
development
React performance optimization guidelines from Vercel Engineering, with EquipQR-specific mappings (Vite + React Router + TanStack Query). Use when writing, reviewing, or refactoring React code in this repo, especially around waterfalls, bundle size, and re-renders.
testing
Postgres performance optimization and best practices from Supabase, adapted to EquipQR's Supabase (Postgres + RLS) workflow. Use when editing SQL, migrations, indexes, or RLS policies.
development
Applies EquipQR's brand colors and design-system tokens to any artifact that should match EquipQR's look-and-feel. Use it when brand colors, style guidelines, visual formatting, or EquipQR design standards apply.
development
Use when auditing dependency health, API contract consistency, shared data shapes, or brittle integration seams between modules, services, and packages.