AGENT SKILL

review

Reviews a diff for correctness, suckless limits, limit-gaming tricks and Unix design: dispatches the reviewer subagent, then confirms each finding against the code and drops unconfirmed ones. Use when the user asks for a code review or before merging.

License 许可
Apache-2.0
最近更新
2026-10-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
review
description
Reviews a diff for correctness, suckless limits, limit-gaming tricks and Unix design: dispatches the reviewer subagent, then confirms each finding against the code and drops unconfirmed ones. Use when the user asks for a code review or before merging.
argument-hint
[git range]

03 SKILL.md 正文

Review

Range

  1. $ARGUMENTS if given (e.g. main..HEAD).
  2. Else git diff HEAD, if it is non-empty (uncommitted work).
  3. Else HEAD~1..HEAD.

State the chosen range and git diff --stat for it in one line each.

Dispatch

Dispatch the deadlion:reviewer subagent with the range and, if a feature is active, the paths of its arch.md and plan.md. It returns lines BLOCKING|IMPORTANT|NIT path:line — finding — evidence and VERDICT: approve|changes.

When the range touches more than one projects/<name>/, dispatch one reviewer per project, plus one for contracts/ if it changed, in parallel (≤3 at a time), each scoped to its paths. Merge their lines before the Confirm step.

Confirm

For every BLOCKING and IMPORTANT finding, read the cited lines yourself (Read with a range around path:line). Keep a finding only if the code actually shows the problem. Drop findings that cite wrong lines, misread the code, or describe style the project does not use. Downgrade a finding whose severity is overstated. NITs are passed through unchecked.

Severity:

  • BLOCKING — wrong behaviour, data loss, security hole, dl-size or dl-budget violation, limit-gaming trick, broken interface or contract.
  • IMPORTANT — missing test for changed behaviour, unclear error path, design drift from arch.md.
  • NIT — naming, comments, minor simplification.

Output

Print only the confirmed findings, one per line, in this format, then the verdict:

BLOCKING src/sync.py:88 — dedupe drops records with equal keys but different payloads — `seen` keyed on id only
NIT src/cli.py:12 — unused import os — no references
VERDICT: changes

VERDICT: approve when no BLOCKING finding remains; perfection is not required. Then add one line: how many findings were dropped as unconfirmed.

Write .dev-docs/features/<slug>/review.md (format in ${CLAUDE_SKILL_DIR}/../workflow/references/artifacts.md) only when a feature slug is active; otherwise print only.

04 同仓库更多 Skills

VolkovIlia
VolkovIlia/deadlion-studio

write-plan

Turns approved product/design/architecture artifacts or a clear request into plan.md: small ordered tasks, each with exact files, a test written first and a verification command. Use before implementing anything larger than a one-file change.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

workflow

Runs the deadlion pipeline (product → design → decompose → architecture → plan → build → review → verify) through plain-text artifacts in .dev-docs/. Use when the user starts a new product, system, feature or multi-step change, or asks what to do next.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

verify

Evidence before claims: before saying work is done, fixed or passing, run the proving command fresh, read its output and the git diff, and report VERIFIED and NOT VERIFIED items separately. Use before declaring any task complete and after any subagent reports success.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

ux-design

Designs the user interface of a program at the lowest rung that serves the job — CLI, filter (dmenu/fzf style), terminal UI, native GUI or web — with flows, states, a key map, design tokens kept in config.def and numeric gates per rung, so every UI works alone and embeds; avoids generic AI-looking UI. Includes the dl-contrast checker. Writes design.md. Use when building or changing any user interface, screen, TUI, GUI, component or visual style.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

unix-design

Designs the internals of one program or sub-project as small single-purpose modules with plain-text interfaces, separated mechanism and policy, and one build/run command each, following the Unix philosophy. Writes arch.md. Use when designing a new feature's architecture inside a program, a CLI, module or data flow; for splitting a system into several programs use decompose.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

ui-verify

Verifies a running UI against the gates in design.md — web pages in a real browser via the Playwright MCP (screenshots at 375/768/1280 px, console errors, axe scan, touch targets), terminal programs through dl-tui in a headless tmux (screens at 80×24, 40×12 and 20×5, NO_COLOR, key scripts per state, terminal restore, stdout purity), and token contrast with dl-contrast. Use after implementing or changing any UI, or when the user asks to check how a screen looks or works.

★ 0