basic-memory-pi-setup
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status shows no project, recall returns…
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.
Claude Code
$ npx -y skills add basicmachines-co/basic-memory --skill memory-schema --agent claude-code
Codex
$ npx skills add basicmachines-co/basic-memory --skill memory-schema -a codex -y
Cursor
$ npx skills add basicmachines-co/basic-memory --skill memory-schema -a cursor -y
Gemini CLI
$ npx skills add basicmachines-co/basic-memory --skill memory-schema -a gemini-cli -y
GitHub Copilot
$ npx skills add basicmachines-co/basic-memory --skill memory-schema -a github-copilot -y
OpenCode
$ npx skills add basicmachines-co/basic-memory --skill memory-schema -a opencode -y
Windsurf
$ npx skills add basicmachines-co/basic-memory --skill memory-schema -a windsurf -y
name: memory-schema description: "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."
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.
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.
Schemas are defined in YAML frontmatter using Picoschema — a compact notation for describing note structure.
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`.
Append `?` to the field name:
schema: title: string, required field subtitle?: string, optional field
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]
Use `(array)` for list fields:
schema: tags(array): string, categorization labels steps?(array): string, ordered steps to complete
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.
settings: validation: warn # warn (log issues) or strict (errors)
Use `strict` as the canonical enforcing mode. `error` is accepted only as a compatibility alias.
--- 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 ---
Look for clusters of notes that share structure but have no schema:
1. **Search by type**: `bm_search(note_types=["meeting"], project="<project>")` — if many notes share a `type` but no `schema/Meeting.md` exists, it's a candidate.
2. **Infer a schema**: Use `bm_schema_infer` to 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 notes
The 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.
3. **Review the suggestion** — the inferred schema shows field names, types, and frequency. Decide which fields to keep, make optional, or drop.
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>",
)Check how well existing notes conform to their schema:
# Validate all notes of a type bm_schema_validate(note_type="Meeting", project="<project>") # Validate a single note bm_schema_validate(identifier="meetings/2026-02-10-standup", project="<project>")
**Important:** `bm_schema_validate` checks for schema fields as **observation categories** in the note body — e.g., a `status` field expects `- [status] active` as an observation. Fields stored only in frontmatter metadata won't satisfy validation. To pass cleanly, include schema fields as both frontmatter values (for metadata search) and observations (for schema validation).
Validation reports **missing required fields** (as observation categories, o
AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status shows no project, recall returns…
Use Basic Memory from Pi for durable continuity. Capture checkpoints with bm_capture, recall prior Pi checkpoints with bm_recall,…
Guide Basic Memory setup in Tau. Use when a user wants to install or configure the Tau memory extension, choose a memory…
Save a deliberate work checkpoint to Basic Memory with the story, changed files, verification, decisions, blockers, and the next…
Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…
Orient Claude from Basic Memory before substantial repo work by reading active tasks, open decisions, recent checkpoints, and…
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…