agentleFS
darrenCWJdarrenCWJ/agent-skills-scaffold/.claude/skills/memory/SKILL.md

memory

Skill0 starsChanged 4 months agoMITView on GitHub

Aggressively persist facts, preferences, failures, and state so nothing is lost between sessions. Use continuously — the moment the user states a preference or correction, an approach fails, a decision lands, a phase completes, or anything surprising appears. If you wondered whether to save it, save it.

66 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use harness-review, postmortem and 8 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.
  • fockusSkill

    harness-review

    Harness v3 統合レビュースキル。コード・プラン・スコープを多角的にレビュー。以下で起動: レビュー、コードレビュー、プランレビュー、スコープ分析、セキュリティ、品質チェック、harness-review。実装・新機能・バグ修正・セットアップ・リリースには使わない。

    Also in 3 projects that use this

  • Hongyu-yuSkill

    postmortem

    Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, documenting root causes with 5 Whys or fishbone diagrams, identifying corrective actions with owners and timelines, learning from near-misses, establishing prevention strategies, or when user mentions postmortem, incident review, failure analysis, RCA, lessons learned, or after-action review.

    Also in 4 projects that use this

  • MicrosoftSkill

    dev

    Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.

    Also in 3 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 4 projects that use this

  • MicrosoftSkill

    sync

    Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 4 projects that use this

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 57 edited versions we read keep these.

  • 4

    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:

    After every write, add/update one line in memory/MEMORY.md: - name — hook.

    line 30
  2. Distinctive:

    Before writing, check for an existing file that covers it — update rather than duplicate.

    line 34
  3. Distinctive:

    Don't store what the repo already records (code, git history, the plans/decisions files themselves) — store pointers plus the non-obvious …

    line 37
  4. Distinctive:

    Never store secrets, credentials, or sensitive personal data.

    line 38
  5. Very specific:

    Read memory/MEMORY.md fully.

    line 41
  6. Distinctive:

    When the index exceeds ~40 lines or feels noisy: merge duplicates, delete dead facts, cluster related entries.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 57 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

Memory

Bias hard toward over-writing. Redundant memory is cheap; lost context is expensive. Nothing is left unturned: if you wondered "should I save this?", the answer was yes.

Write triggers (act immediately, unprompted)

  • User states a preference, correction, or way-of-working (type: user or feedback — include the WHY).
  • A design decision is made (pointer to the ADR).
  • An approach FAILS (record why — failure memory prevents repeated failure).
  • A phase completes (state snapshot: what's done, what's next).
  • Something surprising is discovered about the project, tools, or environment.
  • A recurring entity appears (a person, service, convention, or constraint that will matter again).

Format

One fact per file in memory/, kebab-case name, with frontmatter:

---
name: <slug>
description: <one-line summary used for recall relevance>
type: user | feedback | project | reference | failure | decision
date: YYYY-MM-DD
---
<the fact. For feedback/failure: add **Why:** and **How to apply:** lines.
Link related memories with [[slug]].>

After every write, add/update one line in memory/MEMORY.md: - [name](file.md) — hook. The index is the recall surface — a memory missing from the index is lost.

Hygiene

  • Before writing, check for an existing file that covers it — update rather than duplicate.
  • Wrong memories get corrected or deleted immediately; a false memory is worse than none.
  • Convert relative dates ("last week") to absolute before saving.
  • Don't store what the repo already records (code, git history, the plans/decisions files themselves) — store pointers plus the non-obvious part.
  • Never store secrets, credentials, or sensitive personal data.

Read protocol (Phase 0 of every task)

Read memory/MEMORY.md fully; open any entry whose description might touch the task. Memories reflect when they were written — verify stale-looking facts before relying on them.

Consolidation

When the index exceeds ~40 lines or feels noisy: merge duplicates, delete dead facts, cluster related entries. Consolidation is a real task — plan it, don't do it as a side effect.

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.