agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…
Parallel 3-agent cleanup of recent code changes.
$ npx -y skills add johnson7788/multiuserclaw --skill simplify-code --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/simplify-codeContext preview
The summary Claude sees to decide when to auto-load this skill.
Parallel 3-agent cleanup of recent code changes.
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]
metadata:
hermes:
tags: [code-review, cleanup, refactor, delegation, subagent, parallel, simplify]
related_skills: [requesting-code-review, test-driven-development, plan]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.
Trigger this skill when the user says any of:
Optional modifiers the user may add — honor them:
(or weight the aggregation toward it). Recognized focuses: `reuse`, `quality`, `efficiency`.
three reviewers, present findings, apply NOTHING. Ask before applying.
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.
Capture the diff to review. Pick the source by what the user asked for, in this default order:
# 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.
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:
`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.
file:line → problem → suggested fix | confidence: high/medium/low | risk: SAFE/CAREFUL/RISKY
code, pass-through wrappers). Auto-apply these.
flatten nested ternary, extract helper). Apply with test verification.
restructuring, public API rename, memory lifecycle change). Flag for human review — do NOT auto-apply.
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)
基于 Hermes 改造的轻量级 AI 助手框架,可以快速打造商用 SaaS 平台,支持多租户隔离部署、多平台渠道接入、工具调用、定时任务和 Web 实时通信。 在线体验地址: (直接注册即可使用) 当前默认内核后端:Hermes Agent
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks,…