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
Arguments: $ARGUMENTS
Parse the codebase root and optional `--ref <commit>`. With no root, use `$(pwd)`. Default mode reads the current working tree, including eligible untracked files, and also works outside Git. `--ref` instead selects a committed Git projection; it requires a usable repository and resolvable commit.
---
## 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 @scch