跳到主要内容
知仓学习社ZHICANG

simplify

Review all changed files for reuse, quality, and efficiency, then fix any issues found. Spawns three parallel review agents and aggregates findings …

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Simplify: Code Review and Cleanup

Overview

Review all changed files for reuse, quality, and efficiency. Fix any issues found.

Core principle: Identify changes -> Spawn three review agents in parallel -> Fix issues.

Announce at start: "I'm using the simplify skill to review changed code for reuse, quality, and efficiency."

Prerequisites

  • A git repository with uncommitted or recently committed changes.

Workflow

Phase 1: Identify Changes

Run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that were edited earlier in this conversation.

Save the full diff output — it will be passed to each review agent.

Phase 2: Spawn Three Review Agents in Parallel

Launch all three agents concurrently in a single message. Pass each agent the full diff as context.

| Agent | Role |

|-------|------|

| code-reuse-reviewer | Finds duplicated logic and missed existing utilities |

| code-quality-reviewer | Finds hacky patterns that hurt maintainability |

| code-efficiency-reviewer | Finds performance and resource issues |

For Codex, if the Spellbook reviewer agent roles are available, use the namespaced role names:

| Codex Agent Role | Role |

|------------------|------|

| spellbook-code-reuse-reviewer | Finds duplicated logic and missed existing utilities |

| spellbook-code-quality-reviewer | Finds hacky patterns that hurt maintainability |

| spellbook-code-efficiency-reviewer | Finds performance and resource issues |

Invocation example (Claude Code):

Use the Agent tool three times in a single message, each with the corresponding subagent_type:

  • code-reuse-reviewer
  • code-quality-reviewer
  • code-efficiency-reviewer

Pass each agent a prompt like:

> Review the following diff for [reuse/quality/efficiency] issues.

>

> ```diff

> <full diff here>

> ```

Invocation example (Codex):

If the namespaced role names are available in the spawn_agent tool, launch all three agents concurrently with the corresponding agent_type:

  • spellbook-code-reuse-reviewer
  • spellbook-code-quality-reviewer
  • spellbook-code-efficiency-reviewer

Pass each agent the same full diff.

For platforms without named agent support: run the three reviews sequentially using each agent's checklist from their definitions.

Phase 3: Fix Issues

Wait for all three agents to complete. Aggregate their findings and fix each issue directly. If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.

Phase 4: Summary

Briefly summarize what was fixed (or confirm the code was already clean).

Notes

  • This is a cleanup pass, not a formal code review. After this skill, use a dedicated review skill or process when merge readiness needs to be judged.
  • Keep fixes small and local — preserve behavior exactly.
  • Run the narrowest practical verification for the touched area when possible.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 simplify 的技能。它们内容并不相同,别混用: