Skip to content
Agentmart
Submit a tool

simplify

Find low-info comments, one-off helpers, perf issues, and reuse opportunities.

Skill by https://github.com/lrstanley

IndexedMIT★ 1
Write a review

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/lrstanley-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.

We use your email only for this newsletter. Privacy

About

Find low-info comments, one-off helpers, perf issues, and reuse opportunities.

No 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
Find low-info comments, one-off helpers, perf issues, and reuse opportunities.
License
MIT
Metadata
role: specialist · scope: optimization · author: https://github.com/lrstanley · domain: quality · triggers: simplify, /simplify, code cleanup, diff cleanup, targeted refactor, unnecessary abstraction, dead code, one-off helpers, low-information comments, performance, N+1, reuse · output-format: code+analysis · related-skills: karpathy-guidelines, nuclear-review
Instructions
48 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Instruction

Simplify the scoped code by using parallel read-only review agents, then make targeted cleanup fixes yourself.

## Scope Selection

1. If the user provided an explicit scope after `/simplify` (paths, symbols, a diff, or a natural-language area), use that scope.
2. Otherwise, inspect local changes with both unstaged and staged diffs so staged work is not missed:

   ```bash
   git diff --no-color
   git diff --cached --no-color
   ```

   Treat the combined non-empty output as the scope.
3. If there is no local diff, fall back to concrete files, symbols, or changes mentioned in the conversation.
4. If that also does not exist, fall back to the current HEAD commit using `git show --stat --patch --no-color HEAD`.
5. Preserve unrelated user changes. Do not broaden the scope beyond the selected diff or mentioned files unless needed to understand existing patterns.

## Subagents

Launch the following three subagents in parallel. They must only report findings, use the same model as the parent agent, and must not edit files, run formatters, create worktrees, or commit. Pass the full combined diff when possible; if it is too large, pass the file list, relevant hunks, and scope summary.

1. Code quality reviewer: look for simplification opportunities, including but not limited to:
   - low-information comments: comments that restate the code instead of explaining intent, edge cases, or invariants.
   - one-off helpers: small helpers that are only used once and can be inlined to make the flow clearer.
   - nullable value proliferation: unnecessary null or undefined states that force defensive checks and make invariants unclear.
   - catch-all try/catch blocks: broad error handling that swallows errors without explaining which exceptions are expected.
   - unnecessary abstraction: generic wrappers, config objects, or interfaces introduced before there is real reuse.
   - weak type escape hatches: avoidable any, casts, non-null assertions, or overly broad types that hide real invariants.
   - duplicated state or derived state: storing values that can be computed from source state, creating stale-state risk.
   - dead or compatibility code: unused branches, parameters, fallback paths, or old behavior preserved without evidence.
2. Performance reviewer: look for performance issues in places where performance is critical, including but not limited to:
   - blocking operations in hot paths: sync Node.js functions or other blocking work that can stall the event loop.
   - uncached expensive operations: repeated computation, parsing, or lookups whose results could be reused safely.
   - busy waits: polling or loops that consume CPU while waiting instead of using events, timers, or backoff.
   - string concatenation in loops: repeated immutable string allocation that can become quadratic or allocation-heavy.
   - N+1 I/O: per-item database, filesystem, network, or RPC calls where batching would reduce latency or load.
   - chatty logging/telemetry: high-volume logs or metrics emitted inside tight loops or hot paths.
3. Reuse reviewer: look for existing patterns or helpers that can be reused, either elsewhere in the codebase or already present in the diff.

## Fixing

Aggregate the findings from all subagents. Make targeted fixes that reduce complexity or reuse existing patterns while preserving behavior. Skip issues that need additional user context or require a much larger refactor than the original diff, and include those skipped recommendations in the final summary.

After editing, run the most relevant lightweight checks for the touched files when practical. If checks are skipped or unavailable, say so. Finish by summarizing what you fixed and what you skipped but recommend.

From lrstanley/skills, MIT.

More from lrstanley/skills

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Oct 12, 2026 (16 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from https://github.com/lrstanley

Cite this page

simplify skill. Agent Mart. https://agentmart.dev/skills/lrstanley-simplify (last updated 2026-10-24)