wiki-build

wiki-build is a command for Claude Code from ARCASSystems/FounderOS. It costs 47 tokens per session (736 once invoked), scanned A, original, MIT.

A command that rebuilds a wiki graph from linked Markdown files. A wiki graph is a map showing connections between notes.

In plain words
What is it for?
Use it to scan Founder OS notes for Obsidian-style links and refresh the generated links section of the relations file.
Why use it?
It keeps the automatically found links up to date without changing the manually maintained relationships.

Command for Claude Code

Part of the founder-os plugin — 9 skills, 45 commands, 6 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/arcassystems/founderos/wiki-build
Clone the repo
git clone --depth 1 https://github.com/ARCASSystems/FounderOS

Made for: Claude Code.

Or install founder-os, the plugin that ships this one along with the rest of its 9 skills, 45 commands, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-build

README.md
[![agentmods](https://agentmods.dev/badge/commands/arcassystems/founderos/wiki-build.svg)](https://agentmods.dev/commands/arcassystems/founderos/wiki-build)
Your own site
<a href="https://agentmods.dev/commands/arcassystems/founderos/wiki-build"><img src="https://agentmods.dev/badge/commands/arcassystems/founderos/wiki-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.00736
Opus 5 $0.00023 $0.00368
Sonnet 5 $0.00009 $0.00147
Haiku 4.5 $0.00005 $0.00074

Measured 4d ago against content hash 5567c3165b90, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/wiki-build.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Founder OS wiki-build

Refresh the auto-extracted half of brain/relations.yaml. The hand-curated relations: section (semantic edges with type: informs/blocks/guards_against/etc.) is preserved untouched. Only the block between the auto-generated sentinel markers is replaced.

Procedure

  1. If core/identity.md does not exist, reply Founder OS not set up here. Say "set up Founder OS" first. and stop.

  2. If scripts/wiki-build.py does not exist, reply Wiki-build script not found. Say "update Founder OS" to restore the OS's own files. and stop.

  3. Run the build script:

    python scripts/wiki-build.py
    
  4. Report the output line verbatim. Example: Wrote 12 wiki links from 4 source files into brain/relations.yaml.

  5. If the script exits non-zero, report the error message verbatim and stop. Do NOT attempt to fix the underlying issue automatically.

  6. Do NOT save a version of the change yourself. The user reviews the refreshed graph first; with version history on, it rides along in their next save.

Form Meaning
[[target]] Bare slug. Resolved at query time.
[[target.md]] Explicit file (basename or repo-relative path).
[[target.md#anchor]] File with heading anchor.
[[target|display text]] Alias form. Display text is discarded for the graph.

Rules

  • Read-only on source markdown. The script only writes to brain/relations.yaml.
  • Wiki-layer scope: core/, context/, cadence/, brain/, network/, companies/, roles/, rules/. Plugin-internal directories (.claude/, skills/, templates/, docs/) and the source archive (raw/) are excluded.
  • Wikilinks inside fenced code blocks or inline backtick spans are ignored (so docs that describe the syntax do not pollute the graph).
  • The script is idempotent. Running twice in a row produces no diff.
  • Do not edit the auto-generated block by hand. Edits between #@@WIKI_LINKS_AUTOGEN_BEGIN@@ and #@@WIKI_LINKS_AUTOGEN_END@@ are overwritten on next run. Add semantic edges to the hand-curated relations: section instead.

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 58 lines · 47 tokens per session scan A 5567c3165b90

Subscribe to this mod's changes

wiki-build is a command published in the GitHub repository ARCASSystems/FounderOS (5 stars, last pushed 20d ago), licensed MIT. It adds 47 tokens to every session and 736 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.