agentleFS
vasilievyakovvasilievyakov/miracle-infrastructure/skills/search-memory/SKILL.md

search-memory

Skill17 starsChanged 9 months agoMITView on GitHub

Search project memory: observations, decisions, problems. Query by type, file, concept, date. Use when: (1) "What decisions did we make about auth?", (2) "All bugs in project X", (3) "What do we know about caching?", (4) "Open problems across all projects". Triggers: "/search-memory", "search memory", "what do we know about".

2 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

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

    If project: is specified, search only that project

    line 46
  2. Distinctive:

    If not specified, search all projects

    line 47
  3. Distinctive:

    All observations affecting that file.

    line 128
  4. Distinctive:

    Progressive disclosure: always start with the index, load details only for matches

    line 134
  5. Distinctive:

    Maximum 20 results: If more, show first 20 and state how many remain

    line 137

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

Search Memory

Searches observations and dossiers across all projects. Like type:decision file:auth.ts from structured memory systems, with zero external dependencies.


Query Syntax

Supports filter combinations:

FilterExampleSearches
Free textcachingSummary and details across all observations
type:type:decisionBy type: decision, bugfix, feature, discovery, problem
project:project:my-appWithin a specific project
file:file:auth.tsBy affected files
date:date:2026-02By date (year-month or year-month-day)
status:status:openOpen problems (problem without resolution)

Example queries

/search-memory type:decision caching
/search-memory project:my-app type:problem
/search-memory file:dashboard
/search-memory type:problem status:open
/search-memory date:2026-02 type:feature
/search-memory what do we know about websockets

Search Algorithm

Step 1: Determine scope

  • If project: is specified, search only that project
  • If not specified, search all projects

Step 2: Load indexes

For each project in scope:

Read ~/.claude/memory/projects/{project}.observations.md

Parse only the Index table first (progressive disclosure: do not load Details).

Step 3: Filter by index

Apply filters to index rows:

  • type: matches the Type column
  • date: matches the Date column
  • file: matches the Files column
  • Free text matches the Summary column

Step 4: Load details (on demand)

For matched entries, load the Details section only for those matches.

This is progressive disclosure: index costs ~40 tokens per entry, details cost ~150 tokens. With 100 observations, savings: 4,000 tokens instead of 15,000.

Step 5: Also search dossiers

Additionally check {project}.md dossier files:

  • "Decisions Made" section
  • "Unresolved Problems" section
  • "Next Steps" section

Output Format

## Search results: "{query}"
Found: {N} observations in {M} projects

### project-name ({n} matches)
| # | Date | Type | Summary |
|---|------|------|---------|
| 3 | 2026-01-02 | problem | Scraping too expensive |

**[3] Details:**
Before: High bills
After: Not resolved
Files: scheduler/*, worker/*

### another-project ({n} matches)
...

Special Queries

"All open problems"

/search-memory type:problem status:open

Finds all entries of type problem where Details does not contain "Status: Resolved".

"What do we know about X?"

/search-memory {concept}

Searches all fields: summary, details, files. Also checks dossiers.

"Decision history for project"

/search-memory project:my-app type:decision

Chronological list of all decisions with before/after context.

"What changed in file X?"

/search-memory file:dashboard_api.py

All observations affecting that file.


Important

  • Progressive disclosure: always start with the index, load details only for matches
  • Sort results by date (newest first)
  • If nothing found, say so directly. Do not make things up
  • Maximum 20 results. If more, show first 20 and state how many remain

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.