# Doc Lookup

Unified documentation lookup for Bug Hunter agents.

- Repository: https://github.com/codexstar69/bug-hunter (546 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add codexstar69/bug-hunter --skill doc-lookup -g -a claude-code -y`
Codex: `npx skills add codexstar69/bug-hunter --skill doc-lookup -g -a codex -y`
Cursor: `npx skills add codexstar69/bug-hunter --skill doc-lookup -g -a cursor -y`
Gemini CLI: `npx skills add codexstar69/bug-hunter --skill doc-lookup -g -a gemini-cli -y`

## Description

Unified documentation lookup for Bug Hunter agents. Uses Context Hub (chub) as primary source with Context7 API fallback. Provides verified library/framework documentation to prevent false positives and ensure correct fix patterns.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Doc Lookup, Verified Documentation Access

## Documentation Lookup (Context Hub + Context7 fallback)

When you need to verify a claim about how a library, framework, or API actually behaves, do NOT guess from training data. Look it up.

### When to use this

- "This framework includes X protection by default", verify it
- "This ORM parameterizes queries automatically", verify it
- "This function validates input", verify it
- "The docs say to do X", verify it
- Any claim about library behavior that affects your bug verdict

### How to use it

`SKILL_DIR` is injected by the orchestrator. Use it for all helper script paths.

The lookup script tries **Context Hub (chub)** first for curated, versioned docs, then falls back to **Context7** when chub doesn't have the library.

**Search for the library**
```bash
node "$SKILL_DIR/scripts/doc-lookup.cjs" search "<library>" "<what you need to know>"
```
Example: `node "$SKILL_DIR/scripts/doc-lookup.cjs" search "prisma" "SQL injection parameterized queries"`

This returns results from both sources with a `recommended_source` and `recommended_id`.

**Fetch documentation**
```bash
node "$SKILL_DIR/scripts/doc-lookup.cjs" get "<library-or-id>" "<specific question>"
```
Example: `node "$SKILL_DIR/scripts/doc-lookup.cjs" get "prisma/orm" "are raw queries parameterized by default"`

This fetches curated docs from chub if available, otherwise Context7 documentation snippets with code examples.

**Optional flags:**
- `--lang js|py`, language variant (for chub docs with multiple languages)
- `--source chub|context7`, force a specific source

### Rules

The rest: https://github.com/codexstar69/bug-hunter/blob/HEAD/skills/doc-lookup/SKILL.md
