Get the FREE Ultimate OpenClaw Setup Guide →

nia-docs

npx machina-cli add skill parcadei/Continuous-Claude-v3/nia-docs --openclaw
Files (1)
SKILL.md
1.7 KB

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

OptionDescription
--packagePackage name to search in
--registryRegistry: npm, py_pi, crates, go_modules (default: npm)
--querySemantic search query
--grepRegex pattern to search
--searchUniversal search across all indexed sources
--limitMax 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.

Source

git clone https://github.com/parcadei/Continuous-Claude-v3/blob/main/.claude/skills/nia-docs/SKILL.mdView on GitHub

Overview

Nia docs search lets you find library documentation and code examples across npm, PyPI, Crates, and Go modules. It indexes 3000+ packages and sources, enabling semantic searches, grep style queries, and universal scans. This accelerates API discovery and implementation by surfacing relevant docs and examples fast.

How This Skill Works

It runs the nia_docs.py tool via the NIA runtime harness to query an indexed corpus of package docs and code. You can perform semantic searches with --query, scope results with --registry, grep for exact patterns with --grep, or run a universal search with --search. Results are returned with an optional limit (--limit) to keep output concise.

When to Use It

  • When you need documentation or code examples for a specific package in npm, PyPI, Crates, or Go modules
  • When you want to explore a concept or API usage within a package through a semantic query
  • When you need to locate a specific function usage or pattern with a regex match
  • When you want to compare information across multiple sources with a universal search
  • When you want quick, example-driven references to guide integration work

Quick Start

  1. Step 1: Ensure NIA API access by setting NIA_API_KEY or running the nia server as configured
  2. Step 2: Run nia_docs search with a package and query, e.g. --package fastapi --registry npm --query dependency injection or use --grep for patterns
  3. Step 3: Review results, refine the query, and adjust --limit as needed

Best Practices

  • Target the right scope using --package and --registry to minimize noise
  • Start with --query for semantic results, then use --grep for exact patterns if needed
  • Use --search for cross-source exploration and --limit to control results
  • Validate results by cross-checking with official docs or source code
  • Iterate your query by refining keywords based on results

Example Use Cases

  • Semantic search for a Python library: pydantic with registry py_pi and query validators
  • React patterns search: react with query hooks patterns
  • Find a function usage via grep: express with grep app.use
  • Semantic search in a library: fastapi with query dependency injection
  • Universal search for middleware: error handling middleware across sources

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers