memory-schema
БесплатноБез исполняемых скриптовНе проверенManage Basic Memory schemas: find unschemaed notes, infer and edit schemas, validate notes, detect drift. Use when structured note types (Task, Person…
от basicmachines-co★ 4 799 звёзд на GitHubОб этом скилле
Memory Schema
Manage structured note types using Basic Memory's Picoschema system. Schemas define what fields a note type should have, making notes uniform, queryable, and validatable.
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
- New note type emerging — you notice several notes share the same structure (meetings, people, decisions)
- Validation check — confirm existing notes conform to their schema
- Schema drift — detect fields that notes use but the schema doesn't define (or vice versa)
- Schema evolution — add/remove/change fields as requirements evolve
- On demand — user asks to create, check, or manage schemas
Picoschema Syntax Reference
Schemas are defined in YAML frontmatter using Picoschema — a compact notation for describing note structure.
Basic Types
schema:
name: string, person's full name
age: integer, age in years
score: number, floating-point rating
active: boolean, whether currently active
Supported types: string, integer, number, boolean.
Optional Fields
Append ? to the field name:
schema:
title: string, required field
subtitle?: string, optional field
Enums
Use (enum) with a list of allowed values:
schema:
status(enum, current state): [active, blocked, done, abandoned]
Optional enum:
schema:
priority?(enum, task priority): [low, medium, high, critical]
Arrays
Use (array) for list fields:
schema:
tags(array): string, categorization labels
steps?(array): string, ordered steps to complete
Relations
Reference other entity types directly:
schema:
parent_task?: Task, parent task if this is a subtask
attendees?(array): Person, people who attended
Relations create edges in the knowledge graph, linking notes together.
Validation Settings
settings:
validation: warn # warn (log issues) or strict (errors)
Use strict as the canonical enforcing mode. error is accepted only as a compatibility alias.
Complete Example
---
title: Meeting
type: schema
entity: Meeting
version: 1
schema:
topic: string, what was discussed
date: string, when it happened (YYYY-MM-DD)
attendees?(array): Person, who attended
decisions?(array): string, decisions made
action_items?(array): string, follow-up tasks
status?(enum, meeting state): [scheduled, completed, cancelled]
settings:
validation: warn
---
Discovering Unschemaed Notes
Look for clusters of notes that share structure but have no schema:
Search by type:
bm_search(note_types=["meeting"], project="<project>")— if many notes share atypebut noschema/Meeting.mdexists, it's a candidate.Infer a schema: Use
bm_schema_inferto analyze existing notes and generate a suggested schema:bm_schema_infer(note_type="Meeting", project="<project>") bm_schema_infer(note_type="Meeting", threshold=0.5, project="<project>") # fields in 50%+ of notesThe threshold (0.0–1.0) controls how common a field must be to be included. Default is usually fine; lower it to catch rarer fields.
Review the suggestion — the inferred schema shows field names, types, and frequency. Decide which fields to keep, make optional, or drop.
Creating a Schema
Write the schema note to schema/<EntityName>:
bm_write(
title="Meeting",
directory="schema",
note_type="schema",
metadata={
"entity": "Meeting",
"version": 1,
"schema": {
"topic": "string, what was discussed",
"date": "string, when it happened",
"attendees?(array)": "Person, who attended",
"decisions?(array)": "string, decisions made"
},
"settings": {"validation": "warn"}
},
content="""# Meeting
Schema for meeting notes.
## Observations
- [convention] Meeting notes live in memory/meetings/ or as daily entries
- [convention] Always include date and topic
- [convention] Action items should become tasks when complex""",
project="<project>",
)
Key Principles
- Schema notes live in
schema/— one note per entity type note_type="schema"marks it as a schema definitionentity: Meetingin metadata names the type it applies toversion: 1in metadata — increment when making breaking changessettings.validation: warnis recommended to start — it logs issues without block
Установить memory-schema в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory-schema?
Manage Basic Memory schemas: find unschemaed notes, infer and edit schemas, validate notes, detect drift. Use when structured note types (Task, Person, Meeting) need consistency across the graph.
Как установить скилл memory-schema?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-schema запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic