AI Nervous System - Document Intelligence
Vector search and AI-powered document processing skills for OpenClaw integration
Best use case
AI Nervous System - Document Intelligence is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Vector search and AI-powered document processing skills for OpenClaw integration
Teams using AI Nervous System - Document Intelligence should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ai-nervous-system-document-intelligence/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How AI Nervous System - Document Intelligence Compares
| Feature / Agent | AI Nervous System - Document Intelligence | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Vector search and AI-powered document processing skills for OpenClaw integration
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Document Intelligence Skills
These skills enable OpenClaw (Moltbot) to interact with the AI Nervous System's
document processing pipeline via Telegram, Discord, or other interfaces.
## Skills
### document_upload
**Purpose:** Upload a document for AI processing (summarization + vector embedding)
**Trigger Phrases:**
- "upload document"
- "process file"
- "index document"
- "add to knowledge base"
**Parameters:**
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| file_path | string | Yes | Path to the document file |
| file_url | string | No | URL to download document from |
**API Endpoint:**
```
POST http://localhost:8000/upload
Content-Type: multipart/form-data
file: <binary file data>
```
**Response Schema:**
```json
{
"message": "Document uploaded successfully",
"document": {
"id": 1,
"filename": "example.md",
"status": "processing",
"summary": null,
"created_at": "2024-01-01T00:00:00Z"
}
}
```
**Instructions:**
1. Accept file from user (attachment or path)
2. POST to /upload endpoint with multipart form data
3. Return document ID and initial status
4. Optionally poll /status/{doc_id} for completion
5. Return AI summary when processing completes
**Example Interaction:**
```
User: Upload this research paper
Bot: Uploading document... Created document #42
Bot: Processing with Ollama (llama3.2:3b)...
Bot: Complete! Summary:
• Key finding 1
• Key finding 2
• Key finding 3
```
---
### document_search
**Purpose:** Semantic vector search across indexed documents
**Trigger Phrases:**
- "search documents for"
- "find files about"
- "what documents mention"
- "search knowledge base"
**Parameters:**
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| query | string | Yes | - | Natural language search query |
| limit | integer | No | 5 | Max results to return (1-20) |
**API Endpoint:**
```
GET http://localhost:8000/search?q={query}&limit={limit}
```
**Response Schema:**
```json
{
"query": "machine learning optimization",
"results": [
{
"id": 1,
"filename": "ml_paper.md",
"summary": "This document covers...",
"similarity": 0.89
}
],
"count": 1
}
```
**Instructions:**
1. Parse user's search intent into query string
2. GET /search with URL-encoded query
3. Format results with similarity scores
4. Highlight high-relevance (>0.7) matches
5. Include document summaries in response
**Example Interaction:**
```
User: Search for documents about Python async patterns
Bot: Found 3 relevant documents:
📄 CLAUDE.md (89% match)
Summary: Project uses async/await patterns with FastAPI...
📄 api_design.txt (72% match)
Summary: Guidelines for async endpoint design...
📄 notes.md (58% match)
Summary: Meeting notes discussing concurrency...
```
---
### document_status
**Purpose:** Check processing status of a specific document
**Trigger Phrases:**
- "status of document"
- "is document ready"
- "check processing"
**Parameters:**
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| doc_id | integer | Yes | Document ID to check |
**API Endpoint:**
```
GET http://localhost:8000/status/{doc_id}
```
**Response Schema:**
```json
{
"id": 1,
"filename": "example.md",
"status": "completed",
"summary": "AI-generated summary...",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:01:00Z"
}
```
**Status Values:**
- `pending` - Queued for processing
- `processing` - Ollama is analyzing
- `completed` - Ready with summary and embedding
- `error` - Processing failed
---
## Autonomous Behaviors
### Proactive File Watcher
The Document Intelligence module includes an autonomous file watcher that monitors:
- `~/Downloads`
- `~/Documents/ToProcess`
When new `.txt`, `.md`, or `.pdf` files appear, they are automatically:
1. Uploaded to the FastAPI backend
2. Processed with Ollama for summarization
3. Embedded with nomic-embed-text for vector search
4. Added to the knowledge base
**Notification Pattern:**
```
Bot: 🔔 New document detected: research_paper.pdf
Bot: Processing...
Bot: ✅ Indexed! Summary: [3 bullet points]
```
### Heartbeat Monitor
Every 30 minutes, the system audits the document pipeline:
- Checks for stuck documents (processing > 10 min)
- Retries failed Ollama tasks
- Prepares daily intelligence briefing
---
## Integration Notes
### For Telegram Bot:
```python
@bot.message_handler(content_types=['document'])
async def handle_document(message):
file_info = await bot.get_file(message.document.file_id)
# Download and POST to /upload
```
### For Discord Bot:
```python
@bot.event
async def on_message(message):
if message.attachments:
for attachment in message.attachments:
# Download and POST to /upload
```
### Cold War Jazz Aesthetic
All responses should maintain the tactical intelligence aesthetic:
- Use `[INTEL]`, `[CLASSIFIED]`, `[BRIEFING]` prefixes
- Monospace formatting for data
- Teal (#4a9c94) for success, Amber (#d4a56a) for processingRelated Skills
code-documentation-code-explain
You are a code education expert specializing in explaining complex code through clear narratives, visual diagrams, and step-by-step breakdowns. Transform difficult concepts into understandable expl...
business-intelligence
Expert business intelligence covering dashboard design, data visualization, reporting automation, and executive insights delivery.
agent-memory-systems
Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them. Key insight: Memory isn't just storage - it's retrieval. A million stored facts mean nothing if you can't find the right one. Chunking, embedding, and retrieval strategies determine whether your agent remembers or forgets. The field is fragm
agent-embedded-systems
Expert embedded systems engineer specializing in microcontroller programming, RTOS development, and hardware optimization. Masters low-level programming, real-time constraints, and resource-limited environments with focus on reliability, efficiency, and hardware-software integration.
agent-context-system
A persistent local-only memory system for AI coding agents. Two files, one idea — AGENTS.md (committed, shared) + .agents.local.md (gitignored, personal). Agents read both at session start, update the scratchpad at session end, and promote stable patterns over time. Works across Claude Code, Cursor, Copilot, Windsurf. Subagent-ready. No plugins, no infrastructure, no background processes.
active-learning-system
Эксперт active learning. Используй для ML с участием человека, uncertainty sampling, annotation workflows и labeling optimization.
33GOD System Expert
Deep knowledge expert for the 33GOD agentic pipeline system, understands component relationships and suggests feature implementations based on actual codebase state
animation-system
Implements animation systems using AnimationPlayer, AnimationTree, blend trees, and procedural animation. Use when creating character animations and visual effects.
system-create-cli
Generate production-quality TypeScript CLIs with full documentation, error handling, and best practices. Creates deterministic, type-safe command-line tools following PAI's CLI-First Architecture. USE WHEN user says "create a CLI", "build a command-line tool", "make a CLI for X", or requests CLI generation. (user)
email-systems
Email has the highest ROI of any marketing channel. $36 for every $1 spent. Yet most startups treat it as an afterthought - bulk blasts, no personalization, landing in spam folders. This skill covers transactional email that works, marketing automation that converts, deliverability that reaches inboxes, and the infrastructure decisions that scale. Use when: keywords, file_patterns, code_patterns.
Argentine Invoice Processing System
Complete invoice processing system for Argentine utility bills with OCR, classification, and automated organization
Documents
Read, write, convert, and analyze documents — routes to PDF, DOCX, XLSX, PPTX sub-skills for creation, editing, extraction, and format conversion. USE WHEN document, process file, create document, convert format, extract text, PDF, DOCX, XLSX, PPTX, Word, Excel, spreadsheet, PowerPoint, presentation, slides, consulting report, large PDF, merge PDF, fill form, tracked changes, redlining.