simplify-code
Review uncommitted changes, unpushed commits, or a provided git diff range with a reuse-first simplification lens.
Skill by drlove2002
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/drlove2002-simplify-code
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/simplify-code
What's inside
- Skill name
simplify-code- Description
- Review uncommitted changes, unpushed commits, or a provided git diff range with a reuse-first simplification lens. Use when the user asks to simplify code, reuse existing code, reduce new code, clean up uncommitted changes, review unpushed commits for redundancy, or avoid rebuilding from scratch.
- License
- MIT
- Instructions
- 79 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- collect-changes.sh · scripts/
SKILL.md (first lines)
# Simplify Code Reuse-first simplification of recent changes. Reduce new code, not just restyle it. Operates on uncommitted changes, unpushed commits, or a user-provided diff range. ## Workflow ### 1. Collect change scope Run the bundled helper (resolved from this skill's directory): ```bash bash scripts/collect-changes.sh [<diff-range>] ``` - No arg → uncommitted changes (tracked modified + staged + untracked) and unpushed commits against upstream. - Arg given (e.g. `main..HEAD`, `HEAD~3`, `abc123`) → that range/ref. If the user points at specific files or paths instead of a range, scope to those. ### 2. Inspect existing code before judging new code For every added or modified block, read the surrounding module and related files first (use `scout` for 2+ files). Do not flag new code as redundant until you know what already exists. The reuse check is the first question, not an afterthought. ### 3. Find reuse opportunities Search for code that already does the new code's job: - helper / utility functions - existing types, structs, interfaces, classes - modules or patterns already in the repo - standard library or already-imported libraries - project tooling that replaces hand-rolled logic Prefer extending or composing existing code over adding new files, wrappers, or abstractions. ### 4. Classify findings Tag each observation: - **REUSE** — replace new code with an existing helper/type/pattern. - **DELETE** — new code is unnecessary; remove it. - **MERGE** — duplicate logic across files; consolidate. - **KEEP** — new code is justified; leave it. - **RISK** — touches a public interface, shared helper, or wide blast radius; verify callers before touching. ### 5. Present a simplification plan Before any edit, show: files, each finding with its tag, the proposed change, risks, and verification steps. Wait for explicit approval. Collecting scope, classifying findings, or your own confidence is not approval. ### 6. Edit surgically (after approval) - Change only what the task needs; avoid reorganizing adjacent code. - Preserve existing public interfaces and structure unless the user approves changing them. - Before modifying any function/class, grep all callers and summarize blast radius. - Delete imports/variables your changes made unused. Leave pre-existing dead code alone. - Minimum code, no speculative abstractions. ### 7. Verify - Run the repo formatter/linter, tests, and build where feasible. - For multi-file changes (2+ files or 30+ lines), delegate to the `reviewer` subagent. - Show proof: tests pass, build exits 0, or the simplification diff. ### 8. Leave changes uncommitted Do not stage or commit. After verification, suggest the `commit` skill for logical commits if the user wants them. Never push. ## Stop conditions - Every finding is KEEP or requires changes broader than the task justifies. - The user says "good enough." - A simplification would alter a public interface or semantics the user hasn't approved. ## Guardrails - No guessing: if you don't know whether code is reused elsewhere, search or ask. - Inspect git history (`git log --oneline -10 -- <file>`) before changing files that predate the change set. - Never assume a workspace is a single git repo; use the resolved repo root. - No production or external mutation. Read-only until approved edits; never push.
From drlove2002/ai-config, MIT.
More from drlove2002/ai-config
- 0.479score
web-test
drlove2002
Browser automation via agent-browser CLI for testing pages, debugging, performance audits, visual review, accessibility checks, and interaction testing.
SkillCFreshness: CClaude Code +9 - 0.474score
design
drlove2002
Design interfaces and domain models.
SkillCFreshness: CClaude Code +9 - 0.474score
docs
drlove2002
Look up documentation for any library, framework, or product concept.
SkillCFreshness: CClaude Code +9 - 0.474score
readability
drlove2002
Examine and improve code holistically — structure, naming, readability, API design, performance, and file organization.
SkillCFreshness: CClaude Code +9 - 0.474score
refactor
drlove2002
Improve existing code through inspection, simplification, and testing.
SkillCFreshness: CClaude Code +9 - 0.474score
simplify-writing
drlove2002
Normalize written knowledge by eliminating redundancy, centralizing canonical descriptions, and surfacing contradictions.
SkillCFreshness: CClaude Code +9 - 0.474score
triage
drlove2002
Diagnose bugs, capture feature requests, and manage issues through a label-based workflow.
SkillCFreshness: CClaude Code +9 - 0.474score
plan
drlove2002
Turn conversation context into a Product Requirements Document (PRD) and break it down into independently-grabbable tracking issues.
SkillCFreshness: CClaude Code +9 - 0.474score
add-model
drlove2002
Test availability, benchmark speed, and add a new model to any OpenAI-compatible provider in models.json.
SkillCFreshness: CClaude Code +9 - 0.474score
recover
drlove2002
Surgical recovery from production regressions caused by agent-introduced bugs.
SkillCFreshness: CClaude Code +9 - 0.471score
commit
drlove2002
Automate the workflow of grouping unstaged changes or squashing unpushed commits into logical, high-quality conventional commits.
SkillCFreshness: CClaude Code +9 - 0.450score
skill
drlove2002
Create new agent skills with proper structure, progressive disclosure, and bundled resources.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 13, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/drlove2002/ai-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from drlove2002
- 0.479score
web-test
drlove2002
Browser automation via agent-browser CLI for testing pages, debugging, performance audits, visual review, accessibility checks, and interaction testing.
SkillCFreshness: CClaude Code +9 - 0.474score
design
drlove2002
Design interfaces and domain models.
SkillCFreshness: CClaude Code +9 - 0.474score
docs
drlove2002
Look up documentation for any library, framework, or product concept.
SkillCFreshness: CClaude Code +9 - 0.474score
add-model
drlove2002
Test availability, benchmark speed, and add a new model to any OpenAI-compatible provider in models.json.
SkillCFreshness: CClaude Code +9 - 0.474score
plan
drlove2002
Turn conversation context into a Product Requirements Document (PRD) and break it down into independently-grabbable tracking issues.
SkillCFreshness: CClaude Code +9 - 0.474score
readability
drlove2002
Examine and improve code holistically — structure, naming, readability, API design, performance, and file organization.
SkillCFreshness: CClaude Code +9
Cite this page
simplify-code skill. Agent Mart. https://agentmart.dev/skills/drlove2002-simplify-code (last updated 2026-10-24)