agentleFS
emaraschioemaraschio/cursor-commands/.cursor/skill-contracts/update-memory-bank/SKILL.md

update-memory-bank

Skill9 starsChanged 3 months agoMITView on GitHub

Sync memory bank with repository state

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run git log --oneline -15 to capture recent commits

    line 25
  2. Very specific:

    Check activeContext.md "Last Updated" date to understand the gap

    line 27
  3. Distinctive:

    Remove stale "Active Work Items" that are now complete

    line 36
  4. Distinctive:

    Ensure statistics (command count, etc.) reflect reality

    line 37
  5. Distinctive:

    Update only the files whose domain changed.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Overview

Sync the memory bank with the current state of the repository and recent agent interactions. Run after significant work sessions, feature completions, or when context has drifted from reality.

Memory Bank Files

Each file has a distinct responsibility. Update only what changed:

FilePurposeUpdate when...
activeContext.mdCurrent state, recent commits, active workAfter any meaningful commits
progress.mdChangelog, milestones, statisticsAfter feature completion
techContext.mdTech stack, tools, environmentTech stack changes
systemPatterns.mdCoding standards, patternsNew patterns established
projectbrief.mdProject purpose and scopeRarely, only on major scope shifts

Steps

  1. Gather current state
    • Run git log --oneline -15 to capture recent commits
    • Note any new files, commands, or rules added since last update
    • Check activeContext.md "Last Updated" date to understand the gap
  2. Update each relevant file
    • activeContext.md: Update "Last Updated" date, "Latest Commits" list, "Recent Focus Areas", and "Cursor Commands Inventory" count if it changed
    • progress.md: Add a changelog entry for the current month if work occurred; update statistics if counts changed
    • Other files: Only touch if their specific domain changed
  3. Verify accuracy
    • Confirm commit hashes and descriptions match git log output
    • Remove stale "Active Work Items" that are now complete
    • Ensure statistics (command count, etc.) reflect reality
  4. Commit
    • Use format: docs(memory-bank): update memory bank with latest changes
    • Stage only memory bank files: git add .cursor/memory-bank/
    • Push to remote after commit

Guardrails

  • Record only verified state; do not invent commits, files, or statistics.
  • Update only the files whose domain changed; leave unchanged files alone.

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.