From bl
Set up a BrainLift workspace in the current directory — creates folder structure, config, and pointer file
How this skill is triggered — by the user, by Claude, or both
Slash command
/bl:initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You're helping the user set up a BrainLift workspace. The user should already be in the folder they want to use. This skill scaffolds the structure inside the current working directory.
You're helping the user set up a BrainLift workspace. The user should already be in the folder they want to use. This skill scaffolds the structure inside the current working directory.
[current directory]/
├── CLAUDE.md # Workspace config + Claude Code project instructions
├── index.md # Auto-generated catalog, evidence graph, source registry
├── lifts/ # BrainLift .md files go here
├── logs/ # Change logs (auto-generated by other skills)
└── sources/ # Optional: clipped raw source content
Plus a pointer file at ~/.brainlift so the plugin can find this workspace from any Claude Code session.
Setting up a BrainLift workspace in:
[absolute path to $CWD]
This will create:
lifts/ — Your BrainLift files
logs/ — Change logs (auto-managed)
sources/ — Raw source content (optional)
CLAUDE.md — Workspace config
Continue?
If the user says no, ask where they'd like to set up instead and suggest they cd there first.
Before creating anything, scan $CWD for existing BrainLift files:
*.md in $CWD (exclude any existing CLAUDE.md)purpose, in scope, out of scope)*.log.md filesIf existing BrainLift files are found:
I found [N] existing BrainLift files in this directory:
- ai-agents.md (has Purpose section)
- edge-computing.md (has Purpose section)
- knowledge-management.md (has Purpose section)
And [N] companion log files:
- ai-agents.log.md
- edge-computing.log.md
Want me to move these into the new structure?
- BrainLift files → lifts/
- Log files → logs/
- Other .md files stay where they are
[y/n]
Important: Only offer to move files that have a Purpose section. Don't move random markdown files. Show the user exactly which files will be moved and get approval before touching anything.
If there are .md files WITHOUT a Purpose section, note them:
These .md files don't look like BrainLifts (no Purpose section found):
- random-notes.md
- TODO.md
I'll leave these where they are.
Create the directories and files:
lifts/ directory (if it doesn't exist)logs/ directory (if it doesn't exist)sources/ directory (if it doesn't exist)CLAUDE.md with the workspace template (see below)index.md with the empty index template (see infrastructure/index-format.md for the Empty Index Template)~/.brainlift containing the absolute path to $CWDIf CLAUDE.md already exists in $CWD, read it first. If it already has <!-- brainlift-root -->, this workspace is already initialized — do not bail out. Instead, proceed to Step 3B (Upgrade Check).
If CLAUDE.md exists but without the marker, ask before overwriting.
When CLAUDE.md already has <!-- brainlift-root -->, check what's missing and offer to add it:
Workspace already initialized. Checking for updates...
Check each component and report:
Checking workspace components:
✓ CLAUDE.md — present
✓ lifts/ — present ([N] BrainLifts)
✓ logs/ — present
✓ sources/ — present
✗ index.md — missing (new in v2.2)
Want me to add the missing components?
If index.md is missing: Generate it. If BrainLift files exist in lifts/, trigger a full index rebuild (Step 4B). If no BrainLifts exist, create the empty index template.
If CLAUDE.md is outdated (doesn't mention index.md): Offer to update it:
Your CLAUDE.md doesn't mention index.md (added in v2.2).
Want me to update it with the new workspace description?
If everything is present and current:
Workspace is up to date! Nothing to add.
If the user approved migration in Step 2:
.md file from $CWD to lifts/.log.md file from $CWD to logs/git mv if we're in a git repo, otherwise regular mvMoved to lifts/:
ai-agents.md
edge-computing.md
knowledge-management.md
Moved to logs/:
ai-agents.log.md
edge-computing.log.md
If BrainLift files exist in lifts/ (either migrated in Step 4 or already present during Step 3B upgrade), build the index:
.md file in lifts/ (exclude *.log.md):
index.md following the schema in infrastructure/index-format.md:
Unknown status if not)index.md to [root]/index.mdBuilding index from [N] BrainLifts...
- ai-agents.md: 12 sources, 5 insights, 3 SPOVs
- edge-computing.md: 8 sources, 3 insights, 2 SPOVs
Index generated with [N] sources, [N] insights, [N] SPOVs.
BrainLift workspace ready!
[absolute path]/
├── CLAUDE.md ✓ created
├── index.md ✓ created (catalog & evidence graph)
├── lifts/ ✓ created ([N] BrainLifts moved in)
├── logs/ ✓ created ([N] logs moved in)
└── sources/ ✓ created (empty — for future use)
~/.brainlift ✓ points here
Next steps:
- Add a source: /bl:update <url>
- Ask a question: /bl:query <question>
- Health check: /bl:lint
- Create a new BrainLift: create a .md file in lifts/ with a Purpose section
For upgrade runs (Step 3B), show only what was added:
Workspace upgraded!
Added:
├── index.md ✓ generated ([N] BrainLifts indexed)
Already present:
├── CLAUDE.md ✓
├── lifts/ ✓ ([N] BrainLifts)
├── logs/ ✓
└── sources/ ✓
Write this content to CLAUDE.md:
<!-- brainlift-root -->
# BrainLift Workspace
Your BrainLift knowledge artifacts live here.
## Structure
- `index.md` — Auto-generated catalog of all BrainLifts, evidence graph, and source registry (read by plugin for navigation, viewable in Obsidian graph view)
- `lifts/` — BrainLift files (your knowledge artifacts)
- `logs/` — Change logs tracking how each BrainLift evolves
- `sources/` — Clipped raw source content (optional, for URL rot insurance)
## Commands
- `/bl:update <url> [thoughts]` — Add a source to a BrainLift
- `/bl:query [question]` — Ask questions against your BrainLifts
- `/bl:lint [path]` — Health-check a BrainLift
- `/bl:init` — Set up this workspace (already done)
## How It Works
The plugin handles bookkeeping (extracting facts, generating summaries, tracking evidence
chains, flagging stale content). You handle curation (what to include, what challenges your
thinking, what patterns you see across sources).
BrainLifts use the DOK framework:
- DOK1 (Facts) — AI extracts from sources
- DOK2 (Summaries) — AI generates, you review/edit
- DOK3 (Insights) — AI brainstorms with evidence, you accept/edit/reject
- DOK4 (SPOVs) — AI brainstorms candidates, you decide your positions
~/.brainlift already exists: Overwrite it (the user is choosing a new workspace location)~/.brainlift: Warn the user, continue without the pointer file — discovery Step 1 (CLAUDE.md marker) will still work when they're in the workspaceCLAUDE.md already has the marker, run Step 3B (Upgrade Check) to add any missing v2.2 components (index.md, etc.) instead of bailing outgit mv.npx claudepluginhub srbdp/brainlift-plugin --plugin blCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.