# Nia Docs

> Nia Docs is an Agent Skill for research published in the vibeeval/vibecosystem repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Search library documentation and code examples via Nia

- Skill name: `nia-docs`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/vibeeval/vibecosystem/blob/HEAD/skills/nia-docs/SKILL.md
- Repository: vibeeval/vibecosystem (515 GitHub stars when collected)

## SKILL.md

# 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
```bash
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
  --package fastapi --query "dependency injection"
```

### Search with specific registry
```bash
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
  --package react --registry npm --query "hooks patterns"
```

### Grep search for specific patterns
```bash
uv run python -m runtime.harness scripts/mcp/nia_docs.py \
  --package sqlalchemy --grep "session.execute"
```

### Universal search across indexed sources
```bash
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

```bash
# 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: https://www.openparable.com/skill/research/nia-docs (OpenParable). Cite the canonical URL above.
