agentleFS
ambient-codeambient-code/platform/skills/memory/SKILL.md

memory

Skill131 starsChanged 6 months agoMITView on GitHub

Manage the auto-memory system for this project. Search, audit, prune, and create memories with proper frontmatter. Use when you need to find a past decision, check if memories are stale, clean up duplicates, add a new memory, or understand what context is available. Triggers on: "check memory", "what do we remember about", "find the memory about", "clean up memories", "audit memories", "add to memory", "is there a memory for".

99 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 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.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • Maliot100XSkill

    send-user-message

    Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.

    Also in 4 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • +6 more from naman10parikh
  • +1 more from jh941213

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All memory files live at:

    line 36
  2. Very specific:

    Use the active project's slug (the repo path with / replaced by -).

    line 41
  3. Very specific:

    Read MEMORY.md to get the index

    line 49
  4. Very specific:

    Read MEMORY.md for the index

    line 56
  5. Distinctive:

    Read matching files and show relevant excerpts

    line 58
  6. Distinctive:

    Check for quality issues:

    line 63
  7. Distinctive:

    Run the audit checks

    line 76
  8. Very specific:

    Update MEMORY.md index accordingly

    line 80
  9. Distinctive:

    Never delete without explicit confirmation.

    line 82
  10. Distinctive:

    Ask the user what they want to remember (if not clear from context)

    line 86
  11. Distinctive:

    Create a new file with proper frontmatter:

    line 88
  12. Very specific:

    Add an entry to MEMORY.md

    line 100
  13. Distinctive:

    Verify the entry was added correctly

    line 101
  14. Very specific:

    Keep MEMORY.md under 200 lines (truncation risk)

    line 124
  15. Distinctive:

    Update existing memories rather than creating duplicates

    line 126

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

Manage the auto-memory system for the Ambient Code Platform project.

Usage

/memory                    # Show summary of all memories
/memory search <query>     # Search for a topic
/memory audit              # Check for stale/duplicate memories
/memory prune              # Remove stale memories (with confirmation)
/memory add <topic>        # Create a new memory

User Input

$ARGUMENTS

Parse the subcommand from $ARGUMENTS. Default to summary if empty.

Memory Location

All memory files live at:

$HOME/.claude/projects/<project-slug>/memory/

Use the active project's slug (the repo path with / replaced by -).

The index file is MEMORY.md in that directory.

Subcommands

/memory — Summary

  1. Read MEMORY.md to get the index
  2. Count total memories by type (user, feedback, project, reference)
  3. List the most recently modified files
  4. Report: total count, breakdown by type, last modified dates

/memory search <query>

  1. Read MEMORY.md for the index
  2. Grep through all memory files for the query term
  3. Read matching files and show relevant excerpts
  4. Report: matching files with frontmatter (name, type, description)

/memory audit

Check for quality issues:

  1. Stale memories — project/reference memories older than 3 months may be outdated
  2. Duplicate memories — similar names or descriptions across files
  3. Missing frontmatter — files without proper name, description, type fields
  4. Orphaned files — memory files not referenced in MEMORY.md
  5. Broken links — MEMORY.md entries pointing to nonexistent files
  6. Oversized index — MEMORY.md approaching the 200-line truncation limit

Report each issue with the file path and suggested action.

/memory prune

  1. Run the audit checks
  2. Present findings to the user
  3. For each stale/duplicate/orphaned memory, ask: keep, update, or delete?
  4. Execute confirmed deletions
  5. Update MEMORY.md index accordingly

Never delete without explicit confirmation.

/memory add <topic>

  1. Ask the user what they want to remember (if not clear from context)
  2. Determine the memory type (user, feedback, project, reference)
  3. Create a new file with proper frontmatter:
---
name: <descriptive name>
description: <one-line description for relevance matching>
type: <user|feedback|project|reference>
---

<memory content>
  1. Add an entry to MEMORY.md
  2. Verify the entry was added correctly

Memory Types

TypeWhat to storeWhen to save
userRole, preferences, knowledgeLearning about the user
feedbackCorrections, validated approachesUser corrects or confirms approach
projectDecisions, initiatives, deadlinesLearning project context
referencePointers to external systemsDiscovering external resources

What NOT to Store

  • Code patterns derivable from reading current code
  • Git history (use git log)
  • Debugging solutions (the fix is in the code)
  • Anything in CLAUDE.md
  • Ephemeral task details
  • Secrets or credentials (API keys, tokens, passwords, private keys, OAuth secrets)
  • Sensitive personal data unless explicitly required

Quality Guidelines

  • Keep MEMORY.md under 200 lines (truncation risk)
  • Each entry: one line, under 150 characters
  • Update existing memories rather than creating duplicates
  • Include absolute dates (not "next Thursday")
  • For feedback/project types: include Why: and How to apply: lines

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.