Skills and agents

The village builder's own skills and sub-agents, from .claude/: what each does, how it is started, and what its parameters mean. Read from the files themselves; each file holds the full instructions.

The game · Roadmap · Token use · Backlog

Skills

Started by a prompt that begins /NAME, followed by its arguments. /chain · /night · /task

/chain The coordinator of a chain

Coordinate a chain of unattended one-task sessions on the village builder's backlog, N ready tasks of one size (S, M or L) one after another: start each as a /task session, merge its PR, start the next. Runs on the model its session was started on; tools/chain.js decides. Use when a prompt starts with /chain or asks to run the chain skill.

/chain SIZE [N]
SIZE
S, M or L. Required.
N
the number of tasks; default 8.

.claude/skills/chain/SKILL.md

/night The night, a PR a task

Run the village builder's nightly worker in this session: ready backlog tasks implemented by vb-task sub-agents side by side, each reviewed, then merged into main through a PR of its own, and a closing PR with the night's measurement and "For Kim". Use only when a prompt starts with /night.

/night [N] [--size S|M|L] [--parallel P] [--no-bench] [--night DATE --part K]
N
the most tasks to start tonight; default no limit (until none is ready, as the worker's section 1).
--size S|M|L
take only that size (backlog.js next ... --size).
--parallel P
sub-agents at once, default 3, at most 4.
--no-bench
skip npm run nightly at the wrap-up (the worker's section 3, step 1).
--night DATE --part K
you continue a night another session began (the handover below); default today and 1.

.claude/skills/night/SKILL.md

/task One task, a leaf of a chain

One backlog task of the village builder, end to end in this session (built, reviewed, closed, measured, its PR opened), then reported to the chain's coordinator, who merges it. Started by /chain's coordinator, or by hand. Use when a prompt starts with /task or asks to run the task skill.

/task VB-NNN [--report-to SESSION --chain T --link K]
VB-NNN
the task, chosen by the coordinator, which chose your model for it. Required.
--report-to SESSION
the coordinator; --chain T --link K: your place in its chain. Without --report-to you work alone: you merge your own PR at step 5 and report nothing.

.claude/skills/task/SKILL.md

Agents

Sub-agents a session starts through the Agent tool, with the agent's name as subagent_type and the parameters in its prompt. vb-review · vb-task

vb-review One review

Reviews one task's change of the village builder (VB-NNN) with a fresh context, before it is merged, and reports where it is wrong against the game's vision and principles, its task and its design, graded blocking, advisory or preference. Give it only "Review VB-NNN; base <sha>; head <sha>", nothing of the implementer's.

Agent: subagent_type "vb-review", prompt "Review VB-NNN; base SHA; head SHA[; inbox]"
Review VB-NNN
the task whose change is reviewed. Required.
base SHA
where the change starts, git merge-base of its branch and the branch it merges into. Required.
head SHA
the commit reviewed. Required.
inbox
at the end, only in an orchestrated run (/night): check out the head detached and report through the inbox (step 0).

Tools: Bash, Read, Grep, Glob · .claude/agents/vb-review.md

vb-task One task

Implements one ready backlog task of the village builder (VB-NNN) in its own worktree, beside other sub-agents, from reading it to the commit, and returns a short result. Give it the task ID, the run's branch and its reserved task IDs; the caller chooses the model by the task's size.

Agent: subagent_type "vb-task", prompt "Task VB-NNN; the run's branch is BRANCH; your reserved task IDs are IDS"
Task VB-NNN
the backlog task to implement. Required.
the run's branch is BRANCH
the branch to merge before starting and again before finishing (step 1 and step 7): the night's branch, or night-base under /night.
your reserved task IDs are IDS
the backlog IDs it may give the follow-up tasks it notes (step 5), reserved by inbox.js start.
continued from BRANCH at COMMIT and the handover: node tools/inbox.js handover VB-NNN
only for a task another sub-agent handed over (step 8; docs/agents/handover.md).
Revise VB-NNN
a later message, not a prompt: the one revision after a review (step 9).

Tools: Bash, Read, Edit, Write, Grep, Glob · .claude/agents/vb-task.md