← ClaudeAtlas

loamsyncing-code-graphlisted

Reconcile the code graph in memory (wiki substrate) against the actual codebase. In --touched mode, re-summarizes only files a completed plan touched (cheap, post-plan gate). In --sweep mode, walks the whole repo and patches drift from out-of-band edits. Drift is accepted between gates; this skill is the only place the code graph is reconciled to the repo tree.
scchearn/loam · ★ 1 · AI & Automation · score 68
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