nia-docs
Search library documentation and code examples via Nia
When & Why to Use This Skill
The Nia Documentation Search skill for Claude is a high-performance developer utility designed to streamline technical research. It enables users to search across 3,000+ packages from major registries including npm, PyPI, Crates, and Go. By providing semantic search, regex-based grep capabilities, and universal documentation queries, it allows developers to find precise code examples and API references instantly, significantly reducing the time spent switching between the IDE and browser documentation.
Use Cases
- 1. Rapid API Implementation: Quickly retrieve syntax and usage patterns for specific library features, such as FastAPI dependency injection or React Hooks, directly within the chat.
- 2. Code Pattern Discovery: Use grep-style searching to find real-world examples of specific function calls (e.g., 'session.execute' in SQLAlchemy) to understand best practices.
- 3. Cross-Registry Research: Compare how different ecosystems handle similar logic by performing universal searches for concepts like 'error handling middleware' across multiple programming languages.
- 4. Debugging and Troubleshooting: Locate specific documentation sections or code snippets to resolve integration issues or clarify complex library behaviors without leaving the development context.
| name | nia-docs |
|---|---|
| description | Search library documentation and code examples via Nia |
| allowed-tools | [Bash, Read] |
Nia Documentation Search
Search across 3000+ packages (npm, PyPI, Crates, Go) and indexed sources for documentation and code examples.
Usage
Semantic search in a package
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--package fastapi --query "dependency injection"
Search with specific registry
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--package react --registry npm --query "hooks patterns"
Grep search for specific patterns
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--package sqlalchemy --grep "session.execute"
Universal search across indexed sources
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--search "error handling middleware"
Options
| Option | Description |
|---|---|
--package |
Package name to search in |
--registry |
Registry: npm, py_pi, crates, go_modules (default: npm) |
--query |
Semantic search query |
--grep |
Regex pattern to search |
--search |
Universal search across all indexed sources |
--limit |
Max results (default: 5) |
Examples
# Python library usage
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--package pydantic --registry py_pi --query "validators"
# React patterns
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--package react --query "useEffect cleanup"
# Find specific function usage
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
--package express --grep "app.use"
Requires NIA_API_KEY in environment or nia server in mcp_config.json.