From brain-os
Orchestrates the full knowledge pipeline for a book: self-learn, ingest, verify, absorb, and sync. Run via /study or when managing a book from extraction to vault integration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/brain-os:studyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Vault path + GitHub task repo:** read from `${CLAUDE_PLUGIN_ROOT}/brain-os.config.md` (or user-local `~/.brain-os/brain-os.config.md`). Keys: `vault_path:`, `gh_task_repo:`. Substitute `$GH_TASK_REPO` below with the configured value.
Vault path + GitHub task repo: read from ${CLAUDE_PLUGIN_ROOT}/brain-os.config.md (or user-local ~/.brain-os/brain-os.config.md). Keys: vault_path:, gh_task_repo:. Substitute $GH_TASK_REPO below with the configured value.
/study <epub_path> --notebook-id <nlm_id>
/study --resume Resume a pipeline that was interrupted
/study --status Show pipeline status for all books
Step 1: /self-learn --book <epub> --notebook-id <id>
├── Phase 1: Extract (epub → atomic notes in knowledge/raw/)
├── Phase 2: Validate (questions vs NotebookLM, ≥95 threshold, 100% pass)
└── Phase 3: Extend + Ingest (book note in knowledge/books/ + synthesis)
↓
Step 2: /verify (50 fresh questions vs NotebookLM → audit flag)
├── PASS → audited: true
└── FAIL → audited: false → STOP, notify user
↓
Step 3: /absorb (book note → vault connections, bypass approval since audited: true)
↓
Step 4: commit + push (git commit + push all changes)
↓
Step 5: Notify all 3 channels
├── GH issue at $GH_TASK_REPO (review task)
├── Daily note entry
└── Audit flag updated with pipeline_completed timestamp
IMPORTANT: Run each step sequentially. Do NOT skip steps.
/self-learn --book <epub_path> --notebook-id <nlm_id>
Wait for all 3 phases to complete. Phase 3 now creates the structured book note
in knowledge/books/ (previously a separate /ingest step). Check with /self-learn --status.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.claude/plugins/cache/brain-os-marketplace/brain-os/*/ 2>/dev/null | sort -V | tail -1)}"; PLUGIN_ROOT="${PLUGIN_ROOT%/}"
python3 ${PLUGIN_ROOT}/skills/verify/scripts/verify.py {vault}/knowledge/raw --status
If flag is false, run /verify with 50 fresh questions.
If flag is already true (from self-learn validation), proceed.
Run the /absorb skill. Since verify is true, bypass approval — apply all vault connections automatically.
Commit and push all vault changes to git.
references/gh-task-labels.md):
bash "$CLAUDE_PLUGIN_ROOT/scripts/gh-tasks/create-task-issue.sh" \
--title "Review $BOOK_TITLE notes" \
--body "..." \
--area vault \
--owner human \
--priority p3 \
--weight quick \
--status ready
area:vault because the review operates on absorbed vault knowledge; priority:p3 per the filer matrix default for review tasks (not p4 — that label is retired)pipeline_completed timestampEach book's pipeline state is tracked in _validation/audit-flag.json:
{
"flag": "true|false|manual",
"last_audit": "ISO timestamp",
"audit_score": "159/159 at >=95",
"pipeline_completed": "ISO timestamp",
"ingested": true,
"absorbed": true
}
If pipeline is interrupted, /study --resume checks audit-flag.json to determine which step to resume from.
Follow skill-spec.md § 11. Append to {vault}/daily/skill-outcomes/study.log:
{date} | study | study | ~/work/brain-os-plugin | knowledge/books/{slug}.md | commit:{hash} | {result}
result: pass if full pipeline complete (self-learn → verify → absorb → commit), partial if interrupted mid-pipeline, fail if verify failsargs="{epub_path}", score={step_reached}/5npx claudepluginhub sonthanh/brain-os-pluginExtracts atomic concepts from books into Obsidian notes, validates understanding against NotebookLM via adversarial Q&A, and extends knowledge beyond the source material.
Analyzes EPUB/PDF books into structured chapter notes with key concepts extracted and synthesized via parallel agents.
Converts markdown books into structured Claude skills with granular reference files, workflows, and use-case guidelines for progressive disclosure.