using-second-brain
Enforces a pre-response lookup of internal knowledge bases and wiki pages for context-aware assistance.
Install
mkdir -p .claude/skills/using-second-brain && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18748" && unzip -o skill.zip -d .claude/skills/using-second-brain && rm skill.zipInstalls to .claude/skills/using-second-brain
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when starting any conversation - establishes how to consult the persona's identity, memory (wiki + episodic), and installed plugin catalog before answering substantive prompts. This is the persona-as-collaborator protocol.Key capabilities
- →Consult persona's identity card
- →Search internal wiki for specific names
- →Search episodic memory
- →Consult installed plugin catalog
- →Surface relevant prior decisions from wiki
- →Check code map for blast radius before editing files
How it works
If a user's message names a specific entity, the skill calls knowledge_search on that name to retrieve relevant information from the persona's knowledge base before formulating a response.
Inputs & outputs
When to use using-second-brain
- →Checking project-specific architecture decisions
- →Searching internal wiki pages
- →Verifying service status during conversation
About this skill
Using Second-Brain
Hard rule (non-negotiable)
If the user's message names a host, service, project, decision, blocker, or wiki page slug — by literal name — you MUST call mcp__plugin_second-brain_knowledge-base__knowledge_search on that name before answering. The auto-retrieved wiki block in additionalContext is best-effort and ranks against the whole message; it can miss when the relevant page exists but didn't score high enough. The hard rule kicks in when the user is specific. One query, top 1-2 hits, then answer. No exceptions.
Examples that trigger the rule:
- "check the supplychain cron" → query
supplychain cron - "is the pikeeper user still there?" → query
pikeeper - "what was our decision on architecture-v1?" → query
architecture-v1
Examples that don't trigger:
- "what's a good way to do X in general?" — no specific name
- "fix this bash script" — referent is the visible artifact, not a wiki entity
You have a persona core. Before any non-trivial response:
-
The persona has already injected its identity card, top wiki hits, and the installed plugin catalog via the UserPromptSubmit hook (
persona-context.sh). Read those system reminders. Don't ignore them. Don't restate them. -
Specialist routing. If the user's request matches a specialist available in the catalog (e.g., frontend work + a frontend-developer agent installed), call out the routing option once before doing the work yourself. Do not lecture about availability if the user clearly wants you to handle it directly.
-
Prior context. If the wiki has a relevant prior decision, surface it briefly — don't repeat what the user already knows from the persona card. One sentence per relevant entry, not a paragraph.
-
Silence is the default. Do not lecture, summarize, or volunteer process commentary. The user is in flow. Research finding: proactive AI in coding contexts is perceived as annoying — engage only when expected value clearly exceeds the flow-disruption cost.
-
When deep analysis would help, suggest the user invoke
/second-brain:thinkor prefix the next prompt with/?— both trigger an Opus-level advisor brief with structured intent read, prompt enrichment, clarifying questions, specialist suggestions, and risk flags. -
When you would have asked a clarifying question, first check if the persona-card or wiki already answers it. If so, proceed using that knowledge — don't ask the user to restate something already in their memory layer.
Earned interrupt (the wingman move)
This refines "silence is the default" (point 4) — it does not replace it. The escape clause in point 4 is "engage only when expected value clearly exceeds the flow-disruption cost." A typed dependency edge you are about to break IS that case. No graph signal → no interrupt.
Graph check — before you act on a named entity. When you are about to edit / refactor / delete / rename something that resolves to a wiki or graph node (not merely discuss it), do ONE mcp__plugin_second-brain_knowledge-base__knowledge_neighbors call on its slug (direction: "both"). Then:
- Speak up once — and only — if the result carries a costly-to-miss edge: a
requires/affects/part_ofedge you would break, or asupersedes/ invalidated edge warning against reintroducing something already retired. One heads-up line (what it requires, what it affects, any "don't reintroduce X"), then proceed and do the work silently. - Stay silent if the graph is empty, absent, or returns nothing load-bearing. Most edits get no interrupt. The graph CLI being unavailable is also silence, not an error.
Example: user says "let's refactor the router daemon" → knowledge_neighbors router-daemon → "Heads up: graph says router-daemon affects vps-collector + supplychain-monitor and supersedes pi-ip-ufw-sync (retired) — want me to check those dependents first?" → then refactor.
Code check — before you edit / refactor / rename / delete a SOURCE file. The graph check above is for named wiki entities; the code map is the parallel signal for source code. Before you act on a source file, do ONE code_neighbors <path-or-basename> call to see its blast radius — direction:"in" = the importers that break if you change it, direction:"out" = its own dependencies. Speak up once only if the blast radius is costly to miss (a widely-imported module, a public export you would break); otherwise proceed silently. For whole-project orientation before a multi-file change, code_map returns the ranked architectural spine (SessionStart already injects its top files, so don't restate them). Cold/absent code map → silence, not an error — same discipline as the wiki graph.
Surface what the work confirms (close the loop — but you don't write the graph). The wingman reads the graph; you are not a graph writer. Edge curation is owned by three paths: the capture-time extractor (it records relationships from this session's transcript at Stop — so the graph accrues with no user interaction), the user's manual knowledge_relate, and the knowledge-maintainer. So when the work confirms a typed relationship — the user says "X depends on / affects / is part of Y", or explicitly retires/replaces something — surface it ONCE as a suggested knowledge_relate (type: requires|affects|relates|part_of|supersedes; invalidate: true + valid_to for a retired edge), brief, per silence-default — then move on. The extractor picks it up from the transcript; you do not call the tool yourself. Only confirmed/retired relationships — never speculative ones. Edge contradictions are likewise the maintainer's to drain (surfaced by the SessionStart conflict banner), not yours.
Native-memory cross-check. Claude Code's built-in auto-memory (MEMORY.md) is already in your context at session start — you don't fetch it. If a fact there contradicts the second-brain graph/wiki on something load-bearing to the current action, flag the conflict ONCE; don't silently pick a side. The second-brain (graph + wiki) is the structured source of truth; native auto-memory is a flat scratchpad. (Only relevant while both memory systems run; inert once native is disabled — see /second-brain:status.)
Engagement gate
A 1-question self-check before responding:
- Did the persona context (additionalContext) already cover what I'm about to say? If yes, drop it. Don't echo what the system reminder already gave the user.
Behavioral protocol (the Four Principles)
Before writing or changing code, apply the Four Principles in
${CLAUDE_PLUGIN_ROOT}/skills/using-second-brain/principles.md (loaded here as standing
guidance; the persona hook re-surfaces the compact form just-in-time when coding begins):
Think Before Coding · Simplicity First · Surgical Changes · Goal-Driven Execution.
What this skill replaces
This skill replaces "I'll search the codebase first" filler. The persona has already done the search. You read the surfaced context and act on it.
Failure modes to avoid
- Restating the persona card. Don't tell the user "I see you prefer terse responses" — just be terse.
- Restating wiki hits. Don't open with "I found these relevant pages: …" — use them.
- Asking what's already pinned. If
persona-card.mdsays the user prefers X, don't ask "do you prefer X or Y?" — assume X unless they redirect. - Routing every request to a specialist. Suggest a specialist when there's a clear match, not as a reflex.
The persona is the silent infrastructure. You are the visible collaborator. Don't narrate the infrastructure.
When not to use it
- →When the user's message does not name a specific entity
- →When the persona context already covers what is about to be said
- →When asking clarifying questions already answered in persona card or wiki
Limitations
- →Must call knowledge_search on specific named entities
- →Engage only when expected value clearly exceeds flow-disruption cost
How it compares
This skill enforces a proactive search of the persona's internal knowledge base for specific entities, preventing generic answers and grounding responses in project-specific documentation.
Compared to similar skills
using-second-brain side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| using-second-brain (this skill) | 0 | 15d | No flags | Beginner |
| yams | 1 | 1mo | Review | Intermediate |
| copilot-spaces | 0 | 4mo | Review | Intermediate |
| triage | 0 | 23d | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
yams
trvon
Code indexing, semantic search, and knowledge graph for project memory
copilot-spaces
Balkonsen
Use Copilot Spaces to provide project-specific context to conversations. Use this skill when users mention a "Copilot space", want to load context from a shared knowledge base, discover available spaces, or ask questions grounded in curated project documentation, code, and instructions.
triage
codekiln
Triage Reader inbox one doc at a time with personalized pitches
deep-research
davidorex
Multi-agent parallel investigation for complex VCV Rack problems
scientific-brainstorming
davila7
Research ideation partner. Generate hypotheses, explore interdisciplinary connections, challenge assumptions, develop methodologies, identify research gaps, for creative scientific problem-solving.
nlm-skill
jacob-bd
Expert guide for the NotebookLM CLI (`nlm`) and MCP server - interfaces for Google NotebookLM. Use this skill when users want to interact with NotebookLM programmatically, including: creating/managing notebooks, adding sources (URLs, YouTube, text, Google Drive), generating content (podcasts, reports, quizzes, flashcards, mind maps, slides, infographics, videos, data tables), conducting research, chatting with sources, or automating NotebookLM workflows. Triggers on mentions of "nlm", "notebooklm", "notebook lm", "podcast generation", "audio overview", or any NotebookLM-related automation task.