schema-unify
Skill by garrytan
Migrates a gbrain brain from gbrain-base to the gbrain-base-v2 taxonomy, collapsing many page types into 14 canonical types plus a note catch-all. Built for brain owners who see type proliferation or pack upgrade warnings from gbrain onboard checks.
Install schema-unify
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-unify ~/.claude/skills/schema-unifyRun 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-unify ~/.gemini/antigravity-cli/skills/schema-unifyAntigravity 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-unify is an agent skill that migrates a gbrain brain from the gbrain-base type taxonomy to gbrain-base-v2. The v2 pack has 14 canonical types plus a note catch-all, and the skill explains how to collapse a brain's many page types into them. It starts with gbrain onboard --check to look for pack_upgrade_available or type_proliferation findings, previews the changes with --explain, and then applies them through the unify-types Minion handler.
Retyped pages keep their original type in frontmatter.legacy_type, and redirect pages become alias rows while edge-shaped pages become links. The skill is for people who run gbrain brains with many accumulated page types. Managed brains can preview but cannot apply the migration yet. The apply job runs only from a trusted local CLI, and autopilot never triggers it.
Written from the project's SKILL.md and checked against it.
What it can do
- gbrain onboard --checkReports whether the brain has pack_upgrade_available or type_proliferation findings.
- gbrain onboard --check --explainPreviews per-cluster retype, alias and link changes in dry-run mode.
- gbrain jobs submit unify-typesSubmits the protected migration job that retypes pages and flips the active pack.
- gbrain jobs getChecks the status, progress and result of a submitted migration job.
- gbrain schema activeShows the identity of the currently active pack to confirm it is gbrain-base.
- gbrain schema statsShows the number of distinct typed values after migration.
- gbrain restoreRestores soft-deleted source pages within the 72h window.
- gbrain schema useSwitches the active pack, used to revert the pack flip.
What you need
- A gbrain install with a brain on gbrain-base
- Trusted local CLI access on the brain host
- Roughly 10 minutes on a 186K-page brain
Try asking
- Check whether my gbrain brain has a pack upgrade available
- Preview how my page types would be unified into gbrain-base-v2
- Show me the canonical taxonomy in gbrain-base-v2
Good to know
- Applying the migration is not supported on managed brains yet.
- The unify-types handler is manual only and autopilot never runs it.
- Remote MCP cannot submit the PROTECTED unify-types job.
- Bulk rollback SQL works only on Postgres or Supabase, not PGLite.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/schema-unify/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-unify
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-unify: common questions
How many page types does the migration collapse?
The source says it collapses 94 noisy types to 15 canonical types with subtypes, alias rows and link rows. The v2 pack is described as 14 canonical types plus a note catch-all.
Can the migration be undone?
Each retyped page keeps frontmatter.legacy_type for rollback. The skill also covers restoring soft-deleted pages within 72h and reverting the pack flip with gbrain schema use gbrain-base.
Will autopilot run this migration automatically?
No. The unify-types handler is PROTECTED and manual_only, so autopilot will never auto-fire it.
How do I install schema-unify?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is schema-unify free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is schema-unify 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-unify?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
