Agent Skillsgolbin/agent-skills › review-implementation

review-implementation

GitHub

基于证据审查实现代码,修复根本原因并通过简化迭代优化。聚焦目的、正确性、用户体验及副作用,防止过度抽象和遗留兼容干扰,确保设计简洁且符合需求。

skills/review-implementation/SKILL.md golbin/agent-skills

Trigger Scenarios

验证实现正确性和副作用 审查用户或开发者接口 重新设计有缺陷的基础结构 移除推测性抽象或防御性代码

Install

npx skills add golbin/agent-skills --skill review-implementation -g -y
More Options

Use without installing

npx skills use golbin/agent-skills@review-implementation

指定 Agent (Claude Code)

npx skills add golbin/agent-skills --skill review-implementation -a claude-code -g -y

安装 repo 全部 skill

npx skills add golbin/agent-skills --all -g -y

预览 repo 内 skill

npx skills add golbin/agent-skills --list

SKILL.md

Frontmatter
{
    "name": "review-implementation",
    "description": "Review implementation against its purpose and user experience, fix root causes, and refine it through repeated simplification passes. Use when verifying correctness and side effects, reviewing user-facing or developer-facing interfaces, redesigning flawed foundations, managing legacy compatibility, removing speculative abstractions or defensive code, or applying fixes."
}

Review Implementation

Review from evidence. Protect the purpose first, then simplify repeatedly.

Philosophy

Follow the Unix and X11 philosophies:

  • Make each part do one thing well.
  • Prefer small, composable mechanisms; keep policy and side effects at explicit boundaries.
  • Treat every interface as a user experience, whether its user is a customer, developer, operator, or another system. Optimize for their outcome, predictability, and cost of use, not implementation convenience or feature count.
  • Choose the simplest coherent system that fully achieves the purpose, not the smallest diff. Effort or change size is not a reason to preserve a wrong foundation.
  • Fix root causes instead of adding compensating branches, wrappers, flags, or special cases around them.
  • Do not design for an imagined future. Add abstraction only when a present need or real duplication justifies it.
  • Defend real boundaries and failures, not every conceivable case. At trusted internal boundaries, prefer an immediate, visible failure to fallback, retry, catch-and-continue, or invalid state. At a user boundary, make the failure specific and actionable.
  • Preserve legacy behavior only when actual users, data, or public contracts justify it. Isolate compatibility at a boundary, provide a migration path, and make its removal explicit; do not distort the core design or maintain parallel paths indefinitely.
  • Treat easy deletion as the strongest test of good modularity. A feature or module should be removable with few unrelated changes.
  • Write code, comments, and documents plainly. State each idea once; remove ceremony, repetition, and decorative language.

Simplicity is not fewer lines at the expense of correctness. Keep everything required by the goal and nothing else.

Review Cycle

Work in this order. Do not collapse all concerns into one pass.

1. Purpose and correctness

  • Verify that the implementation achieves the intended goal and requirements.
  • Trace the relevant interface, callers, data flow, and user workflow before changing it. Judge the result from the user's path, not only the local code.
  • Find incorrect, missing, or conflicting behavior.
  • Trace material problems to their root cause. Decide whether a local fix is sound or the model, ownership, boundary, or flow must change.
  • Separate intended contracts from accidental legacy behavior. Treat prescribed designs as revisable when they conflict with the purpose or evidence.
  • Redesign freely within the authorized purpose. Surface material changes to product intent, public contracts, data, or rollout before acting.
  • Check relevant edge cases, integration boundaries, and potential security, data, performance, or operational problems.
  • Look for unintended behavior and side effects outside the changed scope.
  • Validate the user-observable outcome and important contracts with the smallest sufficient checks.

2. Refine in focused passes

Run several small passes:

  1. Repair the foundation: replace a flawed model, boundary, ownership split, or flow instead of patching around it, even when the coherent change is larger.
  2. Subtract scope: remove behavior, options, dependencies, temporary work, and future-facing paths not required by the purpose.
  3. Collapse structure: remove needless layers, indirection, state, abstractions, wrappers, and defensive branches. Prefer direct failure when recovery has no requirement or user value.
  4. Isolate legacy: keep justified compatibility in a removable adapter or migration, with one target model and a clear retirement condition.
  5. Clarify use: keep interfaces small, explicit, consistent, and hard to misuse. Use intention-revealing names and clear errors; make docs and tests useful as examples. Remove duplication, restatement, and ornamental prose.

After each pass, preserve intended behavior with proportionate checks. Then repeat the purpose review and refinement passes until a full pass finds no meaningful problem or simplification. Do not stop after the first acceptable result.

Act and Report

  • When asked only to review, report findings in severity order with concrete evidence and validation gaps.
  • When asked to improve or fix, implement the simplest coherent end state, not the smallest patch. Make the broader change when the root cause requires it; leave a workaround only when explicitly temporary, with a removal condition. Validate the final result and report remaining risk.
  • State clearly when no material issue is found.

Version History

  • b056718 Current 2026-08-19 21:30

    将重心转向用户体验和根本原因设计,简化PRD与实现审查流程,强调以最小充分检查验证结果并隔离兼容性边界。

  • f5c90aa 2026-07-24 21:01

Same Skill Collection

skills/prd/SKILL.md

Metadata

Files
0
Version
b056718
Hash
ec3f2c69
Indexed
2026-07-24 21:01

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 23:53
浙ICP备14020137号-1 $방문자$