skills/code-simplifier/SKILL.md
Use when recently changed working code has become harder to safely modify after a feature, fix, or refactor, and needs a behavior-preserving simplification pass that improves readability, local reasoning, responsibility boundaries, and future editability without broad redesign.
npx skillsauth add nbsp1221/agent-skills code-simplifierInstall 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.
Run a behavior-preserving simplification pass on recently changed code.
Optimize for recoverability:
Do not optimize for:
Clarity beats brevity. A little local duplication is acceptable when it keeps meaning obvious.
Default scope:
Scope rules:
Evaluate candidate edits in this order:
Do not let DRY outrank clarity, local reasoning, or responsibility boundaries.
references/simplification-principles.md to judge simplification candidates.references/acceptable-vs-unacceptable-changes.md before edits that affect boundaries, error flow, async flow, or shared contracts.Before keeping an edit, ask:
If the answer is weak or unclear, prefer the smaller change.
Before claiming simplification is complete:
Report briefly. Focus on outcome, not narration.
Include:
Read these only when needed:
references/simplification-principles.md - recoverability-oriented editing rulesreferences/acceptable-vs-unacceptable-changes.md - safe vs risky vs forbidden simplification movesreferences/examples.md - positive and negative examplestesting
Use when deciding whether to split a coding task into parallel exploration, bounded review fan-out, or single-writer delegated work instead of keeping it in one agent.
testing
Use when investigating a repository that is not already available locally and the user needs repository-specific understanding of its structure, implementation, maintenance, or relevant files.
testing
Use when a founder has a rough product idea and wants autonomous deep validation, market and competitor research, and an evidence-based MVP decision with minimal back-and-forth.
testing
Write and review Docker Compose files with consistent best practices and conventions (file naming, override strategy, service naming, key ordering, env handling, ports, and healthchecks). Use when creating or standardizing compose.yaml/docker-compose.yml.