← Basic Memory CloudCONTENT HISTORYWHAT CHANGED · RULE-BASED ANALYSIS
Update to Basic Memory Cloud
Snapshot Sep 30, 2026 · 22:48 UTC · version 2.0.0
Collection source: not recorded for this historical snapshot.
First saved snapshot
No earlier snapshot is available to establish a change.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"name": "memory-notes",
"description": "How to write well-structured Basic Memory notes: frontmatter, observations with semantic categories, relations with wiki-links, and best practices for building a rich knowledge graph. Use when creating or improving notes.",
"included_files": [
{
"relative_path": "agents/openai.yaml",
"size_in_bytes": 389
}
],
"skill_md_contents": "---\nname: memory-notes\ndescription: \"How to write well-structured Basic Memory notes: frontmatter, observations with semantic categories, relations with wiki-links, and best practices for building a rich knowledge graph. Use when creating or improving notes.\"\n---\n\n# Memory Notes\n\nWrite 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.\n\n## Note Anatomy\n\n```markdown\n---\ntitle: API Design Decisions\ntags: [api, architecture, decisions]\n---\n\n# API Design Decisions\n\nThe API team evaluated multiple approaches for the public API during Q1. After\nprototyping both REST and GraphQL, the team chose REST due to broader ecosystem\nsupport and simpler caching semantics. This note captures the key decisions and\ntheir rationale, along with open questions still to resolve.\n\n## Observations\n- [decision] Use REST over GraphQL for simplicity #api\n- [requirement] Must support versioning from day one\n- [risk] Rate limiting needed for public endpoints\n\n## Relations\n- implements [[API Specification]]\n- depends_on [[Authentication System]]\n- relates_to [[Performance Requirements]]\n```\n\n### Frontmatter\n\nEvery note starts with YAML frontmatter:\n\n```yaml\n---\ntitle: Note Title # required — becomes the entity name in the knowledge graph\ntags: [tag1, tag2] # optional — for organization and filtering\ntype: note # optional — defaults to \"note\", use custom types with schemas\npermalink: custom-path # optional — auto-generated from title if omitted\n---\n```\n\n- The `title` must match the `# Heading` in the body\n- Tags are searchable and help with discovery\n- Custom `type` values (Task, Meeting, Person, etc.) work with the schema system. See the **memory-schema** skill for defining schemas, validating notes against them, and detecting drift.\n- The `permalink` is auto-generated from the `title` and `directory`. For example, title \"API Design Decisions\" in directory \"specs\" produces permalink `specs/api-design-decisions` and memory URL `memory://specs/api-design-decisions`. If no directory is specified, the permalink is just the kebab-cased title. Permalinks stay stable across file moves. You rarely need to set one manually.\n\n> **Note:** When using `write_note`, you don't write frontmatter yourself. The `title`, `tags`, `note_type`, and `metadata` are separate parameters — Basic Memory generates the frontmatter automatically. Your `content` parameter is just the markdown body starting with `# Heading`.\n\n### Body / Context\n\nFree-form markdown between the heading and the Observations section. This is the heart of the note — write generously here:\n- Background, motivation, and history\n- Detailed explanation of what happened and why it matters\n- Analysis, reasoning, and trade-offs considered\n- Context that someone (or an AI) needs to understand this note later\n\nWrite 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.\n\n## Observations\n\nObservations are categorized facts — the atomic units of knowledge. Each one becomes a searchable entity in the knowledge graph.\n\n### Syntax\n\n```\n- [category] Content of the observation #optional-tag\n```\n\n- **Square brackets** define the semantic category\n- **Content** is the fact, decision, insight, or note\n- **Hash tags** (optional) add extra metadata for filtering\n\n### Categories Are Arbitrary\n\nThe 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.\n\nA few examples to illustrate the range:\n\n```\n- [decision] Use PostgreSQL for primary data store\n- [risk] Third-party API has no SLA guarantee\n- [technique] Exponential backoff for retry logic #resilience\n- [question] Should we support multi-tenancy at the DB level?\n- [preference] Use Bun over Node for new projects\n- [lesson] Always validate webhook signatures server-side\n- [status] active\n- [flavor] Ethiopian beans work best with lighter roasts\n```\n\n### Observation Tips\n\n- **One fact per observation.** Don't pack multiple ideas into one line.\n- **Be specific.** `[decision] Use JWT` is less useful than `[decision] Use JWT with 15-minute expiry for API auth`.\n- **Use tags for cross-cutting concerns.** `[risk] Rate limiting needed #api #security` makes this findable under both topics.\n- **Categories are queryable.** `search_notes(\"[decision]\")` finds all decisions across your knowledge base.\n\n## Relations\n\nRelations create edges in the knowledge graph, linking notes to each other. They're how you build structure beyond individual notes.\n\n### Syntax\n\n```\n- relation_type [[Target Note Title]]\n```\n\n- **relation_type** is a descriptive verb or phrase (snake_case by convention)\n- **Double brackets** `[[...]]` identify the target note by title or permalink\n- Relations are directional: this note → target note\n\n### Relation Types\n\n| Type | Purpose | Example |\n|------|---------|---------|\n| `implements` | One thing implements another | `- implements [[Auth Spec]]` |\n| `requires` | Dependencies | `- requires [[Database Setup]]` |\n| `relates_to` | General connection | `- relates_to [[Performance Notes]]` |\n| `part_of` | Hierarchy/composition | `- part_of [[Backend Architecture]]` |\n| `extends` | Enhancement or elaboration | `- extends [[Base Config]]` |\n| `pairs_with` | Things that work together | `- pairs_with [[Frontend Client]]` |\n| `inspired_by` | Source material | `- inspired_by [[CRDT Research Paper]]` |\n| `replaces` | Supersedes another note | `- replaces [[Old Auth Design]]` |\n| `depends_on` | Runtime/build dependency | `- depends_on [[MCP SDK]]` |\n| `contrasts_with` | Alternative approaches | `- contrasts_with [[GraphQL Approach]]` |\n\n### Inline Relations\n\nWiki-links anywhere in the note body — not just the Relations section — also create graph edges:\n\n```markdown\nWe evaluated [[GraphQL Approach]] but decided against it because\nthe team has more experience with REST. See [[API Specification]]\nfor the full contract.\n```\n\nThese create `references` relations automatically. Use the Relations section for explicit, typed relationships; use inline links for natural prose references.\n\n### Relation Tips\n\n- **Link liberally.** Relations are what turn isolated notes into a knowledge graph. When in doubt, add the link.\n- **Create target notes if they don't exist yet.** `[[Future Topic]]` is valid — BM will resolve it when that note is created.\n- **Use `build_context` to traverse.** `build_context(url=\"memory://note-title\")` follows relations to gather connected knowledge.\n- **Custom relation types are fine.** `taught_by`, `blocks`, `tested_in` — use whatever is descriptive.\n\n## Memory URLs\n\nEvery note is addressable via a `memory://` URL, built from its permalink. These URLs are how you navigate the knowledge graph programmatically.\n\n### URL Patterns\n\n```\nmemory://api-design-decisions # by permalink (title → kebab-case)\nmemory://docs/authentication # by file path\nmemory://docs/authentication.md # with extension (also works)\nmemory://auth* # wildcard prefix\nmemory://docs/* # wildcard suffix\nmemory://project/*/requirements # path wildcards\n```\n\n### Project-Scoped URLs\n\nIn multi-project setups, prefix with the project name:\n\n```\nmemory://main/specs/api-design # \"main\" project, \"specs/api-design\" path\nmemory://research/papers/crdt # \"research\" project\n```\n\nThe first path segment is matched against known project names. If it matches, it's used as the project scope. Otherwise the URL resolves in the default project.\n\n### Using Memory URLs\n\nMemory URLs work with `build_context` to assemble related knowledge by traversing relations:\n\n```python\n# Get a note and its connected context\nbuild_context(url=\"memory://api-design-decisions\")\n\n# Wildcard — gather all docs\nbuild_context(url=\"memory://docs/*\")\n\n# Direct read by permalink\nread_note(identifier=\"memory://api-design-decisions\")\n```\n\n## Before Creating a Note\n\nAlways search Basic Memory before creating a new note. Duplicates fragment your knowledge graph — updating an existing note is almost always better than creating a second one.\n\n### Search with Multiple Variations\n\nA single search often misses. Try the full name, abbreviations, acronyms, and keywords:\n\n```python\n# Searching for an entity that might already exist\nsearch_notes(query=\"Kubernetes Migration\")\nsearch_notes(query=\"k8s migration\")\nsearch_notes(query=\"container migration\")\n```\n\nFor people, try full name and last name. For organizations, try the full name and common abbreviations.\n\n### Decision Tree\n\n- **Entity exists** → Update it with `edit_note` (append observations, add relations, find-and-replace outdated info)\n- **Entity doesn't exist** → Create it with `write_note`\n- **Unsure if it's the same entity** → Read the existing note first, then decide\n\n### Granular Updates with `edit_note`\n\nWhen a note already exists, make targeted edits instead of rewriting the whole file:\n\n```python\n# Append a new observation to an existing note\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"append\",\n section=\"Observations\",\n content=\"- [decision] Switched to OpenAPI 3.1 for spec generation #api\"\n)\n\n# Fix outdated information\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"find_replace\",\n find_text=\"- [status] draft\",\n content=\"- [status] approved\"\n)\n\n# Add a new relation\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"append\",\n section=\"Relations\",\n content=\"- depends_on [[Rate Limiter]]\"\n)\n```\n\nThis preserves existing content and keeps the edit history clean.\n\n## Writing Notes with Tools\n\n### Creating a Note\n\n```python\nwrite_note(\n title=\"API Design Decisions\",\n directory=\"architecture\",\n tags=[\"api\", \"architecture\"],\n content=\"\"\"# API Design Decisions\n\nThe API team evaluated REST and GraphQL during Q1 planning. After prototyping\nboth approaches, we chose REST for the public API — broader ecosystem support,\nsimpler caching with HTTP semantics, and a lower learning curve for external\nconsumers. GraphQL remains an option for internal services where query\nflexibility matters more.\n\n## Observations\n- [decision] Use REST for public API #api\n- [requirement] Support API versioning from v1\n\n## Relations\n- implements [[API Specification]]\n- relates_to [[Backend Architecture]]\"\"\"\n)\n```\n\nBasic Memory auto-generates frontmatter (including the permalink and memory URL) from the parameters. This note would get permalink `architecture/api-design-decisions` and be addressable at `memory://architecture/api-design-decisions`.\n\n### Editing an Existing Note\n\nUse `edit_note` to update a note in place — four operations:\n\n```python\n# append / prepend — add to the end or start (use for time-ordered logs)\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"append\",\n section=\"Observations\",\n content=\"- [decision] Use OpenAPI 3.1 for spec generation #api\"\n)\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"prepend\",\n content=\"> Updated 2026-05-28: auth approach finalized.\\n\"\n)\n\n# replace_section — rewrite a named section (use for living content that stays current)\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"replace_section\",\n section=\"Summary\",\n content=\"Concise, current summary of the decision and its rationale.\"\n)\n\n# find_replace — swap specific text\nedit_note(\n identifier=\"API Design Decisions\",\n operation=\"find_replace\",\n find_text=\"OpenAPI 3.0\",\n content=\"OpenAPI 3.1\"\n)\n```\n\nWhen an edit is destructive (`replace_section`, `find_replace`), it's good practice to\nread the note first and confirm the change before applying it.\n\n### Moving a Note\n\nUse `move_note` to reorganize notes into different directories:\n\n```python\nmove_note(\n identifier=\"API Design Decisions\",\n destination_path=\"archive/api-design-decisions.md\"\n)\n```\n\nThe permalink stays the same after a move, so all `[[wiki-links]]` and `memory://` URLs continue to resolve.\n\n## Best Practices\n\n1. **Start with context.** Before listing observations, explain *why* this note exists. Future-you (or your AI collaborator) will thank you.\n\n2. **Favor completeness.** Write rich, substantive notes. Basic Memory's search pulls relevant chunks from note bodies, so longer notes with more context are *more* discoverable, not less. Use prose in the body to tell the full story — the background, the reasoning, the nuance. Then distill key facts into `[category] content` observations for structured queries. Both matter: prose gives meaning, observations give precision.\n\n3. **Build incrementally.** Add to existing notes rather than creating duplicates. Use `edit_note` to append new observations or relations as you learn more.\n\n4. **Review AI-generated content.** When an AI writes notes for you, review them for accuracy. The AI captures structure well but may miss nuance.\n\n5. **Use consistent titles.** Note titles are identifiers in the knowledge graph. `API Design Decisions` and `Api Design decisions` are different entities. Pick a convention and stick with it.\n\n6. **Link related concepts.** The value of a knowledge graph compounds with connections. A note with zero relations is an island — useful, but not as powerful as a connected one.\n\n7. **Let the graph grow naturally.** Don't try to design a perfect taxonomy upfront. Write notes as you work, add relations as connections emerge, and periodically use `/reflect` or `/defrag` to consolidate.\n"
}SHA-256: 16da60c3a6810ece86c12f9a27c55a9e436d8192193485cb423c80611c4f919a