agentleFS
patrick-xinpatrick-xin/tonex/.claude/skills/sweep/SKILL.md

sweep

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Periodic maintenance sweep of the two stores that rot silently between sessions — machine-local agent memory and the ADR set. Use when the user asks to run a maintenance sweep, drain or clean up agent memory, audit ADRs, or on the recurring ~2-week / N-slice cadence.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use implement, triage and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 4 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

Files
SKILL.md

Maintenance sweep

Two stores rot silently between sessions: machine-local agent memory (stale snapshots read as current) and the ADR set (rationale that drifts against the code, or entries that no longer constrain anything). This skill is the recurring procedure that drains them. Run every ~2 weeks or every N slices, whichever lands first — or whenever the user invokes it.

This skill owns the procedure; the policy it enforces lives in docs. Don't restate the rules here — read them:

  • Memory policy (forcing-condition frontmatter, the graduation table, what never goes in) → docs/agents/memory-lifecycle.md.
  • ADR authoring + audit procedure → the adr skill (it owns the convention and the fold procedure; this skill just runs it on the cadence).

1. Memory sweep

Walk ~/.claude/projects/<repo>/memory/MEMORY.md top-to-bottom. For each memo:

  1. Forcing condition met? — until-adr-NNNN landed, until-issue-NNN closed, until-YYYY-MM-DD passed. Graduate the content to its home per the graduation table in memory-lifecycle.md (ADR / docs/agents/ / GH issue / CHANGELOG.md / docs/private/), then delete the memo and its MEMORY.md line.
  2. Snapshot >30 days? — re-read against current code; refresh the date or delete.
  3. No forcing condition? — wrong shape: add one, or convert to permanent with a justification in the description.
  4. Project ledger? — shipped history → CHANGELOG.md; open items → a GH issue with the right label.

A drained MEMORY.md is the success state, not a failure — load-bearing memos graduate to the repo; the rest were disposable.

2. ADR audit

The ADR audit lives in the dedicated adr skill — it owns the authoring convention and the audit/fold procedure. Run it as the ADR half of the sweep: pnpm check:adr to clear the deterministic flags, then its by-hand pass (still load-bearing? constrains nothing? holds a command-falsifiable result?). Surface anything ambiguous rather than archiving it.

Reporting

Summarize what moved: memos graduated/deleted, ADRs archived/trimmed, the pnpm check:adr end-state (green, or what was fixed to get there), and anything that needs a human decision (a memo with no clear home, an ADR whose load-bearingness is ambiguous). Never delete or archive anything ambiguous without surfacing it first.

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.