/host-aios:design-mdfrom host-aios
WHEN you are about to write, change or repair a project's DESIGN.md or a page under it, or a file is added to, renamed in or removed from its code, open this skill first and write the design through it — one DESIGN.md per project at the head of a design system that covers every file of the code, why it exists and how it connects to everything else, a long explanation a linked page in its `design/` folder, the intended final state and its steps and never where anything stands — then run its coverage gate bare.
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.
DESIGN.md at the head of a design system that covers every fileThe law is the rule 26-canonical-design; this skill is how it is done. Open the design-toc skill with it at every
edit of a DESIGN.md: that skill keeps the READ ORDER and the table of contents.
A project's design is what anyone reads instead of reading the code. It says what the project is when it is finished, how it works, what its parts are and how they meet, and the steps by which it gets there. It is the thing the code is checked against, by one question: is this implemented as the design says, or as it implies? So a design is never rewritten down to describe broken, partial or stubbed code, and it never says where anything stands.
A design is a SYSTEM of documents with one head. DESIGN.md, at the project's root, is the head: the top page. Under
it sit detail pages, each linked from the section that owns its topic. Any question about the project is answered from
DESIGN.md and the pages it links. A question they cannot answer means a page is missing, and writing that page is
the work: read the code that answers the question once, write the page, link it, then answer from the page. Reading the
code again each time the question comes back is the failure this skill exists to end.
DESIGN.md. A project is one entity — its own abstraction, running on its own context.
It has one DESIGN.md, at its root, read inside the folder it designs. A folder inside a project gets a section of
that design, never a DESIGN.md of its own; a project nested inside another keeps its own. A rule or a CLAUDE.md
is a loading mechanism and is never a design document.## heading is ## READ ORDER: what this level is, then for which
work which section, which page, which child design and which procedure to read, then the lines naming the folders
the checks leave alone (the design-toc skill has the form).state-file skill) and is written nowhere in a design.design/ folder beside DESIGN.md,
is linked from the section that owns its topic with one line saying what the page answers, and is listed in that
folder's CLAUDE.md with the same line. The section keeps the statement; the page keeps the length.CHANGELOG.md beside the design.CHANGELOG.md, and the file is deleted. It is never kept as archive, record,
pointer or reference.DESIGN.md included, refers to a term by its name and a link to the registry and never restates or re-words its
definition. A term the registry lacks is added the turn it appears; a definition that is missing is said to be
missing and asked for, never supplied.design/ — one table per group,
three columns: the file, why it exists, what it connects to — and link it from the section. Write each file by a
name no other file shares: its folder with its name wherever two files have the same name.CLAUDE.md of the design/ folder, one line each, the same line the section uses for its link.design-toc skill); the reachability check (the top-level-design skill), from this DESIGN.md.design/ folder<project>/DESIGN.md the top page: READ ORDER, one section per feature, each linking its pages
<project>/design/CLAUDE.md what the folder is, and one line per page
<project>/design/<topic>.md a detail page: opens by naming the sections of DESIGN.md it details
A page is a design document like the top page: the final state only, no current state, rewritten whole when its
ruling changes. Its first lines carry the banner REFERENCE DETAIL — READ when its topic is the active task; NOT deprecated, NOT skippable. A page may link further pages; every page is reached from DESIGN.md.
check_design_covers_code.py, beside this filepython3 "${CLAUDE_SKILL_DIR}/check_design_covers_code.py" <project folder, or its DESIGN.md>
It lists every code file under the project that neither DESIGN.md nor a page it reaches names, exit 1 when any; a
pass names the design it checked and how many code files and pages it read. A code file is one git tracks or would
track with a source extension, a build file such as a Dockerfile, or a script with no extension and a #! first
line (--ext .xyz adds an extension). A file is named when a page writes its path from the project folder, or an end
of that path no other code file shares; a file written only by a name other files share is listed apart, to be written
with its folder. A board, a scratchpad, a changelog, a dated ground-truth record and a CLAUDE.md are never counted
as a page: none of them is the design.
It leaves unchecked, and counts in its output: build output; the project's own workspace/, which holds what using
the project made and never its program; the folder of a child project, which its own design covers; and the folders
the READ ORDER names on the line COPIES, GENERATED OUTPUT AND RUN EVIDENCE:. Name a folder on that line only when
its code is a copy of code that lives elsewhere, the output of a generator, or the evidence of a run, and say in the
design which it is and what makes it. The code a design is the design of is never named there. The line ARCHIVE AND PROGRAM FOLDERS: is about documents and exempts no code.
⛔ RUN IT BARE AND READ WHAT IT SAYS. It tells that a file is named. It cannot tell whether the line beside the name says why the file exists and what it connects to: that is judged by reading the page. A design that passes the gate with a list of bare names has not covered anything.
Where the ground-truth process writes the design (the ground-truth skill), the code is cut into groups of modules
that make sense to group, and each group has ONE page in design/. A group page holds three things, in this order:
## <the file's path in backticks> — N lines, a
paragraph of why the file exists and what it connects to, then a table whose first column is a line range a-b:
what the range is, what it does, what calls it, what it calls. The ranges of a file run from 1 to N with no gap.The code is the reality and never the truth of what is meant: a group's design is never written from its code alone.
check_design_is_whole.py, beside this filepython3 "${CLAUDE_SKILL_DIR}/check_design_is_whole.py" <project folder, or its DESIGN.md>
It fails while the design is not the whole of the project's writing and code. It lists every code file whose lines
no page accounts for from 1 to its last line with no gap, and every written file that is not the design, the code or
the AIOS's own files. A written file is allowed only as: DESIGN.md and the pages of design/; a CLAUDE.md;
anything under a .claude/ folder; the root CHANGELOG.md; a README beside a build file; a licence or a
requirements file; a file under a workspace/ folder the READ ORDER names on a line OUTPUTS OF USE:; and the files
of a child project. A code file the owner ruled is not to be read is named on a READ ORDER line NOT READ BY RULING:.
Run it bare and read what it prints. It cannot tell whether a row says what its lines do: that is judged by a reader
who built nothing.
State is found by reading the design, never by a program. Each passage of it — the whole paragraph, list item, table or
section that holds it, never part of a sentence — is fenced where it stands, every word unchanged, between the line
> **WARNING: STATE MENTIONED IN DESIGN.MD -- NOT ALLOWED IN DESIGN. THIS MUST MOVE TO STATE FILE WHEN WORKED ON. DO NOT REMOVE THIS FENCE UNTIL THE STATE IS RECONCILED AND EVERY INTENDED THING IS BUILT AS INTENDED. DO NOT SKIP THIS.**
before it and the line > **END OF STATE FENCE** after it, each written as one line. Whoever next works on the project
moves each fenced passage into its boards as rows; the fence is removed only once that state is reconciled and every
intended thing is built as intended.
[LocateTheOwningProject] ⇒ [OneSectionPerFeature] ⇒ [StateTheFinalStateAndItsSteps] ⇒ [CoverEveryFileOfTheCode] ⇒ [GiveEachLongExplanationItsPage] ⇒ [MoveEveryStateToTheBoards] ⇒ [RollDetailInAndLeaveAPointer] ⇒ |OneDesignSystemThatAnswersEveryQuestion|
DESIGN.md changed → the design-toc skill: its READ ORDER and its table of contents, in the same commitstate-file skill: a row of the boardarchi-diagram skill: the stack redrawnground-truth skill first; it outputs the
design system through this skilltop-level-design skill's reachability check, from this DESIGN.mdWhat 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./