
Nia
Give your coding agent grounded context from indexed repos, docs, papers, Slack, and Drive instead of guessing APIs.
Overview
Nia is an agent skill most often used in Build (also Idea research, Ship review) that indexes and searches external repos, docs, and connected sources so your agent answers from retrieved context.
Install
npx skills add https://github.com/nozomio-labs/nia-skill --skill niaWhat is this skill?
- Universal search across indexed repos, documentation URLs, HuggingFace datasets, and local folders
- Shell scripts for index/list/grep repos plus index documentation and package-oriented sources
- Optional connectors for Slack workspaces and Google Drive alongside trynia.ai API auth flows
- Designed to cut hallucinations by retrieving up-to-date external context inside agent workflows
- Requires NIA_API_KEY, curl, and jq for scripted index and search operations
Adoption & trust: 31.6k installs on skills.sh; 22 GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
Your agent invents API shapes and file paths because it cannot see your repos, vendor docs, or team Slack history in real time.
Who is it for?
Solo builders who live in agentic IDEs and need repeatable, scriptable retrieval across many external knowledge bases during feature work.
Skip if: Builders who only need a single static PDF summarized once with no ongoing index or API budget for trynia.ai.
When should I use this skill?
You need to index or search external repositories, documentation, research papers, datasets, local folders, Slack, Google Drive, or packages via Nia API scripts.
What do I get? / Deliverables
You index the sources that matter, run universal or grep search from scripts, and paste grounded excerpts into the next implementation or debug step.
- Indexed source entries in Nia
- Search and grep result excerpts for agent context
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Agents need external knowledge while implementing features and wiring integrations—Nia is shelved under agent tooling as the primary install moment. Indexing, universal search, grep, and source connectors are capabilities you add to the agent stack during build, not a one-off launch task.
Where it fits
Index rival open-source repos and ask how they structure billing webhooks before you commit to an architecture.
Index Stripe docs and grep your monorepo for existing webhook handlers while implementing checkout.
Search indexed upstream libraries to confirm your wrapper matches current auth flow signatures.
Re-query indexed internal docs after an incident to see whether runbooks changed since last deploy.
How it compares
Use as a retrieval layer for live corpora—not as a substitute for a local ripgrep-only workflow when everything already sits in one repo.
Common Questions / FAQ
Who is nia for?
Indie and solo developers using Claude Code, Cursor, or Codex who want agent sessions backed by indexed repositories, documentation sites, and optional Slack or Drive connectors.
When should I use nia?
During Build when wiring integrations and reading unfamiliar SDKs; during Idea research when comparing how competitors implement auth; during Ship review when verifying behavior against indexed upstream source; whenever hallucination risk is high and you need grep-level evidence.
Is nia safe to install?
It stores and uses an API key and calls external services—review the Security Audits panel on this page, rotate keys, and scope indexed sources before connecting production Slack or Drive.
SKILL.md
READMESKILL.md - Nia
# Nia Skill AI agent skill for [Nia](https://trynia.ai) - index and search code repositories, documentation, research papers, HuggingFace datasets, local folders, Slack workspaces, Google Drive, and packages. ## What is Nia? Nia provides tools for indexing and searching external repositories, research papers, documentation, packages, local folders, Slack workspaces, Google Drive, and performing AI-powered research. Its primary goal is to reduce hallucinations in LLMs and provide up-to-date context for AI agents. ## Setup 1. Get your API key: - Use `./scripts/auth.sh signup ...` then `./scripts/auth.sh bootstrap-key ...` - Or use `./scripts/auth.sh login-key <email> <password>` - Run `npx nia-wizard@latest` (guided setup) - Or sign up at [trynia.ai](https://trynia.ai) 2. Store the key: Set the `NIA_API_KEY` environment variable: ```bash export NIA_API_KEY="your-api-key" ``` Or use a config file: ```bash mkdir -p ~/.config/nia echo "your-api-key" > ~/.config/nia/api_key ``` > `NIA_API_KEY` takes precedence over the config file. 3. Requirements: `curl`, `jq` ## Usage ```bash # Index a repository ./scripts/repos.sh index "owner/repo" # List indexed repositories ./scripts/repos.sh list # Search all indexed sources ./scripts/search.sh universal "how does auth work?" # Index documentation ./scripts/sources.sh index "https://docs.stripe.com" # Grep repository code ./scripts/repos.sh grep "vercel/ai" "streamText" # Connect Slack workspace ./scripts/slack.sh register-token xoxb-your-token "My Workspace" # Search Slack messages SLACK_WORKSPACES=<id> ./scripts/search.sh query "question" # Connect Google Drive ./scripts/google-drive.sh install # Browse Drive items before indexing ./scripts/google-drive.sh browse <installation_id> ``` ## Scripts All scripts are in `./scripts/` and use subcommands: `./scripts/<script>.sh <command> [args...]` | Script | Description | |--------|-------------| | `auth.sh` | Programmatic signup and API key bootstrap/login | | `repos.sh` | Index, list, read, grep, tree for GitHub repositories | | `sources.sh` | Unified source management for docs, datasets, local folders, Slack, and Google Drive | | `search.sh` | Query specific sources, universal search, web search, deep research | | `oracle.sh` | Autonomous Oracle research agent (Pro) | | `tracer.sh` | Live GitHub code search without indexing (Pro) | | `slack.sh` | Slack workspace integration (OAuth, BYOT, channels, grep, messages) | | `google-drive.sh` | Google Drive OAuth, browsing, selection, indexing, and sync | | `papers.sh` | Index and list arXiv research papers | | `datasets.sh` | Index and list HuggingFace datasets | | `packages.sh` | Grep and search package source code (npm, PyPI, crates.io, Go, RubyGems) | | `folders.sh` | Local folder management via the unified `/sources` API | | `categories.sh` | Organize sources into categories | | `contexts.sh` | Cross-agent context sharing | | `deps.sh` | Dependency analysis and doc subscription | | `advisor.sh` | AI code advisor grounded in indexed sources | | `github.sh` | Live GitHub API search (glob, read, search, tree) | | `usage.sh` | API usage summary | ## Documentation See [SKILL.md](./SKILL.md) for detailed usage, environment variables, and the Nia-first workflow guide. ## License MIT --- slug: nia name: Nia description: Index and search code repositories, documentation, research papers, HuggingFace datasets, local folders, Slack workspaces, Google Drive, X (Twitter), and packages with Nia AI. Includes auth bootstrapping, Oracle autonomous research, GitHub live search, Tracer agent, dependency analysis, context sharing, code advisor, document agent, data extraction, filesystem operations, and generic connectors. homepage: https://trynia.ai --- # CRITICAL: Nia-First Workflow (Read This First) **NEVER use web fetch or web search without checking Nia sources first. NEVER skip this workflow.** 1. **Check what's indexed**: `./scripts/nia.