/host-aios:top-level-designfrom host-aios
Check or repair a TOP-LEVEL DESIGN so it is the book about the tree of DESIGN.md documents — every section a bridge plus its links, closing on its last line, stating only the design — check THE MASTER MAP that names every top, and check that every document is reached from the top. Use before and after any write to a top-level design or the map, before a version leaves, and to install the gate that fires on every write. THE LAWS are rules 00-top-level-design-is-an-lfp-rollup, 00-canonical-doc-paths and every-level-describes-and-breadcrumbs-below
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sancovp/host-aios --plugin host-aiosEach top AIOS has a top-level design, and THE MASTER MAP names every one: a global rule at
<global home>/rules/master-map.md, its title line, then one line and one link per top-level design (rule
00-canonical-doc-paths). Where no map is there, THE TOP-LEVEL DESIGN is the ROLE user_info.md binds to a file.
This skill carries the gates those rules bind to, so an installation never reaches outside the AIOS to check its
own tops.
check_top_level_design.py, beside this filepython3 "${CLAUDE_SKILL_DIR}/check_top_level_design.py" # every top the map names, else the bound one
python3 "${CLAUDE_SKILL_DIR}/check_top_level_design.py" <path> # any document of the shape
python3 "${CLAUDE_SKILL_DIR}/check_top_level_design.py" --map # the map at the global home
python3 "${CLAUDE_SKILL_DIR}/check_top_level_design.py" --map <map> # a map at that path
On a top-level design it REFUSES — naming the line, the kind and the reason, and where each removed thing goes — what
code can see of: a section number repeated or out of order ·
a last line that is not AND THAT'S THE ARCHITECTURE. · an opening that does not say what the document is, how to
read it, how to change it and where progress lives · a date · a quote or the user's name · a replaced, superseded or
corrected reading · the document's or the system's history · a patch block · a moved stub · a state-of-construction
word (where each thing stands is a row of the top-level states doc and the boards beneath it) · a section grown past a bridge (over its word budget, or carrying file:line, ports and counts).
On the map it REFUSES: no title line · a map line with no link, or more than one · a link that resolves to nothing · a line over 200 characters · two lines naming one top · any text that is not a line.
⛔ RUN IT BARE AND READ WHAT IT SAYS. A pass names the file it checked; no map, no binding and no path is NOTHING CHECKED, exit 1, never a pass. Red means fix the document, never the gate.
check_reachable.py, beside this filepython3 "${CLAUDE_SKILL_DIR}/check_reachable.py" <a top-level design or a DESIGN.md>
From the start document it follows every link and every named path to a file or a folder, counts a reached folder's
CLAUDE.md, .claude/rules/ and .claude/skills/ as reached, skips the folders a READ ORDER names on its line
ARCHIVE AND PROGRAM FOLDERS:, and lists every .md file under the start document's folder that nothing reaches —
exit 1 when any. Give each listed document its one-line summary and link in the parent that owns its topic, or name
its folder on that line when it is evidence, generated output or a program's source; run it again until it exits 0.
hook.py, beside this fileThe same check on every Edit / MultiEdit / Write to any top the map names (else the bound one), and the map check on
every edit of the map, before the write lands: an edit that adds a finding is refused; an edit that only removes
findings passes, so a deformed document is repaired one edit at a time and a clean one stays clean. Install it in the
project settings of the repository that holds a top-level design (the snippet is in hook.py's docstring). It
recognizes the same file in every worktree of that repository.
Read the whole document · find every place the change touches · rewrite each so it states the design and nothing
else, the replaced reading leaving no trace · re-read the affected sections · run the gate bare. A finding is removed
and replaced with NOTHING: no note that it was removed, anywhere. Detail cut from a bridge belongs in the DESIGN.md
of the part it describes — check it is there before cutting it.
--map run bareDESIGN.md changed → the design-toc skill, for its READ ORDER and its table of contents63 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.