Dunc4nJ

nia-docs

0
0
# Install this skill:
npx skills add Dunc4nJ/agent-skills --skill "nia-docs"

Install specific skill from multi-skill repository

# Description

Search library documentation and code examples via Nia (package semantic search, regex grep, and universal search). Use when you need API docs/code examples across npm, PyPI, crates, or Go modules. Requires NIA_API_KEY.

# SKILL.md


name: nia-docs
description: Search library documentation and code examples via Nia (package semantic search, regex grep, and universal search). Use when you need API docs/code examples across npm, PyPI, crates, or Go modules. Requires NIA_API_KEY.
allowed-tools: [Bash, Read]


Nia Documentation Search

Run commands from this Skill folder (the directory that contains SKILL.md) so scripts/... paths resolve.

Usage

Semantic search in a package

uv run --with aiohttp python scripts/nia_docs.py \
  search package fastapi --registry py_pi --query "dependency injection"

Search with specific registry

uv run --with aiohttp python scripts/nia_docs.py \
  search package react --registry npm --query "hooks patterns"

Grep search for specific patterns

uv run --with aiohttp python scripts/nia_docs.py \
  search package sqlalchemy --registry py_pi --grep "session.execute"

Universal search across indexed sources

uv run --with aiohttp python scripts/nia_docs.py \
  search universal "error handling middleware" --limit 5

Options (common)

Option Description
search package <package> Search within a package
search universal <query> Universal search across indexed sources
--registry npm, py_pi, crates, go_modules (default: py_pi)
--query Semantic search query (for search package)
--grep Regex pattern (for search package)
--limit Max results (default varies by command)

API key

Set NIA_API_KEY in your environment (already configured in ~/.bashrc).

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.