start-slice
Start one slice of a planned design. Creates its branch and its agent tickets in Linear, then delegates the work. Picks the next slice from order, dependencies, and merge state, and reports the branch, base, and agent tickets it created. Use it for "start the next slice", "start ENG-123", or "begin this ticket as a slice". It does not split a design into slices.
- License 许可
- MIT
- 所属仓库
- sQVe/tau
- 最近更新
- 2026-11-13
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- start-slice
- metadata
- { "required-for": "starting a slice or creating agent tickets for a slice in Linear" }
- description
- Start one slice of a planned design. Creates its branch and its agent tickets in Linear, then delegates the work. Picks the next slice from order, dependencies, and merge state, and reports the branch, base, and agent tickets it created. Use it for "start the next slice", "start ENG-123", or "begin this ticket as a slice". It does not split a design into slices.
03 SKILL.md 正文
Start slice
When to use
Use this after /slice planned the design, or for a human ticket to run as a slice. One manager
terminal runs it in one worktree, with linear authenticated and gh. To split a design, use the
slice skill.
Hard rules
- Before step 9, write only the draft in
$slicedir.git fetchis allowed. Create or switch no branch, and write nothing to Linear. - Route and write tickets with the tracker skill. Only
start_slicewrites agent tickets, in step 9, under the tracker's approval rule. The only status change is the slice to In Progress. - Before the draft, check the prompt names the repository route and agent team, as the tracker skill describes. If not, stop with its setup message.
- Never change a merged slice.
- On a partial failure, stop and report what completed. Read the draft and children before a retry.
- Call the
slicetool'sprepareaction with the lower-case identifier, such asme-537, before the first file. Save files only in the returned$slicedir, never in/tmpor a shared path. - You may add an agent ticket inside the slice's outcome: write its body file and
start.jsonentry, judge it as step 7 says, create it as step 9 says, and report its identifier, URL, and reason. - Work beyond the outcome is a new slice. Re-plan it with the slice skill.
Procedure
-
Pick the ticket the user names, or else the one the conversation names. Ask with
ask_user_questionwhen none or several fit. Callstart_slicereadwith that identifier aspickand the prompt's agent team asagentTeam. Use itspickresult for steps 2 and 4. Namechosenin step 10 and say itsreasonin one line. -
Check readiness from the result before any write, even for a named slice.
- Ask the user when the named slice has status
completedWithoutMergedPr, or a container child beforechosenhas that status. When no slice is chosen, check all children for that status. - When the user approves such a slice, it is the slice. Stop if a blocker's state is
other. Take the PR URLs of itsopenblockers asopenBlockerPullRequests. With none, the base isorigin/<defaultBranch>. - Otherwise, if
chosenis null, stop and report the slice statuses and blockers. - No
openBlockerPullRequestsmeans unstacked. Otherwise call thestacktool'schainwith those URLs aspullRequests, and a URL fromchosen.pullRequestsasslicePullRequestwhen it has one. Onstop, stop and reportreason. Otherwise the returnedparentis the step 4 parent. - When
branchAboveis true, ask withask_user_question: wait until the parent merges (recommended), or stack ontopBranch, which adds dependencies above the parent. Waiting makes the slice not ready. Stacking makestopBranchthe parent. - When another worktree has the parent branch checked out, stop and offer the handover skill.
- Ask the user when the named slice has status
-
Read the slice with
linear issue view <slice> --json --no-pager: itsbranchName, team, and## Acceptance. If$slicedir/start.jsonexists, read it and its body files. Read the children:linear api 'query($id: String!) { issue(id: $id) { children { nodes { identifier title description team { key } project { name } } } } }' --variable id=<slice>.- When a ticket with a recorded identifier lacks its body file, save its description as one.
- When a body file differs from the description, either may be newer. Show the difference and ask
with
ask_user_questionwhich to keep. A kept body goes to Linear in step 9. Keeping Linear's text means saving the description as the body file.
-
Choose the base from the
start_slicereadresult, which fetched every branch of origin and returneddefaultBranch. Without a parent, useorigin/<defaultBranch>. With a parent, useorigin/<parent>as the base and thetrunkfromchain. -
Read the tree the workers use: the branch when
git rev-parse --verify --quiet refs/heads/<branchName>finds it, else the base. Usegit ls-tree -r --name-only <tree>andgit show <tree>:<path>without switching. Follow the decision evidence planning guidance, reading the repository instructions and decision records from this tree. Answer the structure criteria plan questions for the slice's files: where each change goes, which helper it reuses, and which files would pass 500 lines. Without structure rules, also answer the module questions: which module owns the concept, what deletes branches or layers, and what gets more tangled. -
Write the draft in
$slicedir:agent-<n>.mdper agent ticket in work order, from the tracker skill template, one worker task each, with the step 5 answers in## Files. Give each ticket the record links and rules it needs in## Constraints. Writestart.jsonas thestart_slicetool describes, with the tickets in work order. Take label IDs from the agent team's label list, as the tracker skill says, or use[]. Keep existing identifiers; new ones staynull. The tickets together cover every acceptance criterion. Give each journey item to one agent ticket that writes the journey file, the test, and the QA guide's index row together. An item marked "by hand" needs no test file. The journey file and test hold only built steps, following the QA-guide template. -
Map each slice criterion, record update, and mechanical-check change to its tickets. Check that each journey item maps to one ticket with its journey file, test or "by hand", and index row. Change the draft until none is uncovered. Each
## Acceptanceitem must name a test, a command, or a manual observation, with its expected result. Rewrite an item when the slice or step 5 says what to check. Before step 9, list each item with no check and its body file, and tell the user the worker gets a vague task. Say nothing when all pass; the list never stops a launch. -
For each new ticket (
identifierisnull), launch one fresh default-modelscoutin one turn. Brief it with the body file path, the step 5 tree, and the plan questions. It reads the body file withreadand the named files withgit show <tree>:<path>. It searches withgit grep <pattern> <tree>andgit ls-tree -r --name-only <tree>for unnamed helpers. It lists its questions and plan answers, or says none.- Revise the body file to answer each question, or proceed when the ticket or code answers it. A scout never blocks the start.
- Revise
## Filesfor each plan answer that changes structure. - After any revision, check the draft again as step 7 says.
- A ticket with no questions and no plan answer to record goes to step 9 unchanged. A scout that fails to launch or stops without a report does not stop the start; step 10 names it.
-
Start in this order.
git status --porcelainmust print nothing, and no worker may run. Check workers with thehc ls --jsoncheck from the stack skill. Stop and report either failure.- Stacked: create the branch on the parent with step 2 of the stack skill, passing the step 4 trunk. If it stops, report what it found and stop.
- Otherwise run
git switch --no-track -c <branchName> <base>, orgit switch <branchName>whengit rev-parse --verify --quiet refs/heads/<branchName>finds it. - Call
start_slicereadwithdirectoryset to$slicedirandagentTeamset to the team on theTracker agent team:line. Non-emptyproblems: report each and stop. Otherwise callapplywithstateTokento move the slice to In Progress and write its agent tickets. On an error, stop and report the completed steps. Onstatus: declined, stop and report that nothing was written and which tickets were unchanged.
-
Report in about 30 lines, with no raw commands: the slice and why; the branch, base, and whether it existed; for a stack, the parent slice and PR, trunk, PR target, and any added dependency; each agent ticket's
applystatus (new,updated, orunchanged), identifier, URL, title, and one## Outcomeline; each scout's questions, whether you revised or proceeded, and each failed scout; each slice criterion with its ticket numbers. -
Run the slice in this order.
- Delegate each agent ticket to a worker with its body file path, such as
$slicedir/agent-1.md. Copy its## Acceptanceitems word for word, in order, intoacceptance. Tell each worker that the slice manager runs the mutation check. - Do not review a finished agent ticket. When a later ticket in the slice builds on a contract it changes, such as a type, tool schema, or file format, run one fast review of it before the dependent ticket starts.
- After the last worker, run
mutation_checkonce withmode: "changed"andbaseset togit merge-base <base> HEAD, where<base>is the step 4 base. Skip it, and say so, when the repository has nomutation.argv. Report a tool error and go on to prune-comments. - Survivors are advice. Send at most three survivor behaviors to one worker in one round, with
step 5 of the tdd skill as its rule. That worker then reruns the affected tests and
mutation_checkonce with the samebase. List the survivors left open, with file and line, as reviewer notes for the PR. - After the mutation check and its survivor round, run the
prune-comments skill on the branch diff from
git merge-base <base> HEAD. It commits its own removals. Note a failed run for the PR and go on. - After the mutation check, decide on code-quality without asking. Measure
git merge-base <base> HEADto the working tree, counting untracked new files as added lines. - Skip when the diff touches only docs, config, or tests; when the source lines changed, added and deleted, total fewer than 100; or when the change is mechanical, such as a rename. Tell the user "skipped: <reason>". Run it later when the user asks.
- Otherwise run the code-quality skill on the slice branch, with the slice as the ticket under review. A stacked slice uses the merge-base diff. Tell the user "ran code-quality" before code-review starts.
- Treat the branch as the user's own only when
code_reviewcapturereturnsownership.statusasown, following the code-review ownership rule. - On the user's own branch, reused branches included, code-quality triage and the review fixes proceed without asking.
- Run a first review with the code-review skill on the whole slice, not only the code-quality fixes, with the slice as the ticket under review. Run it once.
- Apply the manager guideline on a first review's findings to the whole-slice review.
- When the slice or an agent ticket has a user-visible acceptance item or a journey item, send
the committed tree to
qaby the QA launch procedure before the audit. Save the report in$slicedirwith the commit it tested, for the audit to cite. - A QA failure makes the item not met; the audit's existing fix-ticket loop handles it.
- Audit with the finish-slice skill. Delegate each fix ticket it
creates, as the first bullet says, except that its worker runs the mutation check with
baseset to thegit rev-parse HEADfrom before the ticket starts. Before auditing once more, apply the QA launch procedure's reuse condition. Items still unmet go to the pr skill as required actions. - Open the PR with the pr skill, and link the slice as the tracker skill says.
- Delegate each agent ticket to a worker with its body file path, such as
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.