/agentkit-brain:reflectfrom agentkit-brain
Persist learnings from the current session into the project's brain vault — after mistakes, corrections, or notable codebase discoveries, or when wrapping up. Structural enforcement beats notes: route recurring lessons into hooks, lint rules, or skill edits instead. Triggers: "reflect", "remember this".
Ships in agentkit-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review the conversation and persist what future sessions need — to memory/, to a
skill, or as structural enforcement. Never a memory dump: only what would change
a future session's behaviour.
If memory/ does not exist at the project root, seed it first by copying this
skill's references/starter-vault/ directory to memory/ (the starter index and
principles). The vault is an Obsidian-compatible tree: memory/index.md (bare
[[wikilink]] index, rebuilt automatically by the memory-index hook) plus one
topic per file.
memory/external/ is not yours to write. It holds a snapshot of each repository
declared in brain.memory.sources, re-taken from its pinned ref on every sync —
a note filed there is destroyed the next time one runs. Read it, cite it, and
write what you learned into the vault's own tree.
memory/index.md — know what already exists.[[principles/encode-lessons-in-structure]].
In agentkit-managed projects that usually means a police hook or a rule file.principles/, codebase/, tools/).Use when: <the task, error, or tool this applies to> — concrete, never a restatement of the title.[[wikilinks]]. Index files hold links only, no prose.## Reflect Summary
- Brain: <files created/updated, one line each>
- Skills: <skill files modified>
- Structural: <hooks/rules/checks added>
- Issues: <follow-ups filed>
references/starter-vault/index.md (opens in a new tab)references/starter-vault/principles/boundary-discipline.md (opens in a new tab)references/starter-vault/principles/cost-aware-delegation.md (opens in a new tab)references/starter-vault/principles/encode-lessons-in-structure.md (opens in a new tab)references/starter-vault/principles/guard-the-context-window.md (opens in a new tab)references/starter-vault/principles/make-operations-idempotent.md (opens in a new tab)references/starter-vault/principles/migrate-callers-then-delete-legacy-apis.md (opens in a new tab)references/starter-vault/principles/serialize-shared-state-mutations.md (opens in a new tab)references/starter-vault/principles/subtract-before-you-add.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub developerinlondon/agentkit --plugin agentkit-brain3 skills in this plugin
/meditateAudit and evolve the project's brain vault — prune stale or low-value notes, surface unstated principles hiding across entries, and cross-check skills against the vault for missed structural enforcement. Run periodically, after the vault has accumulated content. Triggers: "meditate", "audit the brain"./ruminateMine past Claude Code conversations for corrections, preferences, and knowledge that never reached the brain vault. Complements reflect (current session) and meditate (vault audit). Good for bootstrapping a vault from existing history. Triggers: "ruminate", "mine my history".