用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/andrem-sec/psc-comet --skill simplify命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | simplify |
| description | 3-agent parallel code review — reuse, quality, and efficiency — fixes issues found |
| version | 0.1.0 |
| level | 2 |
| triggers | ["/simplify","simplify this","clean up the code","review for quality"] |
| context_files | ["context/project.md"] |
| steps | [{"name":"Spawn Reviewers","description":"Launch 3 parallel agents — Reuse, Quality, Efficiency — each reviewing the changed code"},{"name":"Aggregate Findings","description":"Collect all findings from the 3 agents"},{"name":"Fix","description":"Fix each valid issue directly. Skip false positives without argument."},{"name":"Confirm","description":"Report what was fixed, or confirm the code was already clean"}] |
Runs 3 specialized review agents in parallel against recently changed code, then fixes every valid issue found. Used before creating PRs, after major implementations, or any time code quality needs a structured pass.
The batch skill calls this automatically before opening a PR — run it manually any time.
A single pass review misses issues that require focused attention. Reuse analysis requires scanning the whole codebase for existing utilities — a different cognitive task from quality review, which requires reading logic flow. Running all three simultaneously, each with a focused mandate, catches more in less time.
Spawn all three in a single message block for true parallelism.
Focus: find code that duplicates something that already exists.
Focus: structural and semantic anti-patterns.
Focus: unnecessary work and missed concurrency.
Agent 1 prompt:
You are a code reuse reviewer. Review the recently changed files for duplicated logic
and missed opportunities to use existing utilities. [list changed files + relevant context]
Report each finding as: FILE:LINE — description — suggested fix
Agent 2 prompt:
You are a code quality reviewer. Review the recently changed files for structural and
semantic anti-patterns. [list changed files + relevant context]
Report each finding as: FILE:LINE — description — suggested fix
Agent 3 prompt:
You are an efficiency reviewer. Review the recently changed files for unnecessary work
and missed concurrency opportunities. [list changed files + relevant context]
Report each finding as: FILE:LINE — description — suggested fix
All three are subagent_type: "general-purpose", read-only (no writes — findings only).
After collecting all findings:
Simplify complete — [N] issues fixed, [N] false positives skipped
Fixed:
- auth/session.ts:147 — extracted hashPassword() to utils/crypto.ts (reuse)
- components/Form.tsx:23 — removed redundant useMemo (efficiency)
Clean: api/routes.ts (no issues found)
If nothing was found: "Code is clean — no issues found by any reviewer."
Do not run the three agents sequentially. They must run in parallel (single message block).
Do not fix issues that require understanding business logic without surfacing them to the user.
Do not argue with false positives. Skip them and move on.