simplify-code

Reviews recent code changes with three parallel subagents and applies safe cleanup fixes.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/maopujie10-sys/Bailongma --skill simplify-code-maopujie10-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify-code
Source: https://github.com/maopujie10-sys/Bailongma/tree/main/skills/hermes-skills/software-development/simplify-code
Command: npx skills add https://github.com/maopujie10-sys/Bailongma --skill simplify-code-maopujie10-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cleaning up freshly written code is tedious and easy to skip, and a single broad review often misses duplication, quality issues, or inefficiencies hiding across files. This Skill runs three focused reviewers in parallel over your recent diff, aggregates their findings, and applies only the fixes that are safe to apply. ## Core Features & Use Cases - Parallel Three-Reviewer Analysis: Launches reuse, quality, and efficiency reviewers concurrently via delegate_task batch mode, each searching the full codebase for evidence with file:line citations. - Risk-Tiered Fix Application: Classifies findings as SAFE (auto-apply), CAREFUL (apply with test verification), or RISKY (flag for human review), so behavior-changing edits are never applied silently. - Flexible Scoping and Dry Run: Supports focusing on one category, scoping to staged changes, the last commit, a branch, or specific files, and running in report-only mode. - Use Case: After finishing a feature branch, say "simplify my changes" to get duplicated logic replaced with existing utilities, redundant state removed, and N+1 patterns flagged — with tests re-run after every applied fix. ## Quick Start Ask the agent to simplify my recent code changes and report what it fixed and what it deliberately skipped.

Frequently Asked Questions about simplify-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review and clean up my recent code changes automatically?

Invoke the skill with a phrase like "simplify my changes" after making edits. It captures your git diff, runs three parallel reviewers for reuse, quality, and efficiency, then applies safe fixes and reports anything risky for your decision.

How to run a code review on only staged changes or the last commit?

Specify the scope in your request, such as "simplify staged" or "simplify the last commit". The skill maps this to git diff --staged, git diff HEAD~1, branch diffs, or specific file paths before delegating to reviewers.

Can I get a code review report without changing any files?

Yes, request a dry run with phrasing like "simplify but don't change anything". The three reviewers still run and present all findings grouped by risk tier, but no edits are applied until you approve them.

Why does the skill use three reviewers instead of one?

Three narrow reviewers each focus on a single problem class — reuse, quality, or efficiency — without diluting attention. They run concurrently, so total latency equals one review while coverage spans all three categories.

When should I not auto-apply suggested code cleanup fixes?

Avoid auto-applying RISKY findings such as public API renames, N+1 restructuring, concurrency changes, or error-handling removal, since they may alter behavior or break contracts. The skill flags these for human review instead of applying them.