memory-metadata-search — Claude Code skill: metadata search
Search Basic Memory notes by YAML frontmatter fields, from status and tags to nested values. Useful when a text query alone cannot narrow the results.
npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a claude-codeWhat memory-metadata-search does
This skill lets you filter Basic Memory notes using their frontmatter. Match a field exactly, test a numeric range, check array values, or target a nested key. Multiple conditions are combined with AND, and custom YAML keys can be queried too.
Use bm_search for ranked matches or bm_find to locate files with selected fields. Filters can stand alone or narrow a text search. There’s a firm boundary: metadata filters apply to Markdown notes, so PDFs and images won’t appear as matches.
What it helps with
- find notes by status or priority
- select notes above a numeric threshold
- filter by tags or nested YAML keys
- narrow a text search with frontmatter conditions
Example prompts for the agent
- Find notes whose status is
draftand priority is high. - Show notes with
confidencegreater than0.7. - Search for notes tagged
securityandoauthwith active status.
How to install memory-metadata-search
1Skills CLI (Vercel)
npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a claude-code2Manually: put the files in place
~/.claude/skills/memory-metadata-search/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/memory-metadata-search/
1Skills CLI (Vercel)
npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a codex2Manually: put the files in place
.agents/skills/memory-metadata-search/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a cursor2Manually: put the files in place
.cursor/skills/memory-metadata-search/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install basicmachines-co/basic-memory memory-metadata-search2Manually: put the files in place
.github/skills/memory-metadata-search/SKILL.md1Skills CLI (Vercel)
npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a gemini-cli2Platform CLI
gemini skills install https://github.com/basicmachines-co/basic-memory --path skills/memory-metadata-searchManually: put the files in place
.devin/skills/memory-metadata-search/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about memory-metadata-search
How do I install memory-metadata-search in Claude Code?
Run npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a claude-code. The skill file is at ~/.claude/skills/memory-metadata-search/SKILL.md.
What does memory-metadata-search do?
It searches Basic Memory notes using YAML frontmatter values, including custom fields. You can combine those filters with a text query.
Can it find PDFs by their metadata fields?
No. Metadata filters match Markdown notes; PDFs, images, and other regular files are not returned by these searches.