simplify
Clean up changed code without changing behavior — review it for reuse, simplification, efficiency, and altitude, then apply the fixes.
Skill by lithammer
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/lithammer-simplify
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
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/simplify
What's inside
- Skill name
simplify- Description
- Clean up changed code without changing behavior — review it for reuse, simplification, efficiency, and altitude, then apply the fixes. Quality only; it does not hunt for correctness bugs.
- License
- MIT
- Instructions
- 69 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Simplify
Improve the quality of the changed code. Review it for reuse, simplification,
efficiency, and altitude issues, then fix what you find. Do not look for
correctness bugs — that is a dedicated review pass, not this one.
## Phase 0 — Gather the diff
Run `git diff @{upstream}...HEAD` to get the diff under review. Without an
upstream, diff against the merge-base with the default branch, detected
dynamically (e.g. `git symbolic-ref refs/remotes/origin/HEAD`), and fall back
to `git diff HEAD~1`. If that range is empty or there are uncommitted changes,
also run `git diff HEAD` and include the working tree — this often runs before
the commit. If the invocation names a target — a PR, a branch, a path — review
that instead. Treat this diff as the review scope.
## Phase 1 — Review (four cleanup angles)
Spawn one subagent per angle below, each given the diff and its own angle.
Run them in parallel if the harness supports it; otherwise serialize. If the
harness has no subagents, work through all four angles yourself in one pass —
do not drop an angle for lack of fan-out — and say so in the summary, so the
reader isn't misled about what ran.
Each angle returns its findings with `file`, `line`, a one-line `summary`, and
the concrete cost: what is duplicated, wasted, or made harder to maintain.
Once all reports are in, or if the run stops or fails, release the reviewers
this run started and no others.
### Reuse
Flag new code that re-implements something the codebase already has — search
shared and utility modules and the files adjacent to the change, and name the
existing helper to call instead.
### Simplification
Flag unnecessary complexity the diff adds: redundant or derivable state,
copy-paste with slight variation, deep nesting, dead code left behind. Name
the simpler form that does the same job.
### Efficiency
Flag wasted work the diff introduces: redundant computation or repeated I/O,
independent operations run sequentially, blocking work added to startup or hot
paths. Also flag long-lived objects built from closures or captured
environments — they keep the entire enclosing scope alive for the object's
lifetime (a memory leak when that scope holds large values); prefer a class or
struct that copies only the fields it needs. Name the cheaper alternative.
### Altitude
Check that each change fixes the root cause at the right depth rather than
patching a symptom with a fragile bandaid. Special cases layered on shared
infrastructure are a sign the fix isn't deep enough — prefer the simpler, more
general change to the underlying mechanism over adding special cases, and name
that change.
## Phase 2 — Apply the fixes
Wait for all four angles to report, dedup findings that point at the same line
or mechanism, and fix each remaining one directly. Skip any finding whose fix
would change intended behavior, require changes well outside the reviewed
diff, or that you judge to be a false positive — note the skip rather than
arguing with it. Finish with a brief summary of what was fixed and what was
skipped (or confirm the code was already clean).From lithammer/ai, MIT.
More from lithammer/ai
- 0.565score
code-review
lithammer
Review changed code for correctness bugs and instruction-file violations, verify each candidate, and report the survivors without editing.
SkillAFreshness: AClaude Code +9 - 0.565score
develop
lithammer
Implement a feature or fix from agreed requirements, then verify it and resolve an independent spec review.
SkillAFreshness: AClaude Code +9 - 0.565score
create-pr
lithammer
Create a draft or ready-for-review PR for the current branch.
SkillAFreshness: AClaude Code +9 - 0.558score
review-docs
lithammer
Reviews doc, docstring, and comment diffs for AI-like prose and for comments that no longer have a job.
SkillAFreshness: AClaude Code +9 - 0.558score
research-codebase
lithammer
Map how the code a ticket touches works today, then name the next step: develop, refactor, or grill-with-docs.
SkillAFreshness: AClaude Code +9 - 0.558score
refactor
lithammer
Find structural refactors that remove caller obligations, then implement the chosen change.
SkillAFreshness: AClaude Code +9 - 0.558score
nemesis
lithammer
Challenge a plan, design, or implementation one branch at a time.
SkillAFreshness: AClaude Code +9 - 0.539score
implement-review
lithammer
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding…
SkillAFreshness: AClaude Code +9 - 0.539score
tdd
lithammer
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.533score
ask-matt
lithammer
Ask which skill or flow fits your situation.
SkillAFreshness: AClaude Code +9 - 0.530score
implement-spec
lithammer
Implement the result of /to-spec and /to-tickets in code.
SkillAFreshness: AClaude Code +9 - 0.528score
implement
lithammer
Implement a piece of work based on a spec or set of tickets.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 14, 2026 (15 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/lithammer/ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lithammer
- 0.565score
code-review
lithammer
Review changed code for correctness bugs and instruction-file violations, verify each candidate, and report the survivors without editing.
SkillAFreshness: AClaude Code +9 - 0.565score
create-pr
lithammer
Create a draft or ready-for-review PR for the current branch.
SkillAFreshness: AClaude Code +9 - 0.565score
develop
lithammer
Implement a feature or fix from agreed requirements, then verify it and resolve an independent spec review.
SkillAFreshness: AClaude Code +9 - 0.558score
review-docs
lithammer
Reviews doc, docstring, and comment diffs for AI-like prose and for comments that no longer have a job.
SkillAFreshness: AClaude Code +9 - 0.558score
nemesis
lithammer
Challenge a plan, design, or implementation one branch at a time.
SkillAFreshness: AClaude Code +9 - 0.558score
refactor
lithammer
Find structural refactors that remove caller obligations, then implement the chosen change.
SkillAFreshness: AClaude Code +9
Cite this page
simplify skill. Agent Mart. https://agentmart.dev/skills/lithammer-simplify (last updated 2026-10-24)