using-second-brain

Enforce named-entity wiki lookups before answering with Second-Brain memory.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Cain-Ish/claude-code-plugin --skill using-second-brain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-second-brain
Source: https://github.com/Cain-Ish/claude-code-plugin/tree/main/skills/using-second-brain
Command: npx skills add https://github.com/Cain-Ish/claude-code-plugin --skill using-second-brain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents the assistant from answering without first loading the persona’s identity and the most relevant Second-Brain memory context, especially when the user references a specific wiki slug or entity.

Core Features & Use Cases

  • Persona-first session setup: Uses the persona-context content already injected at session start (identity card, top wiki hits, and installed plugin catalog) to anchor all subsequent responses without restating the infrastructure.
  • Hard wiki lookup rule for named slugs: If the user’s message names a host/service/project/decision/blocker/wiki page slug, it mandates a mcp__knowledge-base__knowledge_search call on that literal name before answering.
  • Context-aware, low-friction responses: Surfaces relevant prior decisions briefly (one sentence each), avoids unnecessary process narration, and uses an engagement gate to reduce flow disruption.
  • Graph edge safety before graph-affecting actions: When edits/refactors/deletes/renames map to a knowledge/graph node, it checks dependencies via mcp__knowledge-base__knowledge_neighbors to warn once about costly-to-miss edges.
  • Native-memory conflict handling: Flags and resolves conflicts when Claude Code’s built-in auto-memory contradicts the second-brain graph/wiki on load-bearing facts.

Quick Start

Ask for help using second-brain-aware responses, and if you reference a specific wiki slug or project name, ensure the assistant queries the knowledge base on that name before giving your answer.

Frequently Asked Questions about using-second-brain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load persona identity and memory context before answering questions in a knowledge graph?

To load persona identity and memory context before answering, you must enforce a named-entity wiki lookup using knowledge_search on specific slugs before responding. This ensures answers are grounded in persona identity and Second-Brain memory by retrieving relevant prior decisions and session-start context.

What is context grounding and how does it work for session startup?

Context grounding for session startup is the process of anchoring all responses in injected persona context, including identity cards and top wiki hits. It works by reading the injected content at session start and using an engagement gate to surface relevant prior decisions briefly without restating infrastructure.

How do I check knowledge graph dependencies before editing or renaming wiki pages?

To check knowledge graph dependencies before edits or renames, call knowledge_neighbors on the target node to identify costly-to-miss edges. This graph edge safety check warns you once about affected dependencies before executing graph-affecting actions like refactors or deletes.

How does prompt routing handle conflicts between native auto-memory and a second-brain wiki?

Prompt routing handles conflicts by flagging and resolving discrepancies when built-in auto-memory contradicts the second-brain graph on load-bearing facts. It ensures the persona-first context remains consistent by prioritizing verified wiki retrieval results over conflicting native memory entries.

Can I use episodic memory search alongside wiki retrieval for surfacing prior decisions?

Yes, you can use episodic_search alongside knowledge_search to surface prior decisions and enhance context grounding. The wiki lookup remains mandatory for named slugs, while episodic memory search provides optional supplementary context retrieval for session-start conversations and specialist routing.

When should I mandate a wiki lookup before responding to user messages?

You should mandate a wiki lookup when a user's message names a specific host, service, project, decision, blocker, or wiki page slug. This hard rule requires calling knowledge_search on that literal name before answering to ensure Second-Brain memory context is properly loaded.