Searches documentation and code examples for thousands of software packages via semantic search or grep.

Install

mkdir -p .claude/skills/nia-docs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6270" && unzip -o skill.zip -d .claude/skills/nia-docs && rm skill.zip

Installs to .claude/skills/nia-docs

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Search library documentation and code examples via Nia
54 charsno explicit “when” trigger
Beginner

Key capabilities

  • Search library documentation
  • Find code examples
  • Filter examples with regex
  • Search across multiple registries

How it works

It performs semantic or regex-based searches across indexed package repositories to return relevant examples.

Inputs & outputs

You give it
Search query or regex
You get back
Documentation snippets and code examples

When to use nia-docs

  • Find usage examples for specific library functions
  • Search for patterns in React hooks
  • Look up Python library API documentation
  • Filter library examples using regex

About this skill

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.

When not to use it

  • Offline environments
  • Non-indexed packages

Prerequisites

NIA_API_KEYNia server configuration

Limitations

  • Requires API key
  • Limited to indexed packages

How it compares

It provides targeted code examples from indexed sources rather than generic web search.

Compared to similar skills

nia-docs side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
nia-docs (this skill)17moReviewBeginner
clojure-write162moNo flagsIntermediate
unit-testing-test-generate24moReviewIntermediate
designing-tests15moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry