/host-aios:skilltreefrom host-aios
The primary technology — impose a navigable TREE on the flat `.claude/skills` substrate, and keep it COHERENT. Use when you see a `[SKILLTREE]` system-notification warning (the tree decohered — recohere it), when a `.claude/skills` is a flat forest you can't navigate, when you need to view/engineer/assign-coords on a skill tree, or when you must navigate a big tree without loading the pile. Triggers — "tree decoherence", "recohere", "skilltree", "treeify skills", "the tree shape", "flat forest", "bare forest", "cat down the tree".
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.
Anthropic's .claude/skills is a flat forest: it auto-loads one layer per dir, .claude
cannot nest in .claude, and the top can't itself be .claude. So the substrate cannot express
depth — every skill screams into context at once (melt), and you pay a "management" tax to fake
structure. skilltree fixes this by imposing a virtual tree on the flat substrate (rule 01:
nothing is a forest; everything is a tree, which contains a forest — Tree = Root × Forest).
The tree is rendered with three levers:
0 → 0.1 → 0.1.1);.claude boundary — only the top layer auto-loads; deeper .claude/skills
are inert until you cat them (this is the load-cutter that makes layers, not a dump);cat-breadcrumbs + index summary — each SKILL.md ends with literal cat <path> links to
its children + a "reachable below: …" summary (so a search on a leaf term still finds the branch).You load one layer and walk; you never load the pile. Position = identity: cat into a branch
and that subtree is your world — you lord over it.
[SKILLTREE] notification (recohere — the fix)The decoherence cron found the on-disk tree drifted from its coherent shape. Recohere it:
skilltree cohere <root> # see exactly what drifted (bare forest / stale breadcrumb / coord drift / stray)
skilltree emit <root> # re-cohere IN PLACE: reassign coords + rewrite breadcrumbs (non-destructive)
skilltree emit <root> --root-forest --name <root-name> # if it's a BARE FOREST: synthesize a root + relocate leaves
skilltree cohere <root> # confirm: "✓ coherent" → the notice clears on the next check
<root> is the dir whose tree drifted (the user level is ~/.claude). emit can relocate/remove
real skill dirs when tree-ifying a forest — read the cohere report first and be sure of <root>.
The AIOS's own tree, where the installation binds THE AIOS RELEASES (user_info), is re-made in a new release,
never in place: ~/.claude/skills then serves the release in use, which is read-only, so <root> is the new
release's folder while it is still writable — cohere, emit, cohere there — and the tree reaches sessions when that
release is promoted, by that binding's procedure.
skilltree discover <root> prints the tree that is actually on disk.SkillTree(TreeNode(...)) (or a skilltree.json) and
materialize(tree, root, coords=True) — or skilltree build <manifest> <root>.emit (above). Coords come from the tree shape
(assign_coords: root 0, child i = parent.i).link_tree / build_forest symlink a tree's (or a forest's) entry points
up into the .claude/skills sessions load — a project's, or ~/.claude/skills; for the AIOS's own skills, where
THE AIOS RELEASES is bound, a new release's skills/ — so they auto-load; everything deeper stays behind cat.cat the ## Descend block gives you.skilltree search <root> "<query>" --scope 0.1 searches only 0.1 + its
descendants ("where you are = what you see"). The index summaries make branches findable by any
descendant's terms.skilltree watch <root> --interval 300 runs in the background: every ~5 min it re-checks the tree
and rewrites the self-managed 00-system-notifications rule (~/.claude/rules) — "nominal" when
coherent, ERROR/WARN + this fix when not. It is read-only on the tree; the fix is yours to run.
Single check: skilltree notify <root> (or watch --once).
What 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./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.npx claudepluginhub sancovp/host-aios --plugin host-aios