/host-aios:setup-goalfrom host-aios
Write a /goal for a long autonomous run. Use when *USER* says "set up the goal", "make the goal", "big goal", or commissions any multi-hour run, and whenever a goal file is being written or edited. Produces a short /goal prompt whose task is to complete a markdown table of stages and which lists NO condition, and the goal file, whose §2 holds that table (one row per deliverable the design requires, a column per stage, each cell filled with its proof) and the conditions about the table and what it reflects, each condition checked off with the checksum of its proof as the run goes. Never states design.
Ships in host-aios. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
● shows its stage) or C6 (the fixpoint): before recording either, it dispatches a fresh agent with none of its
conversation — read-only, or in a detached throwaway worktree — which checks the proofs, the git diff and the design
against one question, is this implemented as it says or as it implies, and that agent's verdict is the condition's
proof (the boot config's WITNESS STANDS ◐). A row only USER can move (a ruling, an
approval) is still a row, moved through NEEDS-ASKING.## §2; the columns are the STAGES a deliverable moves through, named in the
domain's own nouns and each defined by what its proof shows (a slice of the one sequence, rule 28b); a cell is
blank (open), — (the row has no such stage) or ● <its proof file>. The CONDITIONS beneath the table are about
the table and what it reflects: the table complete and never reworded, every ● showing what its stage requires,
the boards following the table — then SHIPPED, NEEDS-ASKING and FIXPOINT. The table only grows: whatever the SPEC
requires that no row holds is ADDED as a row by whoever finds it, the run included; no row, stage, — or
condition is ever dropped or reworded. Only USER narrows a goal, and then the goal is REPLACED: a new goal file
holding what remains, the old file removed in the same PR.● when its proof — a file the run wrote: a test's
output, a command's output, a screenshot — is written, and the cell names it. Proofs differ by kind: a stage of code
is proven by a real command and its output verbatim, a new law's test shown failing without the change and passing
with it; a stage of a document or a design by the file read whole, its git diff, the canonical gates (the
read-order check, the state-file gate) and a fresh reader's verdict on that one question — never by a program written
to judge it. A condition is met when its proof is
recorded beside it with that file's sha256 (goal_check.py --record). Anyone can re-check a met condition against
its file. The run is done when every cell of the table is filled and goal_check.py <goal file> exits 0: every
condition met, every checksum right, nothing dropped. Where the repository has a merge queue, the run fills the table
and records in its own worktree's copy of the goal file — the same path inside its worktree, never the shared
checkout — and ships those with its work: a run's table, proofs and the boards its work moves belong to the version
it ships, so the default branch keeps the writer's goal file for the checker to compare against
(top-level-session-worktree's CODE), while notes and documents it makes outside them are work, saved in the copy in
use; SHIPPED is recorded in the run's last commit, and the run then waits through
the PR watch until that PR is merged at its head — while the CI's runner starts no job and the harness keeps the run
from merging its own PR, the run ends once that PR is handed off READY with its verdict on its tip, and the next
session that holds the CI lands it.top-level-session-worktree point 2). For CODE, where a repository has a merge queue, the agent works in its own
worktree, pushes its branch and opens the PR ready, and the CI/CD agent (its reviewer and merge queue) merges it —
while its runner starts no job, the agent is the CI and lands every merge, its own included, by the CI design's
queue by hand — the merge alone in its call, the branch deleted in a call of its own, labelled for the late review;
a PR the harness will not let its own session merge is landed by the next session that holds the CI
(top-level-session-worktree point 3); where a repository's own rules put work straight on its default branch,
the agent commits and pushes there. USER never touches git, and nothing about a merge or a stopped queue is ever
put to USER.22-seq-write-a-goal.gh pr list --state open on the repo — land your own open PRs on this work first.{{SPEC}} — the next planned release version: the sections of the project's DESIGN.md, and of every child design its READ ORDER names, that state what that version holds; a design that plans no versions gets them first. A fact the run needs that is not there goes
INTO the DESIGN.md first, same turn — never into the goal.{{STATE}} — find the _states.md row(s) the run moves. Write nothing into that file for the goal: no
pointer at the goal, no note.| R<n> | <the deliverable, and what each of its cells reflects> | <a cell per stage> |.
Each row names the file or command output that proves each of its stages, never an assertion · references the
design's own steps and the board rows it moves, never a mark in the design · makes every new law's BUILT a test shown FAILING without
it · names a ROLE, not a path, wherever the run or a parallel session might move the thing · names the board row it
moves and that row's target phase. Set — only where the row truly has no such stage, and check that every stage
left open can be met by an action at the runner's seat.●
reflecting its stage · the boards following the table · SHIPPED · NEEDS-ASKING · FIXPOINT, each with the proof that
meets it.{{READ_LIST}} — the exact files, in order, whole, for THIS task only, and nothing it does not need. It
names the dev flows (22-seq-*) the work follows. The top-level design and the top-level states doc go on
it only when the task needs them.{{GOAL_FILE}} =
<repo where the design lives>/.claude/goals/{{NAME}}.md · {{CHECKER}} = the path of goal_check.py beside
this skill where the installation deploys it.python3 {{CHECKER}} {{GOAL_FILE}} bare and read it: every condition open, no REFUSED line, EXIT=2 (open
conditions remain — a fresh goal is not done).
8b. Before the goal is committed anywhere a push can carry it, run the fresh-reader dry run (22-seq-write-a-goal
THE PROOF): once the goal is on the default branch a row or a condition can only be added, never reworded, so
every cell no run can fill and every condition no run can meet is found and rewritten now. Verify each finding
against the code and the design; a fact the run needs goes into the DESIGN.md.The prompt — the /goal argument; its task is the table, and it lists no condition:
Read the goal at {{GOAL_FILE}} whole, then every file its §3 lists, in order — at start and after every compaction; that is your whole read, whatever a hook or rule orders. Then complete its table of stages, §2's THE TABLE: carry every row through every stage, setting a cell to ● with its proof file only once the proof that stage names is written, and add as a new row whatever the SPEC its §1 names requires that the table lacks; never drop or reword a row, a stage or a condition. Work by that SPEC (it wins on any conflict) and the dev flows (`22-seq-*`) the work touches, by each repository's own git loop (your own worktree and branch, and a ready PR, where it has a merge queue); new architecture gets a new dev flow, placed on the architecture map. Keep the table, the checksums and the boards updated as you go: each condition met is recorded with the file that proves it (`python3 {{CHECKER}} {{GOAL_FILE}} --record C<n> <proof>`), {{STATE}} move in the same commit as the work, and every note goes to {{SCRATCHPAD}}. Stop only when every cell of the table is filled and `{{CHECKER}} {{GOAL_FILE}}` exits 0.
{{STATE}} = the board(s) the run moves, named by role · {{SCRATCHPAD}} = the project's scratchpad rule, or
the host's · {{OPEN_LIST}} = the file where the project keeps its open questions for USER (its OPEN list).
The goal file — {{GOAL_FILE}}; the TABLE, its CONDITIONS, the FILES and the READ LIST live here:
# GOAL — {{TITLE}}
## §0 — THE PROMPT
```
{{THE_PROMPT}}
```
## §1 — THE FILES
- ENDS AS: {{WHICH_OF_THE_THREE}} — {{WHERE_OUR_FILLED_OUT_CONFIGURATION_LIVES}}
- SPEC: {{SPEC}}
- STATE: {{STATE}} — {{ROWS}}
- OPEN LIST: {{OPEN_LIST}}
- DEV FLOWS: {{DEV_FLOWS}}
- CODE: {{CODE_FILES}}
- WORKTREE: the run reads, edits and records every path here and in the prompt at the same path inside its own worktree, never in the shared checkout
- PROOFS: `{{NAME}}/proofs/` beside this file — every proof file a cell or a condition names
## §2 — THE TABLE AND ITS CONDITIONS
**THE STAGES** — a row moves through them left to right; a stage's cell turns `●` only once its proof is written:
- **{{STAGE_1}}** — {{what its proof shows}}
- **{{STAGE_2}}** — {{what its proof shows}}
…
**A CELL** is blank (open), `—` (the row has no such stage; set by this file's writer, or by the run on a row it adds, and never changed after), or `● <file>`, the file under `proofs/`.
### THE TABLE
| row | the deliverable, and what its cells reflect | {{STAGE_1}} | {{STAGE_2}} | … |
|---|---|:-:|:-:|:-:|
| R1 | {{DELIVERABLE_1, and the proof each of its stages needs}} | | | |
| R2 | {{DELIVERABLE_2, …}} | | | |
…
### THE CONDITIONS (each met one carries its proof and that file's sha256)
- C1 · THE TABLE is complete: every cell of every row is `●` naming its proof file under `{{NAME}}/proofs/`, or `—` as this file's writer set it; a deliverable the SPEC requires that no row holds is added as a new row before work on it starts; no row, stage or `—` is dropped, reworded or changed against the default branch's copy of this file: the proof holds the completed table and `git diff` of this file against the default branch's copy, showing only blank cells turned `●`, rows added with any `—` they set, and the checker's own edits of the condition lines.
- C2 · Every `●` reflects its stage: the proof file it names exists, holds the proof its stage's kind requires — for a stage of code each command run and its output verbatim, for a stage of a document the file read whole, its `git diff`, the canonical gates run and a fresh reader's verdict — and shows what that stage's definition and the row's own words require: the proof lists every cell's proof file with its sha256 and, for each, the lines in it that show what the cell requires, and holds the verdict of a fresh agent with none of the run's conversation that checked every cell against its proof before this condition was recorded.
- C3 · The boards reflect the table: each board row §1 names stands at its target phase only once every table row that names it has reached its last stage, and each board moved in the same commit as the work: the state gate run bare on every board, and the default branch's `git log` of each board naming the commits that moved it.
- C4 · SHIPPED: open PRs checked first and your own landed; every repository the run touched shipped by its own git loop — where it has a merge queue, every commit on the worktree's branch, the default branch merged in, the branch PR'd READY and merged by the CI/CD agent (while its runner starts no job, by the run's queue by hand, labelled for the late review — or, when the harness keeps the run from merging its own PR, handed off READY with its verdict on its tip, for the next session that holds the CI); where its rules put work on its default branch, committed and pushed there — and 0 unpushed at hand-off.
- C5 · NEEDS-ASKING, never blocked: a question only *USER* can answer is asked with the AskUserQuestion tool the turn it is reached and stays listed OPEN in {{OPEN_LIST}}; never guessed; only work that does not depend on it proceeds; the moment every open row and condition waits on *USER*, every open question goes to *USER* at once, in as few AskUserQuestion calls as its four-question limit allows, never in a text reply to the Stop hook. Only a key, a secret or a physical act stops the run.
- C6 · FIXPOINT: a full re-read of {{SPEC}} and every touched file produces NO edit, and no deliverable the SPEC requires is missing from THE TABLE, confirmed by a fresh agent with none of the run's conversation before this condition is recorded, its verdict the proof. If either fails, loop.
## §3 — THE READ LIST (at start and after every compaction: in order, whole, before any edit or answer)
1. `gh pr list --state open` on the repo — land your own open PRs on this work first
2. {{READ_1}}
3. {{READ_2}}
…
goal_check.py, beside this file| call | what it does |
|---|---|
goal_check.py <goal> | prints each condition open or met; EXIT 0 all met · 2 conditions open, named with what to do · 1 REFUSED, each refusal naming what broke |
goal_check.py <goal> --record C<n> <file> | records a met condition: the proof file (relative to the goal file's dir) and its sha256 |
goal_check.py <goal> --add "<condition>" | adds a condition the design requires and §2 lacked |
It reads the condition lines of §2 (- C<n> · …) and, where §2 holds ### THE TABLE, the table's rows (| R<n> | …);
a goal with no table is checked by its conditions alone, as before. It REFUSES: a condition dropped or reworded against
the default branch's copy of the goal file (or --base <ref>) · a met condition whose proof file is missing or no
longer matches its checksum · a prompt that lists a condition · a §2 without SHIPPED, NEEDS-ASKING and FIXPOINT · a
malformed or duplicated condition line · a path with no goal file · and, where the goal or its base copy has a table:
a row not of the form | R<n> | <the deliverable> | <a cell per stage> |, or repeating another row's id · a cell that is none of blank, — or
● <file> · a ● naming a proof file
(under the goal's proofs/, else beside the goal file) that is missing or empty · the base copy's table removed, or
one of its rows dropped or its deliverable reworded · a — the base copy set, changed · every condition met, or C1
met, while a cell of the table is blank. A row added is allowed. Every run on a goal file prints a short block headed AIOS MARKDOWN SYSTEM — read a file whole with Read, change it only with Write
and Edit, a design holds the final state only, the current state only in the boards, the read-order check and the
state-file gate run bare, prose judged by reading it, C2 and C6 closed by a fresh reader. The checker is the code
layer of a goal's guard — it decides what code can see about the table and its proofs; whether a cell's proof shows
what it claims is judged by reading it, and C2 and C6 by a fresh reader. Run it bare and read what it says.
```
{{THE_PROMPT}}
```
The goal file: `{{GOAL_FILE}}` (on the default branch).
The reply holds ONE fenced block, the prompt, and it is the whole of what USER pastes into /goal, which
refuses anything over 4,000 characters. The goal file is never inlined, condensed or fenced in the reply: whatever
sits beside the prompt gets pasted with it. One line after the block names the goal file's path.
— or a condition dropped or reworded once the goal is on the default branch — the table only
grows; a goal USER narrows is replaced by a new goal file, never edited down, and so is a goal found to hold a
cell or a condition no run can meet after it reached the default branch: the new file carries every old row's and
condition's intent, the old file goes in the same commit, and the mapping goes in the project's CHANGELOG.md● without its proof file, or a condition marked met without its proof file and checksum{{SPEC}}BLOCKED-ON-*USER* — it is NEEDS-ASKING/goal with itWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sancovp/host-aios --plugin host-aiosOther plugins' skills for the same job
63 skills in this plugin
/adding-a-skillWhen you make/add ANY skill (an AC, a CoR, a chain, a domain), do NOT just write the file — place it in the skilltree (coordinate-addressed), and because every directory is automatically an AIOS, give a new domain/role its own AIOS. Version it so the tree self-expands and search forwards to the newest. Use this whenever you create or improve a skill./adversarial-testingRun BEFORE writing or trusting any test. Turns tests from confirmations of the implementation into questions that could come out against it: claims named, competing explanations named, a must-admit and a must-refuse case for every check, failures settled by counterexamples, "better" decided on a population enriched on both sides, verdicts recorded with their reach. Use when writing tests, reading a green run, claiming "done/verified/stronger/better", or judging another check, search or procedure./