fix-bug
Fix a reported defect at its root cause, test-first. Use it for "fix this bug", "this is broken", or "it regressed". It does not file tickets; the `tracker` skill does.
- License 许可
- MIT
- 所属仓库
- sQVe/tau
- 最近更新
- 2026-11-13
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- fix-bug
- metadata
- { "required-for": "fixing a defect, regression, or broken behavior" }
- description
- Fix a reported defect at its root cause, test-first. Use it for "fix this bug", "this is broken", or "it regressed". It does not file tickets; the `tracker` skill does.
03 SKILL.md 正文
Fix bug
When to use
Use this skill for a defect, a regression, or broken behavior. Use a bug ticket the user named.
Create one with the tracker skill only when the user asks. Do not file a ticket for every fix.
The procedure delegates to subagent workers, which need the subagent tools. Without them, carry
out each step yourself in the same order.
Hard rules
- Write the regression test before the fix. It must fail for the diagnosed reason.
- Fix the root cause, not the symptom. Make the smallest change that does it.
- After two fixes based on the same diagnosis fail the same reproduction, write the shared premise down and test an observation that would differ if it were false. Do not write a third fix on it first. If the cause is now uncertain, stop for the user.
- Revert every change made for a hypothesis that the evidence refuted, so only lines the diagnosis supports ship.
- Stop for the user only when the root cause is uncertain, no reliable reproduction exists, or the fix changes behavior beyond the bug. Otherwise continue.
Procedure
- Reproduce. Find one command that fails on the bug the same way every run. If none exists, name the closest check and stop for the user.
- Diagnose. Rank falsifiable hypotheses and test them in order. Name the root cause with file and
line evidence. The manager sends a
scoutto do steps 1 and 2. - Fix test-first. Send a
workerwith the reproduction command and the root cause in its brief. Its acceptance criteria include "the reproduction command now passes" and the regression test name. The worker adds a regression test that fails for the diagnosed reason, then makes the smallest fix at the root cause. After two failed fixes on the same diagnosis, the worker reports back instead of writing a third fix on that premise. The manager then tests the premise as the hard rules say. - Verify. Rerun the reproduction and the affected tests, with
run_testsfor Vitest and the project's runner otherwise. The PR step runs the full check. Report the root cause, the regression test, and the check results.
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.