/host-aios:learn-about-aios-patternsfrom host-aios
WHEN you need to know what a folder owes — before making or repairing a folder, before saying an AIOS or a project is whole, or when a viewer or a check asks what is expected there — read the patterns here and run check_aios.py on the folder; it says first whether the folder is a project, a part of one or generated, then lists everything it owes, each item by the rule that owes it, as there, missing or broken.
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.
An AIOS is a folder carrying a devdir (.claude, .heaven, .agents, .cave, .onionmorph, .starsystem). What a
folder owes depends on what it is, and is written once, here, as PATTERNS — JSON files in ${CLAUDE_SKILL_DIR}/patterns/
— so a person, an agent and a program read the same list.
skilltree.json or sits under a folder that does (a SkillTree node), or it is build output.
It owes nothing of its own: a program writes it.DESIGN.md; or it sits directly in a band of THE CANONICAL HOME; or THE PROJECT REGISTRY
names it; or the READ ORDER of the design above it names its DESIGN.md. It owes the project pattern, whole, whether
or not its design exists yet: a project with no DESIGN.md owes every item, each one missing.The check reads the canonical home, its bands, the registry and the top-level design from the installation's
user_info.md — the nearest .claude/rules/user_info.md at the folder or a folder above it — never from a path written
into it.
| pattern | applies to | what it expects |
|---|---|---|
base.json | every AIOS and every part | CLAUDE.md · .claude/rules/ · .claude/skills/ · .claude/agents/ |
project.json (extends base) | a project | everything the rules make a project owe — its folder, its design and its gates, its history, its state, its sequences, its architecture, its tree, its notes, its outputs, its place above it |
Each expectation names why, the rule that owes it, and one check:
path (the default) — a file or a folder (dir: true), there or missing; * matches inside its last name; min
files at least;text — a file holding what its rule requires: matches, a regular expression, inside section when named;each — one for each: a dev flow for each feature of the design (feature-section), a dev flow named for each table
of a board (lifecycle-table), a sequence diagram in each dev flow (dev-flow-diagram), a scaffold for each folder
inside (folder-inside), a line in CLAUDE.md for each file and folder (entry-named);above — the project's place above it: its parent's index, the registry, its parent's THE PROJECTS, the top-level
design;gate — the check a kind's skill carries (skill and script, beside this skill), run bare; each line it prints
when it refuses is one broken item, in the gate's own words.when makes an item owed only once it holds (lines_over, exists, has_children); optional items are never
missing, and until says when they come to be owed.
python3 ${CLAUDE_SKILL_DIR}/check_aios.py <folder>
It prints what the folder is and why, then every expectation: ✓ there, ✗ missing, ! broken, · not owed yet, with
the rule that owes it and, for one-for-each and gates, each item; exit 1 when anything owed is missing or broken.
--json prints the same as one record, --no-gates leaves the gates unrun, --bindings <user_info.md> names the
bindings to read. A viewer that draws an AIOS (OM Explorer's AIOS page) reads the same patterns and the same results,
so what it marks missing is what this check marks missing.
A pattern is part of this AIOS's program: it changes in the template, by the AIOS's own release, never in a copy of it. When a rule comes to owe something every AIOS or every project must hold, its expectation is added to the pattern in the same release that changes the rule.
design-md skill for a DESIGN.md, the state-file skill for a board, the archi-diagram skill for the
architecture map, the design-toc skill for the table of contents; a new project → the aios-artifacts skillchainWhat SKILL.md sets; muted values are Claude Code's defaults
Other 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./npx claudepluginhub sancovp/host-aios --plugin host-aios