Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 90
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-unify

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install schema-unify in Claude Code

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

A

No 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 →

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.

schema-unify Install

Add to stack

Loading.