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 `source_path:`, `ingested_at:`, `source_size:`, and `content_hash:` front matter. `ingested_at` is the source file's Unix epoch mtime, not a wall-clock ingest date. 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 uses mtime+size as the primary signal and content hash as a secondary check. When mtime says stale but size is unchanged and `content_hash` exists, `codegraph diff` computes the file's SHA-256 and suppresses the stale flag if the hash matches (false-stale suppression). Missing or nonnumeric `source_size` disables size comparison and falls back to mtime-only; missing `content_hash` disables secondary suppression. Treat missing fields as legacy, not errors. The `--strict` flag forces full-hash verification on every file (catches false-fresh where content changed but mtime was backdated); it is opt-in, not the default.
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