/host-aios:ground-truthfrom host-aios
WHEN a project that exists has a DESIGN.md that is wrong, mangled or absent, or holds other written files that still say what it is, does or is meant to be, run this process on it before any other work there — gather the REALITY from every line of its code and the fully resolved VISION from every document anywhere that ever spoke about it, factor the two into one design system with every stage of every transformation written as a design, put every true status on the boards, and leave nothing in the project but design documents and code — never on a new project, never keeping an old document.
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.
None: SKILL.md is the whole skill.
The law is the rule 00-samaya §V. Ground truth is a PROCESS: it is run, and it ends with one design system that
holds everything, written through the design-md skill. It is never a kind of document, and it leaves no record file
and no findings folder behind it.
From the two it makes: the whole vision FACTORED into designs about the code, one design file per group of modules
that makes sense to group; the TRUE STATUS of every part, as rows of the board; every STAGE of every transformation
from the code as it is to the highest version the vision holds, each stage a design of its own, written completely
and solved end to end; and ONE top-level DESIGN.md that directs all thinking about the project.
It runs when a project ALREADY EXISTS and its DESIGN.md is wrong, mangled or absent, or when written files beside
the design still say what the project is, does or is meant to be. A new project takes no ground truth: its design is
written from the stated intent, by the aios-artifacts skillchain. Where the project has a HALO SEEM map, the agents
keep it open: it says where the features' boundaries are.
CHANGELOG.md holds what it replaced.DESIGN.md.design-md skill's check_design_is_whole.py),
the coverage gate, the read-order check, the reachability check and the state-file gate on each board.The test that it is done: could every old document be deleted now, with no question about the project left that only an old document answers? If not, it is not done, whatever the gates print.
Measure first (the rule 00-size-the-corpus-before-generating-into-it). Where the code and every document together
fit one window, the session runs every stage itself. Where they do not, the session is THE PLANNER: it measures, cuts,
writes each brief, sends agents on the model the installation binds for them (the rule the-subagent-model), and
checks what returns. The planner reads none of the code and none of the documents itself, and writes no findings, no
map and no report of what they say. The agents read, and the agents write the design.
The planner keeps a table ## THE SENDINGS on the project's board (the state-file skill), one row per agent, the
row written BEFORE the agent is sent: which stage, which share or which sources, which model. Its phases: SENT →
RETURNED → PROVEN (a program finds nothing left out, and a fresh agent that built nothing checks it) → COMMITTED. What
a returned agent says remains goes in its row. An agent with no row was not sent, and after a compaction that table
is how the planner knows where the work stands. The project's scratchpad carries one line, DO NEXT, rewritten in the
same commit as every step that moves, so no window repeats a finished step.
DESIGN.md stops being canonical the moment the process starts. It is one of the
documents the process absorbs: read as a claim, never as a source.design/<share>.md, in the form the design-md skill's THE GROUP PAGES gives: per file a heading
## <path in backticks> — N lines, why the file exists, then a table whose first column is a line range a-b,
running from 1 to N with no gap — what the range is, what it does, what calls it, what it calls. It reads at most
400 lines at a time and writes their rows before reading on. What it finds wrong it lists at the end of its page,
for the board.DESIGN.md and the owner's recorded rulings first, since a ruling
of the owner's outranks every older statement. Then it reads each source whole and places EVERY statement of
design, prose or idea in design/<share>.vision.md, under the file, function or topic it is about — every
statement, not only the ones that conflict. A statement that defines a term is copied word for word, as the system's
own definition, into the project's term registry (the design-md skill's law 9), and placed elsewhere only by
reference to it, never re-worded. A statement counts as already placed only when the page says the same
thing in full; any difference of condition, number, name, reason or example is added. Where a later statement
replaces an earlier one, the page gets what stands and CHANGELOG.md gets what it replaced, with both dates. A
statement about nothing in the code is vision with no code yet, and is kept as that. A statement about the project
as a whole goes in design/the-whole.vision.md. The agent deletes one of the project's own documents only when
every statement of it is placed, and appends one CHANGELOG.md entry per deleted file saying where its statements
went. A document outside the project is read, its statements placed, and left where it is. Stages 3 and 4 write
different files, so they run at the same time.design/<share>.md: the whole vision for the group, resolved, in
its highest version. For every part of that design it works out the TRUE STATUS — the code does it, the code
differs, or no code holds it — and lists each one that is not simply done as a row for the board. For every line
range it says which part of the design the range carries, or that no design asks for it. Then it deletes the
vision page.DESIGN.md from the group pages: what the project is, the final design,
the stages across groups in the order they are done, and, for every kind of work, which group page to read. Its
READ ORDER names no folder of old documents.CHANGELOG.md. The stage that missed is run again, until both lists are empty. Then the gates of
DONE ONLY WHEN 11, each run bare. Then the owner is told, with the counts.A brief is the only context its agent has. It states the goal in the owner's terms, names the exact files the agent reads and the ONE file it writes, gives the form of that file, and carries these, in these words:
Read every file on your list whole, with the Read tool — no sampling, no searching in place of reading; a search only locates. Write as you go, so nothing depends on memory. Write only the file named. Never edit code, tests, a board, a rule or a skill. Never run a test, a daemon or a network call. Never run a git command that changes anything except, where your brief says so, removing a document all of whose statements you have placed. State only what you read. Write no date, no quote, no person's name, no history and nothing about where anything stands into a design page: history goes to
CHANGELOG.md, and what you find wrong goes in your page's last section, for the board. When done, answer only: the file written, the count of what you read against what you were given, and what you could not do.
By program first: the wholeness gate lists every code file whose ranges do not run from 1 to its last line, and
every written file still outside the design. Then by a fresh agent, never by the planner reading the page and never
by the agent that wrote it. A page with a gap is sent again. After each agent: the gates bare, the row on the board
marked, the work saved and pushed by its own paths (the rule top-level-session-worktree).
[Deprecate] ⇒ [SizeAndCut] ⇒ [GatherRealityFromTheCode] ⇒ [GatherTheVisionFromEveryDocument] ⇒ [FactorTheVisionOntoTheCode] ⇒ [WriteEveryStageAsADesign] ⇒ [RollUpIntoOneDesign] ⇒ [ProveByThoseWhoBuiltNothing] ⇒ |OneDesignThatHoldsEverythingAndNothingElseLeft|
design-md skill: every page is written through it, and its wholeness gate closes the runstate-file skill: a row of the boardDESIGN.md stands → the design-toc skill (its READ ORDER and table of contents), the archi-diagram
skill (the stack drawn from the new design), the top-level-design skill (the reachability check; the project's
line in the top-level design that holds it)how-to-settle-a-question-for-the-owner skill, and only when
no statement in the documents or the owner's recorded rulings settles itWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sancovp/host-aios --plugin host-aios63 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./aios-artifactsWHEN you are about to make a new folder of its own (a project, a tool, a program, any piece of work that will live in a folder of its own), open this skill before that folder's first file and walk its steps, so the folder is made an AIOS in this AIOS's form by you, not later by someone else; also WHEN a folder is found without its design, board or map. It decides whether the project is new or exists, then makes its DESIGN.md, its board and its architecture map through their skills, then wires it into every index above it./aios-artifactsbanditChain-of-reasoning (spoken, ends in a decision) — The four artifacts every AIOS project owes and the order they are made in./archi-diagramAuthor the architecture diagrams a project owes. A mermaid flowchart per altitude, subgraphs marking boundaries, arrows meaning dependency direction, every external dep ending AT ITS SEAM because a dep's internals are its own architecture, plus the three-column general-specific-code bijection, drawing the final architecture with no mark of what is built, which is its board's. THE LAW is rule 23/brave-searchSearch the web using the Brave Search API, when a search must go through Brave rather than Claude Code's own web search. Needs a Brave Search API key in the environment variable BRAVE_API_KEY.