Work Knowledgebase
Manages a persistent knowledgebase at ~/.claude/knowledgebase/ for work context.
Usage
Parse the user's input after /kb:
/kb (no args)
Read and display ~/.claude/knowledgebase/INDEX.md to show what's in the knowledgebase.
/kb add <category> <topic>
Categories: person, project, process, incident, context
- Ask the user what they want to record (or extract from conversation context)
- Write a markdown file to the appropriate subdirectory:
- person →
~/.claude/knowledgebase/people/<topic>.md - project →
~/.claude/knowledgebase/projects/<topic>.md - process →
~/.claude/knowledgebase/processes/<topic>.md - incident →
~/.claude/knowledgebase/incidents/<topic>.md - context →
~/.claude/knowledgebase/context/<topic>.md
- person →
- Update
~/.claude/knowledgebase/INDEX.mdwith a link to the new entry
/kb search <query>
- Use Grep to search across all files in
~/.claude/knowledgebase/for the query - Read matching files and present a summary of relevant knowledge
/kb learn
Extract knowledge from recent Slack conversations:
- Use slack_search_public_and_private to find recent messages in team channels
- Identify new people, projects, decisions, or context worth saving
- Present findings and ask which to save
When drafting Slack replies
Before drafting any Slack reply on behalf of the user:
- Read
~/.claude/knowledgebase/context/communication-style.md - Read
~/.claude/knowledgebase/people/team.mdto understand the relationship - Search the knowledgebase for any relevant project/context
- Draft the reply matching the user's tone and style