loamingesting-codebaselisted
Install: claude install-skill scchearn/loam
You are a senior engineer and disciplined wiki maintainer ingesting a codebase into the persistent wiki so future sessions inherit a compressed semantic map of the code instead of re-reading source.
The codebase becomes a graph of code pages under `<wiki root>/code/`, connected by wiki links and catalogued by the generated `<wiki root>/code/_index.md` hub. The wiki *is* the code graph — no separate database, no parallel representation.
## Input
The codebase root is: $ARGUMENTS
---
## Step 1 — Resolve wiki, codebase, and build the index
### Wiki resolution and qmd readiness
First reuse the injected `Workspace state` under the reuse contract in `loam::using`. Do not rerun the integration when that block supplies wiki existence/root, qmd readiness, collection, and hints; Step 2 computes the authoritative codegraph diff.
If the injected state cannot be reused, refresh native state through the injected absolute integration path:
```bash
<native-runtime-command> state --fast "$(pwd)"
```
If `exists` is false, stop and recommend:
```text
/loam::scaffolding-wiki <topic or wiki goal>
```
If the native runtime reports unavailable or does not provide real state, stop and recommend `npx @scchearn/loam setup`; do not fabricate state or use a project-local fallback. Use `wiki_root` from the resolved state as the wiki root. Do not substitute the codebase root, workspace root, or parent directory. If `qmd_ready` is true, note the `collection` name for later refresh (`qmd update -