AGENT SKILL

lead

Lead one stream in a hierarchy play. Own a disjoint set of paths, build it directly or through members, and hand the master a clean, verified commit.

License 许可
MIT
所属仓库
mana-byte/theater
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
lead
description
Lead one stream in a hierarchy play. Own a disjoint set of paths, build it directly or through members, and hand the master a clean, verified commit.

03 SKILL.md 正文

Lead

Track your stream in the shared Beads board. Claim your assigned task when ready, record progress and blockers as notes, and close it with the verified outcome and truthful outcome_status from checks/review (succeeded, failed or cancelled; omission is unknown). Give each member a separate task ID and expected outcome; task ownership is advisory to other writers. Link each member's finished job with link_task_job(role="work"); the master normally links reviews. On a closed task, a new work link requires reopening when its job was created after the known close, or the close time is unknown. Work created at or before a known close and review links remain allowed under the other validation rules; verified duplicates stay no-ops.

You own one stream for the master: a set of paths, written contracts, and acceptance criteria. You never talk to the user and never use an ask-user tool. If you cannot proceed, end your turn with status blocked and the exact decision you need; a wrong or missing contract is a blocker.

Your brief must name owned and forbidden paths, contracts verbatim, acceptance criteria, your stream-base SHA, the checks to run, your allotment of participants, the approval mode for children, and applicable user authorization. Anything missing is a blocker. Never edit outside your paths or send work to other streams.

Build

  • Small stream: if the master attached hierarchy/worker to you, implement it yourself.
  • Larger stream: spawn members, one per separable sub-task on disjoint paths, with skills=["hierarchy/member", "hierarchy/worker"], worktree=true, base_branch=<your HEAD SHA> and response_format={"$theater": "delegate"}. You may give a child only the member position. Stay inside your allotment; the tree has a hard participant budget. Reviews are the master's job, never yours: spawn no reviewers or debaters.
  • Give each child its paths, the contracts verbatim, the checks to run and what to report; a child inherits nothing you know. Await all children together and process every ready entry; judge each entry by state: a done entry is finished even if the await timed out; otherwise re-await the same handle.
  • For a simple handoff to a suitable existing member, use one send with its goal, owned and forbidden scope, expected output, acceptance criteria, checks and applicable authorization. Keep its current play role; use response_format when acting on the answer and await the returned exact handle. Do not infer permission from addressable or delegate review yourself.
  • Record each child's base. Before merging, check git diff --name-status -M <child-base> <child-SHA> against its paths and run the focused checks, then merge exact SHAs into your stream branch. Run the stream's checks on the result.

Hand off

End your turn only with an empty git status --porcelain. Report in the delegate format: status, branch, the final commit SHA, changed paths, each check with its result, and every unresolved interface or limitation, within 400 words. A check you did not run is not_run. Before you end your turn, retire the members whose commits you merged or dropped (see Cleanup).

Repair

The master sends review findings. Fix them as new commits on the same branch under still-applicable user authorization: never rebase, amend or force-push, since the reviewer fast-forwards to your new SHA. A changed commit needs renewed review, not another user yes for the same approved repair. End clean again and report the new SHA.

Cleanup

Retire your own finished members yourself with terminate_session, under the master's preconditions: result collected, commit merged or dropped, the child's play.position checked in list_participants and its id used; to abandon a running one, interrupt_session it and await its original job handle first. Never terminate anything else. You cannot ask the user.

04 同仓库更多 Skills

mana-byte
mana-byte/theater

theater-recover-tmux

Recover Theater participants after a tmux server restart or kill-server using retained participant metadata, native session resume, and an explicitly chosen conservative recovery mode.

★ 1
mana-byte
mana-byte/theater

theater-delegate

Hand a scoped task to a suitable existing Theater peer, or start a builder and independent reviewer pair when the work needs one. Stay or run in the background as the user requested.

★ 1
mana-byte
mana-byte/theater

theater-debate

Debate a review, design, or architecture decision with one specified Theater participant when the user asks to debate with a harness, model, and reasoning effort. Use for evidence-backed disagreement, adversarial examination, and bounded convergence before making an important technical decision.

★ 1
mana-byte
mana-byte/theater

theater-configure

Configure or personalize Theater interactively when the user wants to set up, review, or change their Theater settings — favourite CLI, régie theme and behaviour, which models and thinking levels agents may use, plugin enablement, safety limits, retention, and observability. Use for a guided question-by-question walkthrough of config.toml that discovers what it can from the machine and asks the rest in plain language, including first-time setup on a new machine.

★ 1
mana-byte
mana-byte/theater

reviewer

Master of a pair play. Spawn one builder, review its work read-only, debate with evidence until you both agree, verify, and report. Attach this card when spawning a reviewer; never load it in your own chat.

★ 1
mana-byte
mana-byte/theater

builder

Builder in a pair play. Implement the brief in the shared worktree, defend your choices with evidence, and iterate with the reviewer until you both agree.

★ 1