Claude Collective Intelligence (CCI) Skill
Search the shared knowledge base for existing solutions before solving problems from scratch.
When to Use
- User asks about common programming problems
- User mentions "CCI", "knowledge base", or "collective intelligence"
- You're about to solve a problem that might have been solved before
- User wants to find what solutions exist for a topic
How to Search
Use the CCI CLI to search the knowledge base:
# Set the CCI repo path
export CCI_REPO="$HOME/code/claude-collective-intelligence"
# Search for relevant entries
node "$CCI_REPO/src/search.js" "your search query"
# For verbose output (full solutions)
node "$CCI_REPO/src/search.js" -v "your search query"
# View stats
node "$CCI_REPO/src/search.js" --stats
# List recent entries
node "$CCI_REPO/src/search.js" --list 5
Response Format
When you find relevant entries:
- Summarize the most relevant solution found
- Adapt it to the user's specific context
- Credit the source (date and contributor if available)
- Offer to show more results if available
When no entries match:
- Let the user know you checked CCI but found no matches
- Proceed to solve the problem normally
- Suggest saving the solution to CCI when done
Example Queries
- "search CCI for react hooks typescript"
- "check knowledge base for API authentication patterns"
- "find CCI entries about docker deployment"
After Solving New Problems
Remind users they can save successful solutions:
"This solution worked! Would you like to save it to CCI for future reference? Just say 'save to CCI' and I'll help capture it."
To manually add an entry:
node "$CCI_REPO/bin/cci.js" add
微信扫一扫