nia-docs
Search library documentation and code examples via Nia
Security Assessment
About nia-docs
The nia-docs skill is a powerful tool that enables users to search through a vast library of documentation and code examples across various programming languages and package registries. It connects users to over 3000 packages from popular registries such as npm, PyPI, Crates, and Go, allowing them to quickly access relevant information without manually browsing documentation sites. This skill is particularly useful for developers looking to find code examples, documentation, and solutions to specific problems they might encounter while coding or integrating external libraries into their projects.
This skill offers several search capabilities, including semantic searches to find code examples related to specific concepts, regex-based pattern searches, and universal searches across indexed sources. The ability to specify the registry (npm, py_pi, crates, go_modules) and limit the number of search results further enhances the search experience, making it efficient and highly tailored to the user's needs. The nia-docs skill can also search specific packages, such as React or FastAPI, to pinpoint documentation or examples directly related to a package's usage, significantly improving the development workflow. It is designed for developers who need fast access to well-organized documentation and code snippets without the hassle of manually searching through large repositories.
Use cases for nia-docs include searching for common patterns or best practices in a specific package, locating code snippets for libraries like FastAPI or React, finding common usage patterns with specific functions or modules, and quickly referencing documentation when building applications. Target users are primarily software developers working with popular libraries in Python, JavaScript, Go, and Rust who need efficient ways to access documentation and code examples to aid in their development tasks.
FAQ
How do I perform a semantic search with nia-docs?
To perform a semantic search, use the `--query` option along with the `--package` parameter. For example, `uv run python -m runtime.harness scripts/mcp/nia_docs.py --package fastapi --query 'dependency injection'`.
Can I search documentation from specific registries?
Yes, you can specify the registry to search in using the `--registry` option. Valid registries include npm, py_pi, crates, and go_modules (with npm as the default).
What are the requirements to use nia-docs?
To use nia-docs, you must have the `NIA_API_KEY` set in your environment or configure the `nia` server in the `mcp_config.json` file.
How can I limit the number of search results?
You can limit the number of search results by using the `--limit` option. The default limit is 5 results, but you can adjust it to any desired number.
Can I search for specific patterns in code examples?
Yes, you can use the `--grep` option to search for specific patterns using regex. For example, `--grep 'session.execute'` will search for occurrences of that pattern in the code examples.
Install nia-docs
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
parcadei/Continuous-Claude-v2