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…
How to write well-structured Basic Memory notes: frontmatter, categorized observations, wiki-link relations, and knowledge-graph best practices. Use when creating or improving notes.
Claude Code
$ npx -y skills add basicmachines-co/basic-memory --skill memory-notes --agent claude-code
Codex
$ npx skills add basicmachines-co/basic-memory --skill memory-notes -a codex -y
Cursor
$ npx skills add basicmachines-co/basic-memory --skill memory-notes -a cursor -y
Gemini CLI
$ npx skills add basicmachines-co/basic-memory --skill memory-notes -a gemini-cli -y
GitHub Copilot
$ npx skills add basicmachines-co/basic-memory --skill memory-notes -a github-copilot -y
OpenCode
$ npx skills add basicmachines-co/basic-memory --skill memory-notes -a opencode -y
Windsurf
$ npx skills add basicmachines-co/basic-memory --skill memory-notes -a windsurf -y
name: memory-notes description: "How to write well-structured Basic Memory notes: frontmatter, categorized observations, wiki-link relations, and knowledge-graph best practices. Use when creating or improving notes."
Write well-structured notes that Basic Memory can parse into a searchable knowledge graph. Every note is a markdown file with three key sections: frontmatter, observations, and relations.
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.
--- title: API Design Decisions tags: [api, architecture, decisions] --- # API Design Decisions The API team evaluated multiple approaches for the public API during Q1. After prototyping both REST and GraphQL, the team chose REST due to broader ecosystem support and simpler caching semantics. This note captures the key decisions and their rationale, along with open questions still to resolve. ## Observations - [decision] Use REST over GraphQL for simplicity #api - [requirement] Must support versioning from day one - [risk] Rate limiting needed for public endpoints ## Relations - implements [[API Specification]] - depends_on [[Authentication System]] - relates_to [[Performance Requirements]]
Every note starts with YAML frontmatter:
--- title: Note Title # required — becomes the entity name in the knowledge graph tags: [tag1, tag2] # optional — for organization and filtering type: note # optional — defaults to "note", use custom types with schemas permalink: custom-path # optional — auto-generated from title if omitted ---
> **Note:** `bm_write` accepts an exact file path as `identifier`, or `title` + `directory`. `content` may include YAML frontmatter; alternatively, supply `title`, `tags`, `note_type`, and `metadata` separately and let Basic Memory generate it. For an overwrite, use the `file_path` returned by `bm_read` as `identifier` and pass its `checksum` as `expected_checksum`.
Free-form markdown between the heading and the Observations section. This is the heart of the note — write generously here:
Write complete, substantive prose. Basic Memory's search retrieves relevant chunks from note bodies, so longer, richer context makes notes more discoverable and more useful when found. Don't reduce everything to bullet points — tell the story.
Observations are categorized facts — the atomic units of knowledge. Each one becomes a searchable entity in the knowledge graph.
- [category] Content of the observation #optional-tag
The category in brackets is free-form — use whatever label makes sense for the observation. There is no fixed list. The only rule is the `[category] content` syntax. Consistency within a project helps searchability, but invent categories freely.
A few examples to illustrate the range:
- [decision] Use PostgreSQL for primary data store - [risk] Third-party API has no SLA guarantee - [technique] Exponential backoff for retry logic #resilience - [question] Should we support multi-tenancy at the DB level? - [preference] Use Bun over Node for new projects - [lesson] Always validate webhook signatures server-side - [status] active - [flavor] Ethiopian beans work best with lighter roasts
An observation can say when it is true. Put a qualifier after the category:
- [decision] @effective:2026-06-10 The cache layer uses Redis - [event] @occurred:2026-10-14 Launch sync moved the date to Thursday - [deadline] @due:2026-10-20 Draft ready for review - [stage] @valid:2026-10 Series B, about 200 employees - [decision] @effective[2026-06-10,2026-10-14) Launch on Friday
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…