Agent skill
knowledge-base
Query memory graph, vault-rag, and Obsidian KB docs to find existing knowledge before investigating
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/knowledge-base-baphled-dotopencode
SKILL.md
Skill: knowledge-base
What I do
I teach agents how to access the three knowledge systems available in this setup: the memory graph (MCP), the Obsidian vault via RAG, and direct KB doc navigation. I prevent re-discovering what's already documented.
When to use me
- Before starting any investigation — check what's already known
- When a skill's
## KB Referencepoints to a KB doc you need to read - When searching for past decisions, patterns, or solutions
- When you need context about a codebase, agent, skill, or workflow
The three knowledge systems
| System | What it holds | Best for |
|---|---|---|
| Memory graph | Problem-solution pairs, session discoveries, entity relations | Fast lookup of specific known things |
| Vault-RAG | All Obsidian vault notes, KB docs, skill docs, ADRs | Broad semantic search across all documentation |
| KB docs (direct) | Structured reference docs in ~/vaults/baphled/ |
Deep reading when you know the exact topic |
Patterns & examples
Search memory graph (fastest — check first):
mcp_memory_search_nodes({ query: "describe the problem or topic" })
mcp_memory_open_nodes({ names: ["KnownEntityName"] })
Query vault via RAG (semantic search across all docs):
mcp_vault-rag_query_vault({
vault: "baphled",
question: "what is the pattern for X?",
top_k: 5
})
Read KB doc directly (when you know the path):
~/vaults/baphled/3. Resources/Knowledge Base/Skills/{Category}/{Name}.md
~/vaults/baphled/3. Resources/Tech/OpenCode/
~/vaults/baphled/3. Resources/Knowledge Base/Agents/{Name}.md
Lookup order
- Memory graph — search_nodes for the topic
- Vault-RAG — query_vault if memory has nothing
- Direct KB read — if you know the exact doc path
- Codebase investigation — only if none of the above answers it
Anti-patterns to avoid
- ❌ Investigating the codebase before checking memory/vault
- ❌ Asking the user for context that's already in the KB
- ❌ Ignoring
## KB Referencesections in skills — they point to deeper coverage - ❌ Storing to memory without searching first (creates duplicates)
KB Reference
~/vaults/baphled/3. Resources/Knowledge Base/AI Development System/Skills/Core-Universal/Knowledge Base.md
Related skills
memory-keeper— Capturing and retrieving from the memory graphobsidian-structure— PARA structure for navigating the vaultinvestigation— Systematic codebase investigation when KB has no answer
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?