memory-metadata-search
БесплатноБез исполняемых скриптовНе проверенSearch Basic Memory notes by custom frontmatter fields with equality, range, array, and nested filters. Use when finding notes by status, priority…
от basicmachines-co★ 4 799 звёзд на GitHubОб этом скилле
Memory Metadata Search
Find notes by their structured frontmatter fields instead of (or in addition to) free-text content. Any custom YAML key in a note's frontmatter beyond the standard set (title, type, tags, permalink, schema) is automatically indexed as entity_metadata and becomes queryable.
Project scope
If the project is unknown, discover it with bm_project_list().
Pass a nonempty project on every note, folder, context and schema call, even
with one project or a qualified memory:// URL. Use the chosen project's name,
workspace/project, or external ID; <project> below is a placeholder for it.
Recent activity also requires project. Search accepts project for one
project, projects for selected projects, or all_projects=True explicitly.
Discovery and bundled manuals need no project. Keep the same scope when following
returned paths, paginating, or recovering from a refusal.
When to Use
- Filtering by status or priority — find all notes with
status: draftorpriority: high - Querying custom fields — any frontmatter key you invent is searchable
- Range queries — find notes with
confidence > 0.7orscore between 0.3 and 0.8 - Combining text + metadata — narrow a text search with structured constraints
- Tag-based filtering — find notes tagged with specific frontmatter tags
- Schema-aware queries — filter by nested schema fields using dot notation
The Tool
Use bm_search for ranked results or bm_find for file discovery with selected fields. Pass frontmatter conditions via filters, including tags and status. Omit query (or pass None) for filter-only searches.
Filter Syntax
Filters are a JSON dictionary. Each key targets a frontmatter field; the value specifies the match condition. Multiple keys combine with AND logic.
Equality
{"status": "active"}
Array Contains (all listed values must be present)
{"tags": ["security", "oauth"]}
$in (match any value in list)
{"priority": {"$in": ["high", "critical"]}}
Comparisons ($gt, $gte, $lt, $lte)
{"confidence": {"$gt": 0.7}}
Numeric values use numeric comparison; strings use lexicographic comparison.
$between (inclusive range)
{"score": {"$between": [0.3, 0.8]}}
Null (field missing or explicitly null)
{"owner": null}
Matches notes with no owner key and notes whose owner is explicitly null.
Null works only as a plain equality value — inside $in, $between, an
array-contains list, or a comparison it is rejected, because those compare
against the value and a comparison with null is never true.
Nested Access (dot notation)
{"schema.version": "2"}
Quick Reference
| Operator | Syntax | Example |
|---|---|---|
| Equality | {"field": "value"} |
{"status": "active"} |
| Is null | {"field": null} |
{"owner": null} |
| Array contains | {"field": ["a", "b"]} |
{"tags": ["security", "oauth"]} |
$in |
{"field": {"$in": [...]}} |
{"priority": {"$in": ["high", "critical"]}} |
$gt / $gte |
{"field": {"$gt": N}} |
{"confidence": {"$gt": 0.7}} |
$lt / $lte |
{"field": {"$lt": N}} |
{"score": {"$lt": 0.5}} |
$between |
{"field": {"$between": [lo, hi]}} |
{"score": {"$between": [0.3, 0.8]}} |
$contains |
{"field": {"$contains": value}} |
{"tags": {"$contains": "security"}} |
$exists |
{"field": {"$exists": true}} |
{"owner": {"$exists": false}} |
| Nested | {"a.b": "value"} |
{"schema.version": "2"} |
Rules:
- Keys must match
[A-Za-z0-9_-]+(dots separate nesting levels) - Several operators on one field AND together:
{"started": {"$gte": "2026-01-01", "$lt": "2026-02-01"}} $inand array-contains require non-empty lists$betweenrequires exactly[min, max]nullis an is-null match and only valid as a plain equality value- Comparison and
$betweenbounds must be finite numbers — a magnitude no float can hold (a 400-digit integer, which JSON keeps as an ordinaryint) is refused rather than compared against an infinite bound - Metadata filters match Markdown notes only — indexed PDFs, images and other
regular files carry no frontmatter and are never hits, not even for
null
The leading
$is optional (gteworks), but write it for clarity.
Frontmatter fields say when a note was filed or reviewed. To ask what a note
claims was true on a date, use observation qualifiers (see memory-notes)
and bm_search(valid_at="2026-07-01", project="<project>") or
bm_search(valid_overlaps="[2026-07-01,2026-08-01)", project="<project>").
Using bm_search with Metadata
Pass filters to bm_search. Omit query for filter-only searches, or combine text and filters together.
# Filter-only — find all notes with a given status
bm_search(filters={"status": "in-progress"}, project="<project>")
# Filter-only — high-priorit
Установить memory-metadata-search в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory-metadata-search?
Search Basic Memory notes by custom frontmatter fields with equality, range, array, and nested filters. Use when finding notes by status, priority, confidence, or any YAML field, not free text.
Как установить скилл memory-metadata-search?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-metadata-search запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub