Agent skill

Simplify Code

by johnson7788 in johnson7788/MultiUserClaw

Parallel 3-agent cleanup of recent code changes. An agent skill from johnson7788/MultiUserClaw.

MITAuto-check passedDevelopment

Install Simplify Code

skills CLI
$ npx skills add johnson7788/MultiUserClaw --skill simplify-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install johnson7788/MultiUserClaw simplify-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/johnson7788/MultiUserClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/hermes-agent/skills/software-development/simplify-code .claude/skills/simplify-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
simplify-code
GitHub stars
327
Token cost
~2.7k tokens
SKILL.md length
1,412 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Parallel 3-agent cleanup of recent code changes. An agent skill from johnson7788/MultiUserClaw.

  • Works in 3 steps: Identify the changes → Launch three reviewers in parallel → Aggregate and apply
  • Tasks that involve Code simplification
  • SKILL.md covers When to Use, The Process, Pitfalls and Related
  • Calls git

What it does

Simplify Code is an agent skill from johnson7788/MultiUserClaw. Parallel 3-agent cleanup of recent code changes.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code simplification. It works with Git. The repository describes itself as: 目前OpenClaw和NanoBot都是用于个人的,不太支持多用户,基于多用户重新修改Bot,没有对Openclaw进行任何更改,原生能力封装. The licence is MIT.

When your agent uses it

  • Tasks that involve Code simplification

Example prompts

  • “/simplify-code”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Identify the changes
  2. Launch three reviewers in parallel
  3. Aggregate and apply

What it can do on your machine

Read from SKILL.md and the folder at commit 2f88dfa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Simplify Code loads about 2.7k tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 1,412 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~16
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from johnson7788/MultiUserClaw at commit 2f88dfa, republished under its MIT licence (© johnson7788). 1,412 words, ~2,716 tokens.

Download SKILL.mdSave it as .claude/skills/simplify-code/SKILL.md (or your agent's skills folder).
name
simplify-code
description
Parallel 3-agent cleanup of recent code changes.
version
1.0.0
author
Hermes Agent (inspired by Claude Code /simplify)
license
MIT
platforms
linux, macos, windows

Simplify Code — Parallel Review & Cleanup

Review your recent code changes with three focused reviewers running in parallel, aggregate their findings, and apply the fixes worth applying.

Core principle: Three narrow reviewers beat one broad reviewer. Each one deeply searches the codebase for a single class of problem — reuse, quality, efficiency — without diluting its attention across all three. They run concurrently, so you pay the latency of one review, not three.

When to Use

Trigger this skill when the user says any of:

  • "simplify" / "simplify my changes" / "simplify these changes"
  • "review my code" / "review my recent changes" / "clean up my changes"
  • "/simplify" (if they're carrying the Claude Code habit over)

Optional modifiers the user may add — honor them:

  • Focus: "simplify focus on efficiency" → run only the efficiency reviewer (or weight the aggregation toward it). Recognized focuses: reuse, quality, efficiency.
  • Dry run: "simplify but don't change anything" / "just report" → run the three reviewers, present findings, apply NOTHING. Ask before applying.
  • Scope: "simplify the last commit" / "simplify staged" / "simplify src/foo.py" → narrow the diff source accordingly (see Phase 1).

Do NOT auto-run this after every edit. It costs three subagents' worth of tokens — invoke it only when the user explicitly asks.

The Process

Phase 1 — Identify the changes

Capture the diff to review. Pick the source by what the user asked for, in this default order:

bash
# 1. Default: uncommitted working-tree changes (tracked files)
git diff

# 2. If that's empty, include staged changes
git diff HEAD

# 3. Scoped variants the user may request:
git diff --staged                 # "staged changes"
git diff HEAD~1                    # "the last commit"
git diff main...HEAD              # "this branch" / "my PR"
git diff -- src/foo.py            # specific file(s)

If git diff and git diff HEAD are both empty and there's no git repo or no changes, fall back to the files the user explicitly named or that were recently created/edited in this session. If you genuinely can't find any changed code, say so and stop — there's nothing to simplify.

Capture the full diff text. Note its size: if it's very large (say >2000 changed lines), warn the user that three subagents each carrying the full diff will be token-heavy, and offer to scope it down (per-directory, per-commit) before proceeding.

Phase 2 — Launch three reviewers in parallel

Use delegate_task batch mode — pass all three tasks in one tasks array so they run concurrently. Three is the right fan-out for this pattern; it's well within the delegation.max_concurrent_children budget on any default install.

Give every reviewer the complete diff (not fragments — cross-file issues hide in the gaps) plus the absolute repo path so they can search the wider codebase. Each reviewer gets terminal, file, and search toolsets (so they can git, read_file, and search_files/grep).

Tell each reviewer to:

  • Search the existing codebase for evidence (don't reason from the diff alone).
  • Apply Chesterton's Fence: before flagging anything for removal, run git blame on the line to understand why it exists. If you can't determine the original purpose, mark it confidence: low — don't guess.
  • Report findings as structured output with confidence and risk:
    file:line → problem → suggested fix | confidence: high/medium/low | risk: SAFE/CAREFUL/RISKY
    • SAFE = proven not to affect behavior (unused imports, commented-out code, pass-through wrappers). Auto-apply these.
    • CAREFUL = improves without changing semantics (rename local variable, flatten nested ternary, extract helper). Apply with test verification.
    • RISKY = may change behavior or breaks public contracts (N+1 restructuring, public API rename, memory lifecycle change). Flag for human review — do NOT auto-apply.
  • Skip nits and style-only churn. Only flag things that materially improve the code.

Pass these three goals (drop any the user's focus excludes):

Reviewer 1 — Code Reuse

Review this diff for code that duplicates functionality already in the codebase. Search utility modules, shared helpers, and adjacent files (use search_files / grep) for existing functions, constants, or patterns the new code could call instead of reimplementing. Flag: new functions that duplicate existing ones; hand-rolled logic that an existing utility already does (manual string/path manipulation, custom env checks, ad-hoc type guards, re-implemented parsing). For each, name the existing thing to use and where it lives.

Reviewer 2 — Code Quality

Review this diff for quality problems. Look for: redundant state (values that duplicate or could be derived from existing state; caches that don't need to exist); parameter sprawl (new params bolted on where the function should have been restructured); copy-paste-with-variation (near-duplicate blocks that should share an abstraction); leaky abstractions (exposing internals, breaking an existing encapsulation boundary); stringly-typed code (raw strings where a constant/enum/registry already exists — check the canonical registries before flagging); AI-generated slop patterns (extra comments restating obvious code like // increment counter above count++; unnecessary defensive null-checks on already-validated inputs; as any casts that bypass the type system; patterns inconsistent with the rest of the file). For each, give the concrete refactor.

Reviewer 3 — Efficiency

Review this diff for efficiency problems. Look for: unnecessary work (redundant computation, repeated file reads, duplicate API calls, N+1 access patterns); missed concurrency (independent ops run sequentially); hot-path bloat (heavy/blocking work on startup or per-request paths); TOCTOU anti-patterns (existence pre-checks before an op instead of doing the op and handling the error); memory issues (unbounded growth, missing cleanup, listener/handle leaks); overly broad reads (loading whole files when a slice would do); silent failures (empty catch blocks, ignored error returns, except: pass, .catch(() => {}) with no handling, error propagation gaps — these hide bugs and should at minimum log before swallowing). For each, give the concrete fix and why it's faster or safer.

Show full SKILL.md (575 more words)Show less
Phase 3 — Aggregate and apply

Wait for all three to return (batch mode returns them together).

  1. Merge the findings into one list, deduping where reviewers overlap.
  2. Discard false positives — you have the most context; you don't have to argue with a reviewer, just drop weak or wrong suggestions silently.
  3. Resolve conflicts. Reviewers can disagree (Reviewer 1: "use existing util X"; Reviewer 3: "X is slow, inline it"). Default resolution order: correctness > the user's stated focus > readability/reuse > micro-perf. Don't apply a perf "fix" that hurts clarity unless the path is genuinely hot. When two suggestions are mutually exclusive and both defensible, pick the one that touches less code and note the alternative.
  4. Apply in risk-tier order:
    • SAFE first (auto-apply): unused imports, commented-out code, pass-through wrappers, redundant type assertions. Run tests after.
    • CAREFUL next (apply with verification, one file at a time): rename locals, flatten ternaries, extract helpers, consolidate dupes. Run tests after each file. Revert any that break.
    • RISKY last (flag for review — do NOT auto-apply): N+1 restructuring, public API changes, concurrency fixes, error-handling changes. Present each with risk description and test coverage status. If the user opted for a dry run, present all three tiers and apply nothing.
  5. Verify you didn't break anything: run the project's targeted tests for the touched files (not the full suite), and re-run any linter/type check the repo uses. If a fix breaks a test, revert that one fix and report it.
  6. Summarize what you changed: a short list of applied fixes grouped by reviewer category and risk tier, plus any findings you deliberately skipped and why.

Pitfalls

  • Don't fan out wider than ~3. More reviewers means more cost and more conflicting suggestions to reconcile, not better coverage. Three categories cover the space.
  • Give the WHOLE diff to each reviewer. Splitting the diff across reviewers defeats the design — cross-file duplication and N+1s only show up with the full picture.
  • Reviewers search, they don't guess. A reuse finding with no pointer to the existing utility ("there's probably a helper for this") is noise. Require file:line evidence; drop findings that lack it.
  • Apply ≠ rewrite. This is cleanup of the user's recent changes, not a license to refactor the whole module. Keep edits scoped to what the diff touched plus the minimal surrounding change a fix requires.
  • Respect project conventions. If the repo has AGENTS.md / CLAUDE.md / HERMES.md or a linter config, fold those rules into the reviewer prompts so suggestions match house style instead of fighting it.
  • Large diffs blow context. If the diff is huge, scope it down before delegating — three subagents each carrying a 5000-line diff is expensive and may truncate.
  • Over-trusting dead code tools. knip, ts-prune, and depcheck flag exports that ARE used dynamically (string-based imports, reflection). Always grep for the symbol name before removing — a clean tool report is not proof.
  • Renaming without checking public contracts. Export names, API route paths, DB column names, and config keys are contracts — even if the name is bad, renaming breaks consumers. Tag public-contract changes as RISKY; never auto-rename them.
  • Removing "unnecessary" error handling. An empty catch block or ignored error might be intentional — the error is expected and benign in that context. Flag it, don't remove it; let the human decide.

If your install has the subagent-driven-development skill (optional), it covers the complementary case: parallel review during implementation, per task. This skill is the standalone after-the-fact cleanup pass. Use requesting-code-review for the pre-commit security/quality gate.

© johnson7788, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in hermes-agent/skills/software-development/simplify-code of johnson7788/MultiUserClaw.

Open the folder on GitHubat commit 2f88dfa

Compare with similar skills

Simplify Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Simplify Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Simplify Code this skilljohnson7788/MultiUserClaw327—~2.7kAutomated safety check: PassMIT
Reviewtisfeng/Easydict15k—~659Automated safety check: PassGPL-3.0
Disciplined Worktree Promotionnathanmcnulty/nathanmcnulty441—~2.1kAutomated safety check: PassUnlicense
Absolute Simplifymaddhruv/absolute218—~6.1kAutomated safety check: PassMIT
Pragmatic Reviewheyitsnoah/claudesidian2.6k—~2.6kAutomated safety check: PassMIT
Code SimplifierTwiTech-LAB/devchain101—~2kAutomated safety check: PassCustom licence

Similar skills

  • Review

    tisfeng/Easydict

    审查本地工作树、提交、range、文件或模块,找出有证据的缺陷。GitHub PR 审查使用 review-pr;代码清理使用 code-simplifier。

    15k GitHub stars~659 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Disciplined Worktree Promotion

    nathanmcnulty/nathanmcnulty

    Guides agents working in isolated git worktrees or short-lived branches on what to keep, discard or promote, so the accepted baseline branch stays clean.

    441 GitHub stars~2.1k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Absolute Simplify

    maddhruv/absolute

    A skill your agent uses when the user wants to simplify, clean up, refactor, tidy, or refine code — their staged/unstaged git changes or a target file/path.

    218 GitHub stars~6.1k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Pragmatic Review

    heyitsnoah/claudesidian

    Interactive pragmatic code review focusing on YAGNI and KISS principles.

    2.6k GitHub stars~2.6k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Code Simplifier

    TwiTech-LAB/devchain

    Review a change set for reuse, simplification, efficiency, and altitude problems, then apply the fixes while preserving exact behavior.

    101 GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Refiner

    Mathews-Tom/armory

    Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.

    327 GitHub stars~3.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from johnson7788/MultiUserClaw

All 9 skills in this repo
  • Hyperframes

    johnson7788/MultiUserClaw

    Create HTML-based video compositions, animated title cards, social overlays, captioned talking-head videos, audio-reactive visuals, and shader transitions using HyperFrames.

    327 GitHub stars~3.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Osint Investigation

    johnson7788/MultiUserClaw

    Public-records OSINT investigation framework — SEC EDGAR filings, USAspending contracts, Senate lobbying, OFAC sanctions, ICIJ offshore leaks, NYC property records (ACRIS), OpenCorporates…

    327 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Powerpoint

    johnson7788/MultiUserClaw

    Create, read, edit .pptx decks, slides, notes, templates. An agent skill from johnson7788/MultiUserClaw.

    327 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Computer Use

    johnson7788/MultiUserClaw

    Drive the user's desktop in the background — clicking, typing, scrolling, dragging — without stealing the cursor, keyboard focus, or switching virtual desktops / Spaces.

    327 GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check: warnings
  • Hermes Agent Skill Authoring

    johnson7788/MultiUserClaw

    Author in-repo SKILL.md: frontmatter, validator, structure, and writing-quality principles.

    327 GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Hermes S6 Container Supervision

    johnson7788/MultiUserClaw

    Modify, debug, or extend the s6-overlay supervision tree inside the Hermes Agent Docker image — adding new services, debugging profile gateways, understanding the Architecture B main-program pattern.

    327 GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check: notes

Works with

Categories

Questions about Simplify Code

What does Simplify Code do?

Parallel 3-agent cleanup of recent code changes. An agent skill from johnson7788/MultiUserClaw. Simplify Code is an agent skill from johnson7788/MultiUserClaw. Parallel 3-agent cleanup of recent code changes.

When should I use Simplify Code?

Simplify Code fits situations like: tasks that involve Code simplification.

How do I install Simplify Code in Claude Code?

Run `npx skills add johnson7788/MultiUserClaw --skill simplify-code -a claude-code`. Or copy the skill folder (hermes-agent/skills/software-development/simplify-code in johnson7788/MultiUserClaw) into .claude/skills/simplify-code in your project. Claude Code loads it when a task matches its description.

How do I install Simplify Code in Codex?

Run `npx skills add johnson7788/MultiUserClaw --skill simplify-code -a codex`. Or copy the skill folder (hermes-agent/skills/software-development/simplify-code in johnson7788/MultiUserClaw) into .agents/skills/simplify-code in your project. Codex loads it when a task matches its description.

Can I use Simplify Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add johnson7788/MultiUserClaw --skill simplify-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/simplify-code, .gemini/skills/simplify-code, .github/skills/simplify-code and .opencode/skills/simplify-code in your project.

What does Simplify Code need to run?

Going by SKILL.md and its folder, Simplify Code needs the command-line tools its instructions call (git).

Does Simplify Code access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Simplify Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Simplify Code use?

Simplify Code is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Simplify Code use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Simplify Code?

Skills that share tags, products or a category with Simplify Code: Review (tisfeng/Easydict, 15k stars), Disciplined Worktree Promotion (nathanmcnulty/nathanmcnulty, 441 stars), Absolute Simplify (maddhruv/absolute, 218 stars) and Pragmatic Review (heyitsnoah/claudesidian, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Simplify Code?

johnson7788 (a GitHub user) maintains it in johnson7788/MultiUserClaw, which has 327 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 13, 2026.

Source: johnson7788/MultiUserClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.