agentleFS
shamilkayalshamilkayal/ultragoal/skills/compact/SKILL.md

compact

Skill17 starsChanged 4 months agoMITView on GitHub

Lint and compact the ultragoal project memory — find contradictions and stale claims, merge duplicates, refresh the index. Run every ~10 sessions (the session banner nudges when due).

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run a lint-and-compact pass over .ultragoal/memory/ (MEMORY.md, facts.md, patterns.md, failures.md).

    line 6
  2. Distinctive:

    Read every file end to end, then report findings in three tiers before changing anything:

    line 12
  3. Very specific:

    Re-verify cheaply: if a [VERIFIED] claim has a one-command check, run it.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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

Run a lint-and-compact pass over .ultragoal/memory/ (MEMORY.md, facts.md, patterns.md, failures.md).

The cardinal rule: only the compiled layer (above the ---) is ever rewritten. Evidence logs below the line are append-only history — never edit, reorder, or delete their lines. Compaction that touches evidence is corruption, not cleanup.

1. Lint — triaged findings first

Read every file end to end, then report findings in three tiers before changing anything:

  • Errors (fix now): compiled claims that contradict each other across files; compiled claims contradicted by newer evidence in any log; index lines pointing at entries that no longer exist; the same fact compiled in two places.
  • Warnings (fix if cheap, else flag): [VERIFIED] claims whose evidence is old and whose subject area has changed since (check git log on the relevant paths); [INFERRED] entries no session has touched since they were written; entries the repo or git history now records on its own.
  • Info: [no data yet] slots in MEMORY.md that sessions keep needing; areas with lots of evidence but no compiled rule yet.

2. Compact — above the line only

  • Merge near-duplicate compiled claims into the strongest one, keeping the best provenance.
  • Generalize: observations sharing a cause become one rule; cite the supporting evidence dates ("evidence: S2, S6, S11 below").
  • Re-verify cheaply: if a [VERIFIED] claim has a one-command check, run it. Passes → refresh its date. Fails → rewrite the claim, append the contradicting run to the evidence log.
  • Downgrade honestly: a claim that can't be re-verified and looks doubtful becomes [INFERRED], not deleted. Never silently promote [INFERRED] or [READ] to [VERIFIED] — that laundering is exactly how a memory starts citing itself.
  • Archive, don't destroy: compiled entries that are obsolete move to an ## Archived subsection at the bottom of the compiled layer with a one-line reason; their evidence stays in the log untouched.
  • Rewrite MEMORY.md's index so it exactly matches what remains — one line per entry, most load-bearing first, well under 100 lines.

3. Close out

Reset the cadence counter: write 0 to .ultragoal/memory/.sessions.

Report: Errors/Warnings/Info found, what was merged, generalized, re-verified, downgraded, archived, and the new index size. Memory should come out smaller and sharper, not summarized into mush — when in doubt between compressing an entry and keeping the specifics that would change what a future session does, keep the specifics.

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.