agentleFS
zircotezircote/subcog/skills/memory-capture/SKILL.md

memory-capture

Skill29 starsChanged 9 months agoMITView on GitHub

Capture decisions, learnings, patterns, and context as persistent memories that survive across sessions. Capture Quality Guidelines: - Include context and rationale, not just the decision - Add relevant tags for discoverability - Reference related files or components - Keep content concise but complete </strategy> 1. Detect capture signals in user's message 2. Identify the namespace from context and signal words 3. Extract the core insight - what should be remembered? 4. Enhance with context - why is this important? 5.…

5 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, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    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. Very specific:

    Use mcp__subcog__subcog_capture tool when available

    line 31
  2. Distinctive:

    Add relevant tags for discoverability

    line 36
  3. Distinctive:

    Keep content concise but complete </strategy>

    line 38

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

Capture decisions, learnings, patterns, and context as persistent memories that survive across sessions.

Trigger Phrases

  • "remember this", "capture this", "save this decision"
  • "document that", "log this pattern", "note this learning"
  • "TIL", "gotcha", "we decided", "going with"
  • "this is important", "don't forget"

Quick Reference

NamespaceUse WhenSignal Words
decisionsMaking architectural or design choices"decided", "chose", "going with"
patternsEstablishing recurring practices"always", "never", "when X do Y"
learningsDiscovering something new"TIL", "gotcha", "discovered"
contextRecording background information"because", "constraint", "requirement"
tech-debtNoting future work"TODO", "FIXME", "temporary"
apisDocumenting API contracts"endpoint", "API", "schema"
configRecording configuration details"config", "environment", "setting"
securitySecurity-related information"auth", "vulnerability", "permission"
performancePerformance insights"optimization", "benchmark", "latency"
testingTesting strategies"edge case", "fixture", "coverage"

Execution Strategy

<strategy> **MCP-First Approach:** 1. Use `mcp__subcog__subcog_capture` tool when available 2. Fall back to CLI: `subcog capture --namespace <ns> "<content>"`

Capture Quality Guidelines:

  • Include context and rationale, not just the decision
  • Add relevant tags for discoverability
  • Reference related files or components
  • Keep content concise but complete</strategy>

Interactive Capture Workflow

<workflow> When capturing memories:
  1. Detect capture signals in user's message
  2. Identify the namespace from context and signal words
  3. Extract the core insight - what should be remembered?
  4. Enhance with context - why is this important?
  5. Suggest tags based on content and current work
  6. Confirm with user using AskUserQuestion if uncertain
  7. Execute capture via MCP tool or CLI
  8. Verify success and report the memory ID</workflow>

Capture Templates

<templates> **For decisions:** ``` [Decision]: {what was decided} [Context]: {why this decision was needed} [Alternatives]: {what else was considered} [Rationale]: {why this choice over alternatives} ```

For learnings:

[Discovery]: {what was learned}
[Situation]: {when/how it was discovered}
[Impact]: {why it matters}

For patterns:

[Pattern]: {the practice or convention}
[When]: {situations where it applies}
[Why]: {benefits of following this pattern}
</templates>

MCP Tool Reference

<mcp> **Tool:** `mcp__subcog__subcog_capture`

Parameters:

  • namespace (required): One of the 10 namespaces
  • content (required): The memory content
  • tags (optional): Array of tags for discoverability
  • source (optional): Source reference (file path, URL, etc.)
  • priority (optional): 1-5, higher = more important

Returns:

  • memory_id: Unique identifier
  • urn: Memory URN for reference
  • timestamp: Capture time</mcp>

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.