xiaohongshu
xiaohongshu
doc-serve
Advanced document search with BM25 keyword matching, semantic vector search, and hybrid retrieval. Enables precise technical queries, conceptual understanding, and intelligent result fusion. Supports local document indexing and provides comprehensive search capabilities for knowledge bases.
Full skill instructions
doc-serve provides advanced document search capabilities with three powerful search modes: BM25 keyword search, semantic vector search, and intelligent hybrid retrieval. It indexes local documentation (Markdown, PDF, TXT) and enables precise technical queries, conceptual understanding, and comprehensive knowledge discovery.
doc-svr-ctl --version # Check CLI tools installed
doc-serve & # Start server in background
doc-svr-ctl status # Verify server health
doc-svr-ctl index /path/to/docs # Index documentation
# Choose search mode based on query type
doc-svr-ctl query "exact function name" --mode bm25 # Technical terms
doc-svr-ctl query "how concept works" --mode vector # Explanations
doc-svr-ctl query "complete solution" --mode hybrid # Best of both
| Query Type | Recommended Mode | Example |
|---|---|---|
| Technical terms | BM25 | "AuthenticationError" |
| Function names | BM25 | "recursiveCharacterTextSplitter" |
| Error codes | BM25 | "HTTP 404" |
| Explanations | Vector | "how authentication works" |
| Concepts | Vector | "best practices guide" |
| Mixed content | Hybrid | "implement OAuth with error handling" |
| Comprehensive | Hybrid | "complete troubleshooting guide" |
doc-serve & for interactive useUser: "What does the documentation say about AuthenticationError?"
Execution:
doc-svr-ctl query "AuthenticationError" --mode bm25 --threshold 0.2
Response: "According to auth_module.md, AuthenticationError is raised when credentials are invalid, with fields for username, timestamp, and failure reason."
User: "How does the authentication system work?"
Execution:
doc-svr-ctl query "authentication system flow" --mode vector --threshold 0.5
Response: "The authentication system uses a multi-step flow: credential validation, token generation with JWT, session management via Redis, and automatic logout after 30 minutes (from auth_overview.md)."
User: "Complete guide to implementing error handling"
Execution:
doc-svr-ctl query "error handling implementation guide" --mode hybrid --alpha 0.6 --top-k 8
Response: "Complete error handling implementation: 1) Exception hierarchy design, 2) Try-catch patterns, 3) Error logging with structured data, 4) User-friendly error messages, 5) Recovery strategies (from error_handling.md and logging_guide.md)."
| Mode | Speed | API Required | Best For |
|---|---|---|---|
| BM25 | ⚡ 10-50ms | ❌ No | Technical terms, exact matches |
| Vector | 🐌 800-1500ms | ✅ Yes | Concepts, explanations |
| Hybrid | 🐌 1000-1800ms | ✅ Yes | Comprehensive, best quality |
# Required for semantic search
export OPENAI_API_KEY="sk-proj-..."
export ANTHROPIC_API_KEY="sk-ant-..." # Optional
# Install tools
task install:global
# Configure API keys in .env file
cd doc-serve-server
echo "OPENAI_API_KEY=your-key-here" > .env
--scores--json for scripting# Automated searches in scripts
RESULT=$(doc-svr-ctl query "$QUERY" --mode hybrid --json)
echo "$RESULT" | jq '.results[0].text'
import requests
response = requests.post('http://localhost:8000/query/', json={
'query': 'authentication guide',
'mode': 'hybrid',
'alpha': 0.5
})
results = response.json()['results']
# Documentation validation in CI
doc-svr-ctl query "deprecated feature" --mode bm25 --threshold 0.1
if [ $? -eq 0 ]; then echo "Documentation search working"; fi
task install:global.env filedoc-serve &doc-svr-ctl index /path/to/docsdoc-svr-ctl query "test query"xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience