agentleFS
brianbolzebrianbolze/truffle/skills/drift-sweep/SKILL.md

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.

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
  1. Distinctive:

    Run after editing the engine (a contract, a script, a doc) to catch drift before it ships: deterministic checks first (cheap, every time), …

    line 14
  2. Distinctive:

    Scope: default to the working-tree diff (git status + git diff.

    line 27
  3. Distinctive:

    Small change (a few files): read them inline, no sub-agents.

    line 31
  4. Distinctive:

    Look for drift only — a short, generic list (don't enumerate every doc.

    line 35

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:line that 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.md and 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.