drift-sweep
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Catch drift after a change to the web-research engine. Run it once you've edited a contract, script, or doc and want to know what went stale: the deterministic gate (linters + tests + checks) first, then a quick doc-staleness pass scoped to what changed. Trigger on "/drift-sweep", "sweep for drift", "check the repo for staleness", "did my change break any pointers/docs", "drift check after my edits". An explicit maintenance verb for THIS engine — not for capturing or querying companies, and it never auto-fixes (it proposes). Use after engine edits; skip for company captures/queries.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-build-decideSkill
- agent-build-proposeSkill
- agent-build-reviewSkill
- agent-learning-mineSkill
- commit-allSkill
- learning-reviewSkill
- market-read-labSkill
- review-changeSkill
- work-menuSkill
- deepen-offeringsSkill
- query-companiesSkill
- research-companySkill
- visual-evidenceSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run after editing the engine (a contract, a script, a doc) to catch drift before it ships: deterministic checks first (cheap, every time), …
- Distinctive: line 27
Scope: default to the working-tree diff (git status + git diff.
- Distinctive: line 31
Small change (a few files): read them inline, no sub-agents.
- Distinctive: line 35
Look for drift only — a short, generic list (don't enumerate every doc.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
drift-sweep — catch drift after an engine change
Run after editing the engine (a contract, a script, a doc) to catch drift before it ships: deterministic checks first (cheap, every time), then a quick doc-staleness pass over only what changed. It proposes fixes — never auto-applies them. Keep the whole thing bounded and cheap; a tiny change needs only the gate.
1. Run the gate — deterministic, the cheap pass
From the repo root, run the gate block in MAINTAINING.md (the "run the gate"
section). Each non-zero exit is drift — note which check failed and why. The command list lives in
MAINTAINING.md, not here, so the two can't fork. A visualcheck/clock-skew failure on a company you didn't
touch is pre-existing, not your change — say so, don't fix it.
2. Doc-staleness pass — the LLM part, bounded by the diff
Scope: default to the working-tree diff (git status + git diff; fall back to the last commit if the
tree is clean). Sweep only docs touched by — or downstream of — the change. A full sweep (every contract +
root doc) only when asked.
- Small change (a few files): read them inline, no sub-agents.
- Broad change: fan out a few Sonnet sub-agents (this is mechanical reading — use the cheap model), one per doc area (contracts / skills / tools / _design).
Look for drift only — a short, generic list (don't enumerate every doc; the method shouldn't need upkeep):
- a pointer that moved — a path, filename, function, or
file:linethat no longer exists or now points wrong; - a broken cross-doc link, or a doc that restates another's rule and now contradicts it;
- a baked count / inventory ("N tools", example lists) that no longer matches reality;
- for each contract the diff touched, walk its row in
MAINTAINING.mdand confirm the listed downstreams actually moved.
3. Report — propose, don't write
One tight digest:
- Clean — what passed (a wall of green is one line).
- Drifted — each finding as
file:line → what's stale → proposed fix. - Needs a human call — anything ambiguous (a judgment, a migrate-vs-grandfather decision).
Apply fixes only if the user says go. This skill spends nothing but Claude reasoning — no captures, no credits.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

