agentleFS
yugasunyugasun/aiops/skills/review/SKILL.md

review

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Review in three modes — code (diff vs standards/spec), design (NOTES + tech-spec before planning), drift (implementation vs tech-spec before ship). Pick mode from Flow Conductor phase or user intent; do not mix artifact types.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When unsure: Flow Conductor phase name wins.

    line 21
  2. Very specific:

    Run /aiops-setup if docs/agents/issue-tracker.md is missing.

    line 33
  3. Distinctive:

    Read NOTES.md decisions — each must list at least one rejected alternative.

    line 95
  4. Distinctive:

    Read tech-spec.md module inventory — apply deletion test and depth assessment per design-vocabulary.md.

    line 96
  5. Very specific:

    If CONSTITUTION.md exists, check design against non-negotiable principles.

    line 98
  6. Distinctive:

    Do not review implementation details (that is code mode).

    line 101
  7. Distinctive:

    After delivery, before ship: does the implementation match the approved design?

    line 144

“Common” is measured: kept by at least 6 in 10 of the 153 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review

Three modes. Each mode has its own inputs, axes, and output artifact. Do not mix modes in one file.

Mode selection

ModeTriggerAgentOutput
codedelivery sub-phase, user asks to review diff/PRcode-reviewer.scratch/<slug>/REVIEW.md
designdesign_review phase, user asks to review designdesign-reviewer.scratch/<slug>/DESIGN_REVIEW.md
driftdrift_check phase (after delivery, before ship)design-reviewer.scratch/<slug>/DRIFT_REPORT.md

When unsure: Flow Conductor phase name wins. Direct invocation defaults to code unless the user names design or drift.


Code mode

Review git diff <fixed-point>...HEAD:

  • Standards — matches repo coding standards?
  • Spec — matches originating issue/PRD?
  • Constitution (optional) — when CONSTITUTION.md exists at repo root, violates any non-negotiable principle?

Run /aiops-setup if docs/agents/issue-tracker.md is missing.

Process

  1. Pin fixed point — commit, branch, tag, or main. Confirm ref resolves and diff is non-empty.
  2. Find spec — issue refs in commits (docs/agents/issue-tracker.md), user path, or docs//.scratch/ PRD. No spec → Spec axis skips.
  3. Find standards — CODING_STANDARDS.md, CONTRIBUTING.md, etc.
  4. Find constitution — CONSTITUTION.md at repo root. Missing → Constitution axis skips.
  5. Parallel sub-agents — one per active axis. Each under 400 words, cite sources.
  6. Aggregate — one section per axis verbatim. One-line summary per axis; don't merge axes.

A change can pass one axis and fail another — keep axes separate.

Output: REVIEW.md

# Code Review: <feature-slug>

## Summary
<overall assessment>

## Design Alignment
- [ ] 实现符合 NOTES.md 设计决策
- [ ] 接口符合 tech-spec.md 规格
- [ ] 无超出 scope 的变更

## Findings

### Blocking (必须修复)
#### B1: <file:line> — <title>
- **问题**: …
- **建议**: …

### Non-blocking (建议改进)
#### N1: <file:line> — <title>
- **问题**: …
- **建议**: …

## Verdict
**APPROVE** | **REQUEST_CHANGES**

Gate: review_approve requires REVIEW.md contains APPROVE.


Design mode

Review design artifacts before planning or implementation. No code diff — review NOTES.md + tech-spec.md only.

Vocabulary for depth/seam/deletion-test checks: design-vocabulary.md.

Inputs

  • .scratch/<slug>/NOTES.md
  • .scratch/<slug>/tech-spec.md
  • CONTEXT.md (project root or per-area)
  • docs/adr/
  • .scratch/<slug>/mockups/ (if UI mockups exist)

Process

  1. Read NOTES.md decisions — each must list at least one rejected alternative.
  2. Read tech-spec.md module inventory — apply deletion test and depth assessment per design-vocabulary.md.
  3. Cross-check CONTEXT.md vocabulary and existing ADRs — flag conflicts unless explicitly justified.
  4. If CONSTITUTION.md exists, check design against non-negotiable principles.
  5. Independent second perspective — do not rubber-stamp architect reasoning.

Do not review implementation details (that is code mode).

Output: DESIGN_REVIEW.md

# Design Review: <feature-slug>

## Summary
<one paragraph>

## Design Soundness
- [ ] 每个设计决策列出了至少一个被否决的替代方案及原因
- [ ] 模块通过 deletion test(非 pass-through)
- [ ] 接口设计遵循 depth 原则:小接口 + 深实现
- [ ] 依赖分类正确,seam 位置合理(≥2 adapters 才有真实 seam)
- [ ] 接口定义与 CONTEXT.md 领域模型一致
- [ ] 无与现有 ADR 的冲突(或冲突已记录并有充分理由)
- [ ] Open Questions 全部解决或明确标记为非阻塞
- [ ] 无过早优化或过度设计
- [ ] Scope 边界清晰,out-of-scope 明确排除

## Findings

### Blocking (必须修正才能进入规划)
#### D1: <title>
- **问题**: …
- **建议**: …
- **关联**: NOTES.md Decision X / tech-spec.md §Y

### Non-blocking (建议改进)
#### N1: <title>
- **建议**: …

## Verdict
**APPROVE** | **REQUEST_CHANGES**

Gate: design_review_approve requires DESIGN_REVIEW.md contains APPROVE. Blocking findings block planner until resolved.


Drift mode

After delivery, before ship: does the implementation match the approved design?

Inputs

  • .scratch/<slug>/tech-spec.md
  • .scratch/<slug>/NOTES.md (scope and decisions)
  • git diff since journey start or user-specified fixed point

Process

  1. Pin diff fixed point (same as code mode).
  2. For each tech-spec requirement: implemented? partially? missing?
  3. For each behaviour in the diff: in spec? out of scope?
  4. Flag scope creep and spec gaps separately.

Output: DRIFT_REPORT.md

# Drift Report: <feature-slug>

## Summary
<overall drift assessment>

## Spec coverage
| Requirement (tech-spec) | Status | Evidence |
| --- | --- | --- |
| … | implemented / partial / missing | file:line or "not found" |

## Undocumented behaviour
| Change in diff | In spec? | Notes |
| --- | --- | --- |
| … | yes / no / partial | … |

## Findings

### Blocking (must fix or update spec before ship)
#### F1: …

### Non-blocking
#### N1: …

## Verdict
**PASS** | **DRIFT_FOUND**

Gate: drift_check_pass requires DRIFT_REPORT.md exists. Use PASS in verdict when no blocking drift.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.