maintain
Что он делает
Этот скилл проводит проверку состояния вашей личной базы знаний. Он ищет устаревшие факты, страницы-сироты, мёртвые ссылки, отсутствующие цитаты и неправильно размещённые заметки.
Когда использовать
- ✓Когда вы просите агента проверить состояние базы знаний или запустить обслуживание.
- ✓Когда вы хотите найти страницы с битыми ссылками, без источников или с устаревшими фактами.
- ✓Когда нужен подсчёт проблем в каждом разделе базы знаний с исправлением для каждой из них.
Ссылка на скилл
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/maintain/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь мою базу знаний на битые ссылки, старые факты и страницы, на которые никто не ссылается, и расскажи, как всё исправить.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент просматривает каждую часть базы знаний: от ссылок и цитат до размещения файлов и тегов. Он выдаёт количество проблем по каждому разделу и предлагает исправление для каждой найденной проблемы.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Maintain Skill
Periodic brain health checks and cleanup.
Contract
This skill guarantees:
- All health dimensions are checked (stale, orphan, dead links, cross-refs, backlinks, citations, filing, tags)
- Each issue found has a specific fix action
- Back-link iron law is enforced
- Citation format is validated against the standard
- Results are reported with counts per dimension
Phases
Ownership failures are an inspection boundary
Routine maintenance, startup checks, doctor --fix, and a request to "fix what's
broken" do not authorize writer topology changes. On owner_unavailable or a
writer coordination refusal, inspect gbrain sources writer status --brain <id> --json on the selected host first and report the owner, epoch, enabled state and
blocked recovery to the operator. Do not claim a checkout, activate managed mode,
transfer an owner, replace identities, or remove ownership markers as a repair.
When the status reads enabled: false and the refusal says unbound_source,
the brain is in classic mode on purpose: report that writes go through the
checkout (file, commit, gbrain sync) and leave it classic.
Deliberate administration requires a separately approved topology change and the
action-specific intent plus reviewed state precondition described in
docs/architecture/topologies.md. Neither a TTY nor --yes nor
--confirm-quiesced substitutes for that decision. Remote credentials remain
ineligible for local writer administration.
Autonomous path (v0.36.4.0) — when you want to reach a target score
If the user asks "get my brain to 90/100" or "fix what's broken", preview first and ask before applying anything:
gbrain doctor --remediation-plan --json # preview: job steps + repair steps
# Show the user the repair steps (each "requires user agreement") and the cost.
# Only after the user agrees (plan_hash from the preview binds the approval):
gbrain doctor --remediate --yes --include-repairs --expect <plan_hash> --target-score 90 --max-usd 5
--remediation-plan prints a dependency-ordered list of job steps (sync before
extract, embed after consolidate, etc.) with per-step est_seconds and
est_usd_cost, and, independent of the score target, the PROTECTED repair steps
for every gbrain repair kind with pending items. Each step carries the exact
command that applies it, and the plan ends with one combined command.
--remediate runs the repair steps only with --include-repairs (the user's
agreement; without it they are listed as skipped), then walks the job plan,
submitting each step as a Minion job and re-checking score between steps.
--max-usd N is a cumulative cost cap across the run and every --resume: a
paid step that would exceed it is not started, free steps still run, and the run
stops with a resume command that keeps the cap and the agreement.
When the target score is unreachable for the brain (empty brain with no entity
pages → graph_coverage caps at 70; unconfigured embedding key → caps at 60),
job steps stop with a list of what's missing rather than looping; included repair
steps still run. --json classifies each finding cleared, pending,
consent_required, operator_required (follow its instruction) or
unsupported (report it; nothing clears it yet). After an upgrade, follow the
recipe in docs/guides/repair.md#recover-after-upgrading-to-this-release.
Use the per-dimension walk below (Phase 2 onward) when:
- The user explicitly asks for a dimension-by-dimension audit
- You're investigating why score is stuck below
--remediate's ceiling - A specific dimension needs manual judgment that the auto path skips
Manual path
- Run health check. Check gbrain health (
get_health) to get the dashboard.get_healthneeds admin scope; without it, callget_brain_health(read scope), which returns bands only (write capacity, write failures, ghost pages, unsearchable chunks), and skip the dimensions it cannot answer: stale pages, orphan pages, dead links, embed coverage, link and timeline counts and the brain score. Name the skipped dimensions in the report and ask for an admin token, or forgbrain doctor --jsonon the brain host, to cover them. - Check each dimension:
Stale pages
Pages where compiled_truth is older than the latest timeline entry. The assessment hasn't been updated to reflect recent evidence.
- Check the health output for stale page count
- For each stale page: read the page from gbrain, review
Частые вопросы
Исправляет ли он проблемы сам?
Он в первую очередь находит проблемы и называет исправление для каждой. Серьёзных изменений в устройстве базы знаний он не делает.
Проверяет ли он цитаты?
Да. Он смотрит, соответствуют ли факты стандартному формату цитирования, и сообщает о тех, которые не соответствуют.
Может ли он найти страницы, на которые никто не ссылается?
Да. Он ищет страницы-сироты, то есть страницы, на которые не ведёт ни одна другая страница.
Подробности
Оригинальное описание автора
Brain health checks: back-link enforcement, citation audit, filing validation, stale info detection, orphan pages, and benchmarks. Use when asked to check brain health, run maintenance, or audit quality.
repo: garrytan/gbrain
Популярность
- Звёзды на GitHub
- 31k
- Место в рейтинге
- #9261
- Лицензия
- 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Агент создаёт пошаговые экскурсии по коду с точными ссылками на файлы и строки. Полезен для знакомства, объяснений и ревью.