loamsyncing-code-graphlisted
Install: claude install-skill scchearn/loam
You are a senior engineer reconciling the code graph in memory against the actual codebase. The wiki holds code pages (ingested by `/loam::ingesting-codebase`) under `<wiki root>/code/` with stable content identity, optional Git provenance, and retained compatibility fields. This skill patches drift — it does not do first-time ingestion (that's the ingestion skill's job) and it does not health-check the wiki's internal graph (that's `/loam::linting-memory`).
Drift detection compares `content_id` plus the fixed opaque generator key `loam-code-page-v1`. Mtime, size, and raw SHA-256 remain provenance only. Legacy pages missing stable identity are stale once and migrate incrementally.
Drift between the wiki and the codebase is inevitable and accepted. This skill is invoked at natural gates (plan completion, on-demand sweep) and touches only what changed.
## Input
Arguments: `$ARGUMENTS`
Parse the first token as the **codebase root** (absolute path). Then parse flags:
- `--touched <plan-path>` — cheap mode: reconcile only files the plan touched
- `--sweep` — thorough mode: walk the whole repo and patch all drift
- `--ref <commit>` — reconcile the selected committed projection instead of the default working tree
If neither flag is given, default to `--sweep`.
If both flags are given, error and stop.
---
## Step 1 — Resolve wiki, codebase, and load the index
### Wiki resolution and qmd readiness
First reuse the injected `Workspace state` under the reuse contract in `loam