AGENT SKILL

guildhall-director-stage

Use as the Director when a director-stage message hands you a stage to run, such as a grill, to read its brief, run it with the skills it lists and finish it with guildhall step finish.

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

01 前言 Front Matter

name
guildhall-director-stage
description
Use as the Director when a director-stage message hands you a stage to run, such as a grill, to read its brief, run it with the skills it lists and finish it with guildhall step finish.

03 SKILL.md 正文

Director stage

Some workflow steps are yours to run in your own session rather than an Artisan's, such as the default workflow's grill, a live interview of the Guildmaster. Guildhall records each as an attempt, prepares its brief and hands it to you with a director-stage message; the task waits with {"wait":"director-stage",...} until you finish it.

Steps

  1. Read the message with guildhall messages read <id>. It names the step, the attempt, the path of the stage's prompt under <step>-<n>/prompt, the output ports and the exact guildhall step finish command that ends the stage.
  2. Read the prompt. It is your brief: your role, the stage's guide, the skills the step lists and the stage's inputs, such as the task's title and earlier stages' documents.
  3. Run the stage as the brief and its skills say. A grill uses guildhall-grill to interview the Guildmaster, in rounds of numbered questions, and guildhall-domain-model to settle the words you agree on. While the task pages are served, each round goes on the page with guildhall grill round open --repo <repo> --task <task> --attempt <step-n> --questions-file -, where the Guildmaster answers it as one form and sends it; the grill-answered message that follows names guildhall grill round show, which prints their answers. In chat the round is an ask in your role's reply layout: its line in Needs you, <id> · grill round <k> · <attempt>, ending with the link to the attempt on its page, such as ticket:app/t-12#grill-1, and, in the reply where it opens, the same numbered questions with your recommendations in What I did's place, so the Guildmaster can answer in either place. When they answer the round in chat, record their answers with guildhall grill round answer --repo <repo> --task <task> --attempt <step-n> --answers-file -, so the page shows the round answered and the next round can open; it sends no grill-answered message, so carry on in the same turn. With no task pages served, put the round in chat in What I did's place, with no Routine box, and nothing to record. When the frontier is empty, ask the Guildmaster to confirm a closing summary of the decisions, never with a guildhall task say comment while the pages are served: put it on the page with guildhall grill summary open --repo <repo> --task <task> --attempt <step-n> --summary-file -, where they press Confirm or Request changes with their words. In chat it is only its Needs you line, <id> · grill summary · <attempt>, with the same link. Their answer is a grill-answered message naming guildhall grill summary show; on Request changes, carry the interview on with a round or a revised summary. With no task pages served, confirm the summary in chat and record their confirmation with guildhall task say --author guildmaster-chat under the attempt.
  4. Draft each output in a file under your session directory, such as notes/app-t-12-grill-1.md, never in a temporary directory, so the draft survives while you work.
  5. When the stage's own skills say it is done, such as a grill once the Guildmaster confirmed its summary, finish it with the command the message named, one --output per port and a one-line summary:
guildhall step finish --repo app --task t-12 --step grill --attempt 1 --summary "Agreed CSV export behind a flag, three columns, no import." --output notes=notes/app-t-12-grill-1.md
  1. Acknowledge the message with guildhall messages ack director <id>.

Once a grill has finished, when the Guildmaster or you want a design before build, run task design with guildhall-director-tasks.

guildhall step finish copies each file into the task's working directory, records the attempt's result and advances the task, printing what it waits for next. It is refused when the attempt is not the step's current one or is already finished, so a repeated finish never finishes the wrong attempt.

Abandoning a stage

When the stage cannot finish, such as when the Guildmaster wants to drop the task or the brief is wrong, finish it as failed with the reason as the summary:

guildhall step finish --repo app --task t-12 --step grill --attempt 1 --summary "The Guildmaster wants to rethink the export first." --failed

The task then waits for you, as after a failed Artisan attempt, and guildhall step retry with a reason hands you the stage's next attempt when it is time.

Rules

  • A grill is never finished until the Guildmaster confirms you share an understanding: with Confirm on its grill summary while the task pages are served, else in chat, recorded with task say --author guildmaster-chat; a handoff in the middle of one leaves it unfinished, and the next session restarts it.
  • Read the repository only for quick facts; anything more is an Artisan's research stage.
  • Write no result.json by hand: guildhall step finish is the only way a stage you run ends.

04 同仓库更多 Skills