/elegant-code-review
Review the current working diff against the elegant-code decision ladder and propose deletions, honoring the negligence floor.
$ npx -y skills add athola/claude-night-market --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/elegant-code-review
Context preview
What this command does when you run it.
Review the current working diff against the elegant-code decision ladder and propose deletions, honoring the negligence floor.
Command definition
elegant-code-review.mdname: elegant-code-review
description: Review the current working diff against the elegant-code decision ladder and propose deletions, honoring the negligence floor.
usage: /elegant-code-review [--staged] [--base REF]
Elegant Code Review
Walk the current working diff against the `elegant-code` decision ladder. For each added hunk, name the rung that justifies it, flag any rung skipped, and propose concrete deletions. This is a per-change review. For whole-codebase cleanup, use `/unbloat`.
When To Use
- After writing or generating a change, before committing.
- When a diff feels larger than the problem it solves.
- When a new dependency appears in a lockfile or manifest.
When NOT To Use
- Whole-codebase dead-code sweeps: use `/unbloat` or `/bloat-scan`.
- Throwaway scripts where review cost is near zero.
Steps
1. Load the rubric: `Skill(conserve:elegant-code)`. 2. Collect the diff:
- Default: `git diff` (unstaged) plus `git diff --staged`.
- `--staged`: staged changes only.
- `--base REF`: `git diff REF...HEAD`.
3. For each added hunk, assign the lowest ladder rung that justifies it: 1. Need-to-exist 2. Builtin / stdlib 3. Native platform 4. Installed dependency 5. A few lines A new dependency is the last resort, below rung 5. If one was added, confirm it with `Skill(imbue:dependency-verification)` and check whether an installed dependency already covered the need. 4. Cross-check deletability with a real tool when available, treating output as candidates only:
command -v knip >/dev/null && knip || echo "knip absent; skipping"
command -v vulture >/dev/null && vulture . || echo "vulture absent; skipping"
5. Apply the negligence floor before proposing any deletion. Never propose removing input validation, authorization, data-loss handling, error handling, security paths, or accessibility. 6. Check completeness, not just excess. Flag a hunk that handles only the happy path: missing edge cases (empty, `None`, zero, boundary), missing negative or failure paths, or an obvious performance trap (quadratic loop, N+1 query). Minimal code that omits these is unfinished, not lean.
Output
A short table, one row per reviewed hunk:
| File:line | Chosen rung | Lower rung available? | Proposed action | |-----------|-------------|-----------------------|-----------------|
Close with a one-line verdict: `minimal and complete`, `trim suggested`, `new dependency unjustified`, or `incomplete: add coverage`. List proposed deletions, and any missing edge, negative, or performance coverage, as concrete diffs the user approves before anything changes.
Notes
- Read-only by default: propose, do not delete without approval.
- Composes `leyline:additive-bias-defense` for the burden-of-proof
verdict on each addition.
Read more
name: elegant-code-review description: Review the current working diff against the elegant-code decision ladder and propose deletions, honoring the negligence floor. usage: /elegant-code-review [--staged] [--base REF]
Elegant Code Review
Walk the current working diff against the `elegant-code` decision ladder. For each added hunk, name the rung that justifies it, flag any rung skipped, and propose concrete deletions. This is a per-change review. For whole-codebase cleanup, use `/unbloat`.
When To Use
- After writing or generating a change, before committing.
- When a diff feels larger than the problem it solves.
- When a new dependency appears in a lockfile or manifest.
When NOT To Use
- Whole-codebase dead-code sweeps: use `/unbloat` or `/bloat-scan`.
- Throwaway scripts where review cost is near zero.
Steps
1. Load the rubric: `Skill(conserve:elegant-code)`. 2. Collect the diff:
- Default: `git diff` (unstaged) plus `git diff --staged`.
- `--staged`: staged changes only.
- `--base REF`: `git diff REF...HEAD`.
3. For each added hunk, assign the lowest ladder rung that justifies it: 1. Need-to-exist 2. Builtin / stdlib 3. Native platform 4. Installed dependency 5. A few lines A new dependency is the last resort, below rung 5. If one was added, confirm it with `Skill(imbue:dependency-verification)` and check whether an installed dependency already covered the need. 4. Cross-check deletability with a real tool when available, treating output as candidates only:
command -v knip >/dev/null && knip || echo "knip absent; skipping" command -v vulture >/dev/null && vulture . || echo "vulture absent; skipping"
5. Apply the negligence floor before proposing any deletion. Never propose removing input validation, authorization, data-loss handling, error handling, security paths, or accessibility. 6. Check completeness, not just excess. Flag a hunk that handles only the happy path: missing edge cases (empty, `None`, zero, boundary), missing negative or failure paths, or an obvious performance trap (quadratic loop, N+1 query). Minimal code that omits these is unfinished, not lean.
Output
A short table, one row per reviewed hunk:
| File:line | Chosen rung | Lower rung available? | Proposed action | |-----------|-------------|-----------------------|-----------------|
Close with a one-line verdict: `minimal and complete`, `trim suggested`, `new dependency unjustified`, or `incomplete: add coverage`. List proposed deletions, and any missing edge, negative, or performance coverage, as concrete diffs the user approves before anything changes.
Notes
- Read-only by default: propose, do not delete without approval.
- Composes `leyline:additive-bias-defense` for the burden-of-proof
verdict on each addition.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Other commands on claude-night-market.
- /aggregate-logs
Generate LEARNINGS.md from skill execution logs.
Open command - /analyze-skill
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Open command - /bulletproof-skill
Harden skills against rationalization and bypass behaviors
Open command - /context-report
Generate context optimization report for skill directories
Open command - /create-command
Create slash commands with brainstorming and best practices
Open command - /create-hook
Create hooks with brainstorming and security-first design
Open command

