A Claude Code skill that lets you build and query knowledge bases through natural conversation using the Denser Retriever API.
No code required - just chat to upload documents, create knowledge bases, and search them with semantic search.
npx skills add denser-org/claude-skills@denser-retriever -g -yTalk to Claude Code to perform any Denser Retriever operation:
- Create knowledge bases - organize your documents into searchable collections
- Upload files - PDF, DOCX, PPTX, XLSX, HTML, CSV, TXT, XML, Markdown (up to 512MB)
- Import text - add raw text content directly
- Semantic search - find relevant passages across all your documents
- Manage everything - list, update, delete knowledge bases and documents
- Check account - view usage stats and credit balance
You: Upload all PDFs from ~/documents/ to a new knowledge base called "Research Papers"
Claude: I'll create the knowledge base and upload your files...
✓ Created KB "Research Papers" (id: abc-123)
✓ Uploaded paper1.pdf (processing...)
✓ Uploaded paper2.pdf (processing...)
✓ All documents processed and ready to search.
You: Search for "attention mechanism in transformers"
Claude: Found 5 results:
[Score: 4.2] "The attention mechanism allows the model to focus on
different parts of the input sequence..." - paper1.pdf
...
- Get an API key from retriever.denser.ai (Organization Settings > API Keys)
- Set the environment variable:
export DENSER_API_KEY="dr-your-key-here"
- Start chatting - the skill triggers automatically when you mention knowledge bases, document search, or semantic search
| What you say | What happens |
|---|---|
| "Create a knowledge base for HR docs" | Creates a new KB via API |
| "Upload employee-handbook.pdf to my KB" | Presigns, uploads, imports, polls until ready |
| "How many vacation days do I get?" | Semantic search across your KB |
| "List all my knowledge bases" | Lists KBs with IDs and dates |
| "Delete the test knowledge base" | Removes KB and all documents |
| "What's my credit balance?" | Shows remaining search credits |
All 13 endpoints of the Denser Retriever API:
| Category | Operations |
|---|---|
| Knowledge Bases | Create, List, Update, Delete |
| Documents | Presign Upload, Import File, Import Text, List, Delete, Check Status |
| Search | Query (with optional KB filtering, limit 1-50) |
| Account | Get Usage, Get Balance |
The skill provides Claude Code with the complete API reference so it can construct and execute curl commands on your behalf. It handles:
- Multi-step file uploads (presign URL > S3 PUT > import trigger)
- Polling for async document processing
- Batch operations for directories of files
- Error handling and status reporting
- Claude Code CLI
- A Denser Retriever account with API key
curlandpython3(for JSON formatting)
MIT