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

memory-recall

Skill29 starsChanged 9 months agoMITView on GitHub

Search and surface relevant memories to inform current work with decisions, patterns, and learnings from past sessions. Search Quality Guidelines: - Start broad, then narrow with namespace filters - Use vector mode for conceptual searches - Use text mode when you know exact terms - hybrid mode (default) works best for most queries </strategy> 1. Understand the intent - what does the user need to know? 2. Identify keywords - extract searchable terms 3. Choose search mode based on query…

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

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search and surface relevant memories to inform current work with decisions, patterns, and learnings from past sessions.

    line 3
  2. Very specific:

    Use mcp__subcog__subcog_recall tool when available

    line 25
  3. Distinctive:

    Start broad, then narrow with namespace filters

    line 29
  4. Very specific:

    Use vector mode for conceptual searches

    line 30
  5. Very specific:

    Use text mode when you know exact terms

    line 31
  6. Distinctive:

    Apply namespace filter: if domain is clear

    line 43

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

Search and surface relevant memories to inform current work with decisions, patterns, and learnings from past sessions.

Trigger Phrases

  • "what did we decide about", "how do we handle"
  • "find memories about", "search for", "recall"
  • "what's our approach to", "what patterns do we use"
  • "any gotchas with", "lessons learned about"
  • "previous decisions on", "remind me"

Quick Reference

Search ModeBest ForExample
hybrid (default)General queries, balanced results"database storage decision"
vectorConceptual similarity, fuzzy matching"how to handle errors gracefully"
textExact terms, specific keywords"PostgreSQL"

Execution Strategy

<strategy> **MCP-First Approach:** 1. Use `mcp__subcog__subcog_recall` tool when available 2. Fall back to CLI: `subcog recall "<query>" --mode <mode> --limit <n>`

Search Quality Guidelines:

  • Start broad, then narrow with namespace filters
  • Use vector mode for conceptual searches
  • Use text mode when you know exact terms
  • hybrid mode (default) works best for most queries</strategy>

Intelligent Search Workflow

<workflow> When searching memories:
  1. Understand the intent - what does the user need to know?
  2. Identify keywords - extract searchable terms
  3. Choose search mode based on query type
  4. Apply namespace filter if domain is clear
  5. Execute search via MCP tool or CLI
  6. Interpret results - explain relevance scores
  7. Synthesize findings - summarize key insights</workflow>

Score Interpretation

<scores> | Score Range | Meaning | Action | |-------------|---------|--------| | 0.9 - 1.0 | Exact or near-exact match | High confidence | | 0.7 - 0.9 | Strong relevance | Good match | | 0.5 - 0.7 | Moderate relevance | Related but may need refinement | | < 0.5 | Low relevance | Try different query | </scores>

Search Strategies by Use Case

<strategies> **Finding a specific decision:** ``` Mode: text or hybrid Namespace: decisions Example: "PostgreSQL storage decision" ```

Finding patterns for a domain:

Mode: vector (conceptual similarity)
Namespace: patterns
Example: "how to handle API errors gracefully"

Debugging help (gotchas):

Mode: hybrid
Namespace: learnings
Example: "authentication token refresh issues"
</strategies>

MCP Tool Reference

<mcp> **Tool:** `mcp__subcog__subcog_recall`

Parameters:

  • query (required): Natural language search query
  • mode (optional): "hybrid" (default), "vector", or "text"
  • namespace (optional): Filter to specific namespace
  • limit (optional): Maximum results (default: 10, max: 50)
  • format (optional): Output format for MIF (Memory Interchange Format)
    • json (default): Single-line JSON-LD for token efficiency
    • detail: Pretty-printed JSON-LD for human readability
    • md: Markdown with YAML frontmatter
    • compact: Single-line JSON for streaming

Returns:

  • Array of memories in the specified MIF format, each including:
    • @id: URN identifier (e.g., urn:mif:memory-id)
    • @type: "Memory"
    • content, namespace, tags, created, modified
    • subcog:score: Relevance score (0.0-1.0)</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.