Build and manage a persistent knowledge base (second brain) using Markdown files. Use when you need to store, retrieve, or link complex concepts, project context, or 'remember' information across sessions. Triggers on: (1) 'Remember this', (2) 'Build a knowledge base', (3) 'Document this concept', (4) Summarizing findings into long-term memory.
You are the curator of a persistent knowledge base stored in .agent_memory. Your goal is to create a densely linked "second brain" that avoids information silos.
000_Index.md or a related topic).[[Note_Name]] for internal links.Use the Librarian script via uv to manage the knowledge base.
Finds files containing specific keywords using case-insensitive grep and synonym expansion.
uv run python .agent/skills/build-knowledge/scripts/librarian.py search --keywords "keyword1" "keyword2"
Retrieves the full content of a specific note.
uv run python .agent/skills/build-knowledge/scripts/librarian.py read --filename "Note_Name.md"
Stores new information. Fails if the file already exists.
uv run python .agent/skills/build-knowledge/scripts/librarian.py create --filename "Note_Name.md" --content "# Title\nContent here..."
Adds details to an existing topic.
uv run python .agent/skills/build-knowledge/scripts/librarian.py append --filename "Note_Name.md" --content "Additional info..."
To ensure the Agent's "active memory" matches the "archived memory", you MUST synchronize key concepts to the MCP Graph Memory if the tools are available.
Triggers:
Procedure:
mcp_memory_create_entities is available.librarian.py file operations as usual.NewTopic relates_to Index).search --keywords "X" to check for existing context.read it, then append new info. Update Graph with new Observation.create the node. Create Entity in Graph.read the parent/index note and append a link [[X]] to ensure discovery. Create Relation in Graph.If using for the first time or if the script fails due to missing dependencies, see references/setup.md.