schema-author
What it does
This skill changes the set of page types your brain uses. It can add new types, label older pages that have no type, and check that the setup is healthy.
When to use it
- βWhen you want to add a new page type, such as researcher or contract, to your brain.
- βWhen you have many pages with no type and want them organized.
- βWhen your brain does not recognize a kind of entity you use often.
Skill link
https://github.com/garrytan/gbrain/blob/master/plugin/skills/schema-author/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAdd a researcher page type to my brain, then label the untyped pages under my meetings folder.β
5 new skills a week. 1 minute to read.
How it works
The agent reviews the current set of page types and proposes changes. It updates the type list and labels existing pages, and it checks the overall health of the setup afterward.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
schema-author β evolve your schema pack
Non-goals (use these other skills instead)
This skill AUTHORS the schema pack (adds page types, link verbs, prefixes, flags). For these adjacent jobs, route elsewhere:
- Filing one specific page β
skills/brain-taxonomist/SKILL.md. Brain- taxonomist routes at WRITE TIME ("where does this note go?"). schema-author changes the rules at AUTHORING TIME ("what types and prefixes exist?"). - Schema-check as part of EIIRP iteration β
skills/eiirp/SKILL.mdalready has a schema-check phase. Don't duplicate. - Just looking up a type's settings β
gbrain schema explain <type>directly. This skill is for CHANGING the pack, not READING from it. - Querying who knows about X β
gbrain whoknows <topic>directly. schema-author makes a type expert-routable; it does not run the query.
Convention
Convention: see conventions/brain-first.md for the lookup chain (search β query β get_page β external).
Convention: see conventions/schema-evolution.md for "when to add a type vs alias vs prefix" β the heuristic.
When to invoke
Invoke when the user (or a sibling skill) says any of:
- "Add a
researchertype to my schema" - "I have 4000 untyped pages under
meetings/" - "My brain doesn't know that
journal-articleis a type" - "Set
paperto be extractable" - "Propose types from what I've ingested"
- "Sync the new types to backfill existing pages"
DON'T invoke for "where does THIS note go" (use brain-taxonomist) or
"who knows about X" (use expert-routing / gbrain whoknows).
Tutorial + vision
- Why this matters:
docs/what-schemas-unlock.mdβ 7 killer use cases (4000 invisible meetings made queryable, founder ops brain, research brain, legal brain, team brain, agent-as-co-curator) plus the structural argument for why types matter at query time. Read this before pitching schema authoring to a user β it's the doc that explains the difference between a pile of notes and a brain with structure. - 5-minute walkthrough:
docs/schema-author-tutorial.mdβ fork the bundled pack, add a researcher type, sync, prove the T1.5 wiring viagbrain whoknows. Use placeholder pages so it runs against any brain without affecting real content.
Workflow
Phase 1 β Brain (know which pack is active)
gbrain schema active --json
Output gives you pack_name, version, sha8, page_types_count, source_tier.
If source_tier === "default", the user is on bundled gbrain-base and any
mutation will need a fork first (Phase 4).
Phase 2 β Assess (what does the current pack cover?)
gbrain schema stats --json
Returns per-type page counts, untyped count, and dead_prefixes (pack-
declared prefixes with zero matching pages β probable mis-declarations).
If coverage < 90%, there's untyped content worth typing.
gbrain schema review-orphans --json
Untyped pages drilldown. Look for shared path prefixes (e.g. "12 of these
are under research/papers/") β those are candidates for a new type.
Phase 3 β Propose (what types should the pack add?)
gbrain schema detect --json
Clusters pages by source_path and proposes candidate types. Heuristic
only (no LLM call).
gbrain schema suggest --json
LLM-refined candidates with confidence scores. Use the top-3 hit rate as the signal for which to promote.
Phase 4 β Apply (mutate the pack)
If the active pack is bundled (gbrain-base or gbrain-recommended),
fork it first:
gbrain schema fork gbrain-base mine
gbrain schema use mine
Then add the types one at a time:
gbrain schema add-type researcher \
--primitive entity \
--prefix people/researchers/ \
--extractable \
--expert
For complex multi-mutation refactors (e.g. add a type AND the link verb
that points to it), agents reaching this surface over MCP can use the
batched schema_apply_mutations op:
{"op": "add_type", "name": "researcher", "primitive": "entity", "prefix": "people/researchers/", "extractable": true, "expert_routing": true}
{"op": "add_type", "name": "paper", "primitive": "annotation", "prefix": "research/papers/", "extractable": true}
{"op": "add_link_type", "name": "authored", "inference": {"page_type": "researcher", "
FAQ
Is this for reading my current types?
No. To just look up a type's settings, a simpler command is enough.
Does it file individual pages?
No. That job belongs to the filing skill, which decides where a single new page goes.
When should I add a type instead of an alias?
The skill follows a guide that explains when a new type, an alias, or a prefix is the right choice.
Details
Original description by the author
Evolve your brain's schema pack. Add page types, propose new ones from corpus scans, backfill page.type on existing pages, audit pack health. Triggers when an agent notices untyped pages, custom domains needing typed entities (researcher, contract, deposition), or wants to see what types the pack declares.
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9309
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-ingest-gate
31kChecks new content against an existing knowledge brain before it is added, to avoid duplicates and resolve named entities first.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.