From AFK
Use when a task needs to read or write the persistent brain/ vault — adding a principle, codebase gotcha, or note, or grounding work in existing memory; triggers include "add to brain", "remember this in the brain", or any direct brain/ edit.
How this skill is triggered — by the user, by Claude, or both
Slash command
/afk:brainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Persistent memory across sessions, kept as an Obsidian vault at `brain/`. The
Persistent memory across sessions, kept as an Obsidian vault at brain/. The
brain is the foundation of the whole flow — every skill and session reads it, so
low-quality or speculative content degrades everything downstream.
The invariant this skill protects: every brain file is reachable from
brain/index.md, holds one topic, and earns its place (see Durability test).
Do not use this skill for:
brain/index.md, then the relevant entrypoint for your
topic (brain/principles.md for principle updates). For directories without
a dedicated index yet, scan nearby files and prefer editing an existing note.brain/principles.md). brain/index.md is rebuilt automatically by the
PostToolUse hook — do not hand-edit it.Ask: "Would I include this in a prompt for a different task?"
brain/. It's durable knowledge.brain/
├── index.md <- root entry point, links to everything (auto-built)
├── principles.md <- index for principles/
├── principles/ <- engineering and design principles
├── codebase/ <- project-specific knowledge and gotchas
├── sources.md <- index for sources/ (only if doc sites exist)
├── sources/ <- pointers to external authoritative docs; never copies
└── plans/ <- feature plans
sources/ notes point at existing doc sites (VitePress, Docusaurus, …) and
are authoritative — read them in place, do not duplicate their content into
the brain. init-brain seeds them; keep them as thin pointers.
One topic per file. brain/codebase/deploy-gotchas.md, not a mega-file.
File names: lowercase, hyphenated. worktree-gotchas.md.
A new top-level category gets an index-style entrypoint (links only, no inlined content).
Format: [[section/file-name]]. Resolution order: same directory, then relative
path, then vault root. Heading anchors ([[file#heading]]) are stripped.
# Title, then a one-line summary sentence, then bullets. The
summary line becomes this note's description in brain/index.md (the
PostToolUse hook extracts it), so write it as a relevance hint a future
session can scan — what the note is about, not "Notes on X".STOP and ask the user when:
Do not ask about facts discoverable by reading the vault or the repo.
A created or updated brain file (or a deletion/merge), plus any touched index entrypoint. Report which files changed, one line each, and the vault path.
npx claudepluginhub alexanderop/afk --plugin afkFetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Whole-repo audit for over-engineering: finds dead code, unnecessary abstractions, stdlib-replaceable dependencies. Outputs ranked findings and net line/dep savings.