By masuda-so
Claude Code guardrails, session capture, and operator prompts for an Obsidian-backed Knowledge OS.
Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
Verify that changes follow CLAUDE.md, repository guardrails, and non-destructive Knowledge OS operating rules.
Data analysis expert for SQL queries, BigQuery operations, and data insights. Use proactively for data analysis tasks and queries.
Execute read-only database queries. Use when analyzing data or generating reports.
Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
Extract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page.
Distill today's session notes into a concise Daily summary
Greet the user with a personalized message
Connect Claude Code and Obsidian to the second-brain tooling. Run once after cloning, or any time the setup may have drifted.
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
second-brain is a control layer for a Knowledge OS that integrates Claude Code with an Obsidian vault.
It automatically captures Claude Code session activity and produces structured Obsidian notes.
PreToolUse / PostToolUse guards)Meta/AI Sessions plus daily, weekly, and monthly note creationDistill into Meta/Promotions/promote to References/ and other durable areasguard-files.sh, guard-vault-rm.sh, on-edit-check.sh).claude/settings.local.json centralizes vault configuration while .gitignore preserves privacyjqpython3git clone https://github.com/masuda-so/second-brain.git
cd second-brain
./scripts/init.sh "/path/to/your/Obsidian Vault"
init.sh verifies:
jq and python3 are installedSECOND_BRAIN_VAULT_PATH to .claude/settings.local.jsonCLAUDE.md with the active vault pathhooks/hooks.json into local settingsOpen this repo as a Claude Code project. The plugin manifest and hooks are discovered automatically.
/status — plugin health and status/logs — recent hook / script output/promote — promote staged drafts from Meta/Promotions| Path | Role |
|---|---|
hooks/hooks.json | Claude Code hook registrations |
hooks/pre-commit | Pre-commit guard for vault safety |
scripts/init.sh | Bootstrap and validation |
scripts/harvest.py | Session artifact collection |
scripts/distill.py | Summarization and note distillation |
scripts/distill-draft.py | Draft generation |
scripts/promote.py | Approved draft promotion |
scripts/guard-files.sh | File-operation guards |
scripts/guard-vault-rm.sh | Prevents vault deletion operations |
scripts/on-edit-check.sh | Edit validation hook |
commands/ | Entry points for /status, /logs, /promote, etc. |
agents/ | Session summarizer, security reviewer, performance tester, and others |
skills/ | Distillation, defuddling, Markdown conversion, Bases operations, and more |
.github/workflows/ci.yml | CI for hooks, scripts, and init |
pyproject.toml | pytest configuration |
CLAUDE.md | Vault operating rules and AI behavior |
Ideas/ — low-score auto-sketchesMeta/Promotions/ — drafts awaiting human reviewReferences/ — promoted, high-confidence knowledgeProjects/ — manually curated project notesClippings/ — unprocessed source materialbrew install jq
# init validation
bash scripts/init.sh "/path/to/tmp/vault"
# Python unit tests
python3 -m pytest scripts/tests/
/status reference/logs reference./scripts/init.sh outputMaintainer: masudaso
Issues and pull requests are welcome. Prefer small, reversible changes that keep user vaults safe and align with CLAUDE.md. Update docs when changes affect setup or operator workflows.
MIT License. See LICENSE.
npx claudepluginhub masuda-so/second-brainAutomatic Claude Code -> Obsidian second brain: zero-config session capture, hybrid search, autonomous recall, daily/lessons/preferences.
Create and edit Obsidian vault files including Markdown, Bases, and Canvas. Use when working with .md, .base, or .canvas files in an Obsidian vault.
Sync AI conversations to an Obsidian knowledge base with Memory Mason knowledge base skills.
Bidirectional knowledge flow between Claude Code and Obsidian — 20 MCP tools, skills, and hooks for PKM
Self-improving learning loop across Claude sessions — retrieval, capture, consolidation, and cross-project transfer
Kit completo de skills pra transformar uma pasta em vault Obsidian profissional + dashboard local com ML. 6 skills: init (scaffold), librarian (cura contínua), migrate (adoção não-destrutiva), organizer (clusters/duplicatas), expand (notas-ponte via LLM restrito), pulse (dashboard localhost com FSRS, recommendations, anomalies). 100% local, privacy-first, pt-br.