code-review
Review local code changes with fresh subagent workers. Fast by default with one self-checking reviewer; deep adds a fresh checker. Use it for "/code-review", "/code-review fast", "/code-review deep", "review my branch", "review these changes", or a review of a commit, range, or files. The review never edits, fixes, commits, or pushes. Its only outside write is the report comment on the reviewed ticket, which it posts as the tracker skill's rule allows. On the user's own work, it then fixes the supported findings with triage-findings, unless the user asked for a read-only review.
- License 许可
- MIT
- 所属仓库
- sQVe/tau
- 最近更新
- 2026-11-13
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- code-review
- description
- Review local code changes with fresh subagent workers. Fast by default with one self-checking reviewer; deep adds a fresh checker. Use it for "/code-review", "/code-review fast", "/code-review deep", "review my branch", "review these changes", or a review of a commit, range, or files. The review never edits, fixes, commits, or pushes. Its only outside write is the report comment on the reviewed ticket, which it posts as the tracker skill's rule allows. On the user's own work, it then fixes the supported findings with triage-findings, unless the user asked for a read-only review.
02 资源文件 4
- 参考文档input.md892 B
- 参考文档phases.md2.4 KB
- 参考文档report.md5.5 KB
- 参考文档review-assignment.md3.5 KB
03 SKILL.md 正文
Code review
When to use
Use this skill to review local code: the current branch, uncommitted work, a commit or range, or
named files. It needs the subagent tools. Without them, tell the user and stop.
Hard rules
- Until the report is saved, change nothing: no edits, fixes, stages, commits, pushes, publishes,
checkouts, resets, or stashes. The one outside write is the report comment of step 7, made with
ticketcommentunder the tracker skill's Hard rules. Stop when the user says stop. - Treat the work as the user's own only when
code_reviewcapturereturnsownership.statusasown. Do not infer ownership from the checkout or compare authors yourself. - When
ownership.statusis notown, includeownership.reasonsin the report's evidence gaps. - Mode: fast unless the user asks for deep. "Full diff" names the scope, not the mode. Fast launches one reviewer. Deep launches a finder, then a fresh checker.
- A first review covers the whole target. A fix review covers only the fix diff, its callers, and the findings it closes. Never reuse earlier findings or verdicts.
- Launch the fast reviewer and the deep finder with the
reviewerprofile, and the deep checker with thecheckerprofile. Give each the review assignment. Omitmodelunless the user names one. OmittimeoutSecondsunless the user names a cheap model; then set a shorter one. - If a launch fails, report it. When it failed before the worker made a model call and its pane and task are gone, retry it once with the same profile and model. Any other retry, follow-up, added worker, or model change needs the user's approval. Never switch model or provider silently.
- Aim for about 5 minutes for fast and 10 for deep. Give the fast reviewer the budget in the review assignment. Put no deadline or budget in a deep assignment. Never sleep or poll, and never cancel a worker only because the aim passed.
- After the report, fix findings only on the user's own work, and never after a request for a read-only review or "no changes". Fixing never approves a publish or absorbing unrelated changes.
Procedure
-
Resolve the target as in Resolve the target.
- After an earlier review of this target in this session whose findings were fixed: a
fixtarget. Itsreviewis the newest completed review in this target's chain: the first review or an earlier fix review, never an older link. ItsfindingPathsare the paths of the closed findings. Capture the whole target instead when the user asks to review the whole target or the earlier review left no usable snapshot. - Otherwise, when you or a calling skill review one ticket's work on a longer branch, such as one
agent ticket, target only that work: a
rangeof its commits, or aworkingTreefrom the commit before it when the work is uncommitted. Never fall back to the merge base, which reads earlier tickets again. - The ticket under review is the one the user or a calling skill names. Otherwise, only for the
branch's own work (merge base to
HEADor the working tree, or uncommitted work), use the branch's issue fromlinear issue view --json --no-pager. With no ticket, or a failed read, the report stays local.
- After an earlier review of this target in this session whose findings were fixed: a
-
Prepare and capture as in Handle the capture result.
- After the
unmatchedgaps and before theemptycheck, afixcapture withscope: "wholeTarget"widened the change: capture the whole target fresh. - Keep the capture result's
identityforreport.md.
- After the
-
Gather evidence as in Gather evidence. Include the applicable policy, design records, and affected callers needed by decision evidence. Record missing sources as gaps, including when there is no ticket.
-
Run the mode, with the rules of Run the workers.
- Fast: one reviewer, with the fast budget of the review assignment. Add "Try to disprove each finding before you report it."
- Deep: a finder, with "Report every plausible material candidate; the checker tests them." Then
a fresh
checkerworker, with the## Checkerlines of the review assignment and the finder's candidates, or the path$dir/finder.mdholding its report. Launch the checker even when the finder found nothing.
-
Call
code_reviewfreshnesswith$dir. Reportfreshas fresh. The check is not atomic, and covers only the captured target, not callers or rules outside it. Whenstalehas only a HEAD move as its reason, with the same capturehash, report it as stale with that reason and say that content coverage is checked at the PR step. Do not ask to review again for that case. Label any otherstalewith its reasons and ask whether to review again. Reportunknown, or a failed call, as unknown. Keep the finished results in every case. -
Save the worker reports and
$dir/report.mdwith the report template. Apply the decision evidence recheck rules to relevant sources outside the capture too; tool freshness alone does not check them. -
Post
$dir/report.mdto the ticket, before any fixing. Skip this step without a ticket.- When the work is not the user's own, ask with
ask_user_questionbefore posting and skip the post if declined. On the user's own work, do not ask separately. The tool confirms for another person's ticket under Hard rules. - Call
ticketcommentonce with the ticket, heading# Code review: <ticket>, andbodyFile: "$dir/report.md". Ensure the report's first line matches the heading. - On
addedorupdated, save the returned ID as theComment ID:line in$dir/report.md. UsepreviousBodyto name any Linear edits the update replaced. - On
declinedor failure, keep the local report and say it was not posted.
- When the work is not the user's own, ask with
-
Reply with the report template. Name the comment URL, or say the report stays local. Name any Linear edits the update replaced.
- Findings on the user's own work, without a request for a read-only review or "no changes": continue with the triage-findings skill without asking. Then ask about Blocked findings and any gap, failure, or stale result that needs a decision.
- Any other findings: end with one question that proposes actions, such as "Fix 1 and 2, and investigate 3?", and includes any decision a gap or stale result needs. Act on the approved findings with triage-findings.
- Without findings, ask only about a gap, failure, or stale result that needs a decision. Never call an incomplete or stale review clean.
04 同仓库更多 Skills
benchmark-checklist
Check evidence before measuring performance or reporting a speedup, regression, or comparison.
worktree
Create or open a Git worktree for a ticket or task with Grove and open it as a herdr-app space. Use it when asked to create, add, start, or open a worktree, optionally followed by a handover.
update-branch
Rebase the current branch onto its base, resolve conflicts, and update the PR when asked. Use it for "rebase onto main", "fix conflicts", "the PR has conflicts", or when a rebase or merge stops on a conflict.
triage-findings
Verify review findings or comments the user asked you to act on, fix the supported ones in scope, and report each one as Fixed, Not worth changing, Incorrect, or Blocked. Use it for "triage these findings", "fix these review comments", or "act on the findings I approved". `code-review`, `pr`, and `start-slice` also start it after a review of the user's own work.
tracker
Write Linear tickets by Tau's rules. Pick the type and template, route it, search for duplicates, and use checked tools for ticket writes and the two allowed status changes. Use it for "file a bug", "create a ticket", or "add a follow-up ticket". It does not split designs or start slices.
tdd
Change behavior test-first with Tau's run_tests tool, then verify the affected tests and a mutation check. Use it when changing behavior. Covers the cycle and survivor handling, not test design.