Skip to content

Lifecycle manager for Picoschema note types that discovers, infers, validates, and tracks drift across the knowledge graph.

CCM score
68 of 100
skills.sh installs
612
GitHub stars
23
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full schema lifecycle: discovering unschemaed notes, inferring schemas, creating and evolving definitions, validating notes, and detecting drift
  • Includes schema_infer, schema_validate, and schema_diff tools plus Picoschema syntax for basic types, optionals, enums, arrays, and relations
  • Enforces observation-based validation, so schema fields must appear as observation categories in note bodies, not only in frontmatter
  • Designed for maintaining structured note types such as Task, Person, and Meeting in Basic Memory knowledge graphs

Install

$ npx -y skills add basicmachines-co/basic-memory-skills --skill memory-schema -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

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

Details

Repository
github.com/basicmachines-co/basic-memory-skills
Categories
Memory & Context, Productivity & Notes
First seen
Jun 3, 2026

Questions

What does the memory-schema skill do?

The memory-schema skill manages schema lifecycles for Basic Memory. It discovers unschemaed notes, infers schemas, creates and edits Picoschema definitions, validates notes, and detects drift for structured note types like Task, Person, and Meeting.

How do I install the memory-schema skill?

Run npx -y skills add basicmachines-co/basic-memory-skills --skill memory-schema -y in your project. This installs the memory-schema skill so your agent can manage schemas for structured notes in Basic Memory.

Who is memory-schema for?

It is for people using Basic Memory who keep structured note types such as meetings, people, or tasks and want them to stay consistent. It helps when a new note type emerges, when notes need validating, or when schema drift appears.

Which category does memory-schema belong to and what sets it apart?

It sits in the Memory and Context category, alongside handoff and caveman-compress. It stands out by focusing on the full schema lifecycle, from inferring a schema from existing notes through validation and drift detection using Picoschema.

More from basicmachines-co/basic-memory-skills

All 10

Similar to Memory Schema

More Memory & Context