/project-toolkit:memory-searchfrom project-toolkit
Performs tier 1 semantic memory search across the Serena corpus with progressive disclosure and token-budget warnings. Use for recalling prior context, facts, or patterns.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Tier 1 semantic search over memory: the focused search operation extracted from
the memory router per ADR-063 (memory-skill decomposition). memory still
routes here; a caller that needs only search loads this sub-skill instead of the
full memory surface.
Use this skill when the user says:
search memory for semantic search across stored knowledgewhat do we know about X to recall facts, patterns, or constraintsrecall prior context before changing existing code or architecture# Search memory (Tier 1)
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/memory/scripts/search_memory.py "git hooks"; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
# JSON output for scripting
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/memory/scripts/search_memory.py "git hooks" --format json; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
The search script is canonical and shared with the memory router; this
sub-skill does not reimplement it. It lives at
skills/memory/scripts/search_memory.py, which the locator above runs.
| Operation | Script | Key Parameters |
|---|---|---|
| Search facts/patterns | search_memory.py | query, --max-results, --format |
search_memory.py "<q>" keyword-ranks Serena memory names, also searches the
Tier 2 episode store, flags large memories by token estimate, and returns the
relevant *-index. Read that index, then follow its links to
the atomic file.
Raw fallback when scripting: guess read_memory("<intuitive-name>") (a miss is
a cheap "not found", not a list), then the domain *-index, then
read_memory("memory-index"). Prefer these name and index lookups over a bare
list_memories.
This skill implements progressive disclosure: list names, read details, deep dive on cross-references. The point is to avoid loading a large memory when a small slice answers the query.
| Layer | Tool | Cost | When to Use |
|---|---|---|---|
| Index | search_memory.py | ~100-500 tokens | Always start here |
| Details | read_memory | ~500-10K tokens | After index confirms relevance |
| Deep Dive | Follow cross-references | Variable | For complete understanding |
Progressive disclosure prevents loading 9,500 tokens when only 1,200 are relevant. List names first, then read only the entry the query needs.
Search degrades, it does not fail. Serena is the canonical store and travels with the repository as plain markdown, so there is no service to be unreachable and no fallback mode to select. A search that matches nothing returns an empty result list plus a coverage note, never an error (ADR-007).
What do you need?
│
├─► Current facts, patterns, or rules?
│ └─► search_memory.py "<query>"
│
└─► Not sure which tier?
└─► Start here (Tier 1), escalate to the memory router if insufficient
| Operation | Verification |
|---|---|
| Search completed | Result count > 0 OR logged "no results" |
| Empty corpus | Coverage note present; empty result list returned |
| Anti-Pattern | Do This Instead |
|---|---|
| Skipping memory search | Always search before multi-step reasoning |
| Loading full memory eagerly | List names first, read only the relevant entry |
| Assuming a second backend exists | Serena is the only store; there is no semantic tier to fall back from |
Run search_memory.py with the query.
Verify results are non-empty and relevant to the query context. A zero-result search is a valid outcome; log it.
Return the relevant index name and the atomic entries it links, with source attribution, to the caller.
| Skill | When to Use Instead |
|---|---|
memory | Router for episode extraction, health, or maintenance |
memory-enhancement | Add citations, verify code references, track confidence |
curating-memories | Memory maintenance (obsolete, deduplicate, link) |
context-gather | Multi-source gather across Serena, Context7, DeepWiki, and web |
| Symptom | Cause | Recovery |
|---|---|---|
| Zero results | Query too narrow or memory index empty | Broaden query terms; verify memory index contains relevant entries |
| Slow response | Large memory corpus | Lower --max-results; every matched file is read for its preview |
| Partial results | Token budget hit mid-retrieval | Results include coverage note; caller decides whether to continue |
| Extension | How to Add |
|---|---|
| New memory tier | Create sibling sub-skill (e.g., memory-episode); register in memory router |
| Custom search backend | Implement script matching search_memory.py interface; update skill to invoke |
| Result post-processing | Chain output through memory-enhancement for citations or confidence scoring |
These reference files travel with the search operation per ADR-063. They are demand-loaded; read one when you need the detail it covers.
| Document | Content |
|---|---|
| references/quick-start.md | Common search and usage workflows |
| references/memory-router.md | ADR-037 router architecture behind search_memory.py |
| references/api-reference.md | Complete function reference for the memory API |
| references/skill-reference.md | Detailed search_memory.py script parameters |
| references/where-to-search.md | Ordered source list for searching before building, cheapest first |
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (rjmurillo/ai-agents) — no native marketplace selected
npx claudepluginhub p/rjmurillo-copilot-cli-agents-src-copilot-cli104 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator).2 plugins in one repository ship this exact skill · first indexed Nov 13, 2026
Other plugins' skills for the same job