From second-brain
Declare which local folders or globs the second brain tracks as doc sources for the current project (e.g. docs/, .ai-docs/, "notes/**/*.mdx"). Tracked docs are auto-indexed each session and surface in knowledge_search. Usage: /second-brain:track <path|glob> | --list | --remove <path|glob>.
How this skill is triggered — by the user, by Claude, or both
Slash command
/second-brain:track <path|glob> | --list | --remove <path|glob><path|glob> | --list | --remove <path|glob>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Map the user's argument to a config-CLI action and run it. The CLI resolves the active project and atomically updates `~/.second-brain/projects/<slug>/doc-sources.config.json` (with dedup + validation).
Map the user's argument to a config-CLI action and run it. The CLI resolves the active project and atomically updates ~/.second-brain/projects/<slug>/doc-sources.config.json (with dedup + validation).
Argument → action:
--list (or no argument) → list--remove <loc> → remove <loc><loc> — a folder like docs/ or a glob like notes/**/*.mdx → add <loc>Safety — validate the location first. A doc-source location is always a plain relative path or glob (e.g. docs/, notes/**/*.mdx). If the location argument contains any of " ' ` $ ; | & < > ( ) or a newline, refuse and ask the user to supply a simple path/glob — those characters are never needed and would break the shell command below. Only proceed once the location is clean.
Run exactly this — single-quote the location (single quotes stop the shell from glob-expanding patterns like notes/**/*.mdx, so the literal glob reaches the tool), then show the command's output to the user verbatim:
node "${CLAUDE_PLUGIN_ROOT}/mcp/dist/tools/doc-sources-config-cli.bundle.js" <action> '<location>'
Then tell the user that newly-tracked locations are scanned into the searchable registry at the next session start (the discover-doc-sources SessionStart hook), after which knowledge_search will surface matching docs.
npx claudepluginhub cain-ish/claude-code-plugin --plugin second-brainCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.