schema-author
Skill by garrytan
Evolves a gbrain schema pack by adding page types, proposing new ones from corpus scans, and backfilling page types on existing pages. Aimed at users who run a gbrain brain with custom domains.
Install schema-author
Built from the published package, never by AI.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/schema-author ~/.claude/skills/schema-authorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/schema-author ~/.gemini/antigravity-cli/skills/schema-authorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
schema-author is an agent skill for changing a gbrain schema pack. It covers adding and removing page types, link verbs, prefixes and flags, and proposing new types from clusters of untyped pages. The skill guides the agent through a fixed sequence: check the active pack, assess coverage, propose types, apply changes, validate with lint, and backfill existing pages with a dry run before applying. Each mutation writes an audit row.
The skill is for users whose notes do not match their schema, such as untyped pages or domains that need typed entities like researchers, contracts or depositions. It does not file individual pages or answer who-knows queries. The source points to other skills and commands for those jobs.
Written from the project's SKILL.md and checked against it.
What it can do
- Check active packReads which schema pack is active, its version and its page type count.
- Assess coverageShows per-type page counts, untyped pages and prefixes with no matching pages.
- Propose typesClusters pages by source path and suggests candidate types, with optional LLM refinement.
- Add and remove typesAdds or removes page types with a primitive, prefix, extractable and expert routing flags.
- Manage link types and prefixesAdds or removes link verbs, path prefixes and aliases in the pack.
- Fork bundled packsCopies a bundled pack such as gbrain-base into an editable pack before changes.
- Lint the packValidates the pack, with an option that checks the database for mis-declared types.
- Backfill page typesDry-runs then applies page type updates to existing pages matching declared prefixes.
- Commit the pack fileCommits and pushes only the pack file to source control using gbrain git commands.
What you need
- gbrain CLI or MCP access to a gbrain brain
- Admin scope on the MCP connection for schema write operations
- gbrain v0.40.6.0 or later for expert routing of custom types
Try asking
- Add a researcher type to my schema with the people/researchers/ prefix
- Show me how many of my pages have no page type
- Backfill page types for my meetings folder after a dry run
Good to know
- Bundled packs gbrain-base and gbrain-recommended cannot be mutated; fork them first.
- MCP write operations need the admin scope, which the brain host operator grants.
- remove-type is refused while other types still reference the type.
- Expert-routed types without a path prefix never match new pages.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/schema-author/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB
Alternatives to schema-author
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
schema-author: common questions
Does this skill edit my bundled schema pack?
No. The source says bundled packs are read-only and the mutation primitives refuse with PACK_READONLY. Fork the pack first with gbrain schema fork.
Does it file a single note into the right type?
No. The source says filing one page is handled by the brain-taxonomist skill, while schema-author changes the type rules themselves.
What changes are recorded?
Each mutation writes an audit row to a weekly schema-mutations JSONL file under ~/.gbrain/audit/.
How do I install schema-author?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is schema-author free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is schema-author safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to schema-author?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
