schema-author
Что он делает
Этот скилл меняет набор типов страниц, которые использует ваша база знаний. Он может добавлять новые типы, помечать старые страницы без типа и проверять, что настройка работает правильно.
Когда использовать
- ✓Когда вы хотите добавить в базу знаний новый тип страницы, например «исследователь» или «контракт».
- ✓Когда у вас много страниц без типа, и вы хотите их упорядочить.
- ✓Когда база знаний не распознаёт сущность, которую вы часто используете.
Ссылка на скилл
https://github.com/garrytan/gbrain/blob/master/plugin/skills/schema-author/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Добавь в мою базу знаний тип страницы «исследователь», а затем проставь типы страницам без типа в папке встреч.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент просматривает текущий набор типов страниц и предлагает изменения. Он обновляет список типов и помечает существующие страницы, а затем проверяет общее состояние настройки.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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", "
Частые вопросы
Это для чтения моих текущих типов?
Нет. Чтобы просто посмотреть настройки типа, достаточно более простой команды.
Раскладывает ли он отдельные страницы?
Нет. Эту задачу выполняет скилл раскладки, который решает, куда попадает одна новая страница.
Когда добавлять тип, а когда псевдоним?
Скилл следует руководству, которое объясняет, когда правильным выбором будет новый тип, псевдоним или префикс.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 31k
- Место в рейтинге
- #9309
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
gbrain
31kПозволяет агенту искать в общей базе знаний компании факты о людях, проектах и решениях и сохранять в ней долговременные заметки.
brain-ingest-gate
31kПроверяет новое содержимое по существующей базе знаний до добавления, чтобы избежать дубликатов и сначала разрешить именованные сущности.
brain-link-discipline
31kСледит, чтобы агент в том же сообщении приложил рабочую ссылку на каждую страницу базы знаний, о которой он сообщает, чтобы вы сразу могли её открыть.
brain-ops
31kДаёт агенту базовую рутину для базы знаний: сначала проверить имеющийся контекст, сохранять явные заметки с источником и связывать родственные страницы.
Похожие скиллы
technical-documentation
394kПомогает агенту писать и проверять понятную техническую документацию и инструкции для агентов, чтобы людям и ИИ-инструментам было легко по ним работать.
architecture-decision-records
280kАгент записывает важные решения о структуре проекта. Помогает понимать причины выбора и вести ясную историю изменений.
code-tour
280kАгент создаёт пошаговые экскурсии по коду с точными ссылками на файлы и строки. Полезен для знакомства, объяснений и ревью.