maintain
できること
このスキルは、個人のブレインの健全性チェックを行います。古い事実、孤立したページ、切れたリンク、出典の欠落、分類を誤ったノートを探します。
使う場面
- ✓ブレインの健全性を確認したり、メンテナンスを実行したりするよう頼むとき。
- ✓壊れたリンク、出典の欠落、古い事実があるページを見つけたいとき。
- ✓ブレインの領域ごとに問題数を数え、問題ごとの修正案がほしいとき。
スキルのリンク
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/maintain/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ブレインを確認して、壊れたリンク、古い事実、どこからもリンクされていないページを調べ、直し方を教えてください。”
毎週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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
gbrain
31kエージェントが、共有の社内ナレッジブレインで人、プロジェクト、決定事項についての事実を検索し、永続的なメモを保存できるようにします。
brain-ingest-gate
31k重複を避け、名前付きのエンティティを先に解決するため、新しい内容をナレッジブレインに追加する前に、既存のブレインと照合するようエージェントを支援します。
brain-link-discipline
31kエージェントが報告する各ブレインのページについて、同じメッセージの中で動くリンクを必ず含め、すぐに開けるようにします。
brain-ops
31kナレッジブレインの基本的な手順をエージェントに与えます。まず既存の文脈を確認し、出典つきで明示的なメモを保存し、関連するページをリンクします。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。