Back to Skills

mem-search

verified

Search the Claude Code knowledge base for errors, solutions, decisions, and patterns. Use this to find information from your memory system.

View on GitHub

Marketplace

cc-obsidian-mem

Z-M-Huang/cc-obsidian-mem

Plugin

cc-obsidian-mem

Repository

Z-M-Huang/cc-obsidian-mem
8stars

plugin/skills/mem-search/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/Z-M-Huang/cc-obsidian-mem/blob/main/plugin/skills/mem-search/SKILL.md -a claude-code --skill mem-search

Installation paths:

Claude
.claude/skills/mem-search/
Powered by add-skill CLI

Instructions

# Memory Search Skill

Search your Claude Code knowledge base to find relevant information.

## When to Use

- Finding how a previous error was solved
- Recalling decisions made about the codebase
- Looking up patterns used before
- Getting context about a file's history
- Finding knowledge and learnings

## Usage

The skill accepts a natural language query. Examples:

```
/mem-search authentication error fix
/mem-search database schema decisions
/mem-search how did we handle caching
/mem-search API rate limiting patterns
```

## Workflow

1. **Analyze the Query**
   - Determine if they're looking for an error, decision, pattern, or general info
   - Identify any project context

2. **Search Strategy**
   - Use `mem_search` with appropriate filters
   - For errors: filter by `type: error`
   - For decisions: filter by `type: decision`
   - For patterns: filter by `type: pattern`
   - For knowledge: filter by `type: learning`

3. **Present Results**
   - Show a summary of top matches
   - Show title, type, and path for each result
   - Offer to show full details with `mem_read`

## Output Format

Present results clearly:

```markdown
## Found X results for "query"

### [Title]
**Type**: type | **Path**: `path/to/note.md`
**Project**: project-name

---

Would you like me to show the full details of any of these?

Note: Search returns lightweight results. Use mem_read for full note content.
```

## Advanced Usage

If the user wants project-wide context:
```
mem_project_context({ project: "project-name" })
```

This returns unresolved errors, active decisions, and patterns for the project.

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1562 chars