Ultrabrain
Drive a personal, LLM-maintained wiki at
. This skill is a thin trigger layer — the vault is self-contained and methodology rules live in
, not here.
Trigger Contract
Five operations. The first two are skill-side; the last three delegate to vault rules.
| Operation | Trigger examples |
|---|
| "bootstrap ultrabrain", "initialize vault", "設定 ultrabrain", or any other operation fires with no vault present |
| "記下來 X", "capture this", "save to vault", "存進 vault", or "capture <path-or-url>" |
| "ingest", "integrate raw", "整合 raw", "整理 vault" |
| description-driven for factual/technical/decision questions, or explicit: "查 vault", "search ultrabrain" |
| "lint vault", "健檢 vault", "check wiki" |
Query skip clause
Before reading any vault file for
, verify the user's question plausibly concerns retained knowledge.
Skip the vault (answer normally) when the question is:
- Small talk — greetings, thanks, session meta-questions.
- Context-local — answerable from the current session or open files ("what does this file do", "why did that fail").
- Execution requests — "write this", "run that", "refactor X". Vault holds facts, not tasks.
When classification is uncertain, default to skipping. Aggressive description triggering is balanced by this negative filter, not overridden.
Operations
Full step-by-step lives in
. Summary:
- creates with (copied from
references/agents-template.md
), (one line: ), empty and , and / directories. Refuses if the vault exists unless is passed.
- writes session or file content to with frontmatter. Resolves ambiguous "記下來" requests by proposing a scope and waiting for user confirmation. Never silently overwrites — collisions go to suffixed filenames or a user-chosen append.
- loads and follows its section to integrate unprocessed files into , moving processed raw to .
- loads , reads first, then follows the vault's query rules (index-first strict; no Grep fallback). Answers cite specific wiki pages. Falls back to general knowledge if the vault is empty, with an explicit note.
- loads and produces a health report (contradictions, orphans, stale pages, index drift, missing cross-references). Never auto-fixes; asks the user which findings to address.
Every operation appends one line to
in the format
ISO-8601 OPERATION details
.
Vault Contract
is the single source of truth for methodology. The skill's contract with it is
behavioral, not structural —
must define how to perform
,
, and
, in whatever structure the methodology author prefers. The skill makes no assumptions about section headings, page types, tag schemas, or cross-reference syntax.
is exactly one line:
. This makes the vault rules auto-load if the user
s into the vault inside Claude Code;
stays canonical for cross-tool compatibility.
Vault-side operations (
,
,
) halt if
is missing. Ask the user to
or restore the file.
The skill treats the vault as read-only except for paths each operation is defined to touch (see
).
Methodology Swap
The v1.0.0 default methodology is Karpathy's LLM-maintained-wiki pattern (see
references/karpathy-original.md
for the source and
references/agents-template.md
for the agent-readable rendering). To swap:
- Replace
references/agents-template.md
with rules for a different methodology. Only requirement: the new template must define , , and behaviors.
- Run to wipe and rebuild the vault. Destructive — back up first if you want to preserve source material for re-capture.
Hooks
Two hooks are available but not auto-installed:
- — injects vault status (wiki count, unprocessed raw, last ingest) at session start so Claude is aware the vault is available.
- — injects a reminder before context compaction to capture important session content before detail is lost.
On explicit user request ("install ultrabrain hooks"), follow
to copy both hook scripts and merge the entries into
using Read → diff → confirm → Edit discipline. Both hooks install as a bundle; either can be uninstalled individually later.
References
references/karpathy-original.md
— verbatim source methodology + attribution
references/agents-template.md
— bootstrap copies this to
- — full step-by-step for all five operations
- — hook install/uninstall (SessionStart + PreCompact)
references/hooks/session-start.sh
— vault status injection on session start
references/hooks/pre-compact.sh
— capture reminder before compaction