一键导入
simplify-review
Review code and tests for safe simplification opportunities without making changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code and tests for safe simplification opportunities without making changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for non-trivial implementation tasks that require meaningful code changes.
Shared mailbox transport protocol for Agent Deck workflows.
Handles a `closeout_delivered` workflow message and completes planner-side closeout.
Generates a browser-check mailbox message for runtime page validation and sends it to a browser-tester session.
Claim pending agent mail with `mailbox_recv` and immediately execute the requested workflow action.
Send an `execute_plan` workflow message to a planner that should complete one supervisor-assigned goal inside one workspace and report back to a supervisor.
| name | simplify-review |
| description | Review code and tests for safe simplification opportunities without making changes. |
Find what can be deleted, merged, inlined, or made more direct without changing behavior.
This skill is advisory only. Do not edit files, apply patches, or produce commit-ready diffs unless the user explicitly asks later.
Workflow protocol baseline: use the agent-deck-workflow skill.
Use one of:
simplify_review_requestedBefore reviewing, ensure scope and behavior/compatibility boundaries are explicit or safely inferable. If one critical fact is missing, ask one short question in direct-use mode; in mailbox mode, continue and list it under Scope Gaps.
high: clear net deletion/consolidation is available and behavior can be protectedmedium: simplification is useful but proof or sequencing needs carelow: code is already simple enough, or simplification would risk clarity/behaviorMailbox mode uses the full structure below:
Task: <task_id_or_N/A>
Action: simplify_review_report
From: simplify-reviewer <simplify_reviewer_session_id_or_N/A>
To: <requester_role_or_user> <requester_session_id_or_N/A>
Planner: <planner_session_id_or_N/A>
Round: <round_or_N/A>
## Simplification Assessment
Verdict: [high / medium / low opportunity]
Scope: [what was reviewed]
Core judgment: [1-2 sentences]
## Scope Gaps
- [missing context or `None`]
## Best Deletions
- [P1] [file or symbol]: What can be removed | Why behavior is preserved | Proof needed
If none, write: `- None.`
## Best Consolidations
- [P1] [file or symbol]: Repeated knowledge | Suggested owner or shape | Expected reduction in edit sites
If none, write: `- None.`
## Over-Engineering
- [P1] [file or symbol]: Extra concept, flag, wrapper, layer, or branch | Why it is not earning its keep | Suggested simplification
If none, write: `- None.`
## Low-Value Tests
- [P1] [test file or case]: Weak/incidental assertion | Why it does not protect meaningful behavior | Delete, merge, or rewrite direction
If none, write: `- None.`
## Keep As-Is
- [Area]: Why simplifying it now is not worth the risk or would reduce clarity
If none, write: `- None.`
## Suggested Simplification Order
1. [First behavior-preserving deletion/consolidation]
2. [Second safe simplification]
3. [Optional follow-up after proof]
## Guardrails
- tests/checks to run
- compatibility boundaries to preserve
- review cautions for broad or subtle changes
## Open Questions
- [Question]
If none, write: `- None.`
Direct-use mode skips the mailbox header block and starts at ## Simplification Assessment.
Use the agent-deck-workflow skill for shared protocol.
Skill-specific context resolution:
task_id: explicit -> mailbox body -> default N/Aplanner_session_id: explicit -> mailbox body -> default N/Asimplify_reviewer_session_id: explicit -> mailbox body To header -> bound mailbox sender context -> askrequester_session_id: explicit -> mailbox body From header -> askrequester_role: explicit -> mailbox body From header -> default requesterround: explicit -> mailbox body Round header -> default 1Execution flow in Agent Deck mode:
simplify_review_reportagent_deck_require_session for the requester session in the current workdirmailbox_send
from_address = agent-deck/<simplify_reviewer_session_id>to_address = agent-deck/<requester_session_id>subject = "simplify review report: <task_id> r<round>"body = <simplify review report body>