doc-lookup

GitHub

为Bug Hunter提供统一文档查询能力,通过Context Hub和Context7 API验证库行为声明,防止误判并确保证据准确的修复模式。

skills/doc-lookup/SKILL.md codexstar69/bug-hunter

Trigger Scenarios

需要验证框架或API的默认行为 确认ORM是否自动参数化查询 核实函数输入验证逻辑 任何影响漏洞判决的库行为声明

Install

npx skills add codexstar69/bug-hunter --skill doc-lookup -g -y
More Options

Use without installing

npx skills use codexstar69/bug-hunter@doc-lookup

指定 Agent (Claude Code)

npx skills add codexstar69/bug-hunter --skill doc-lookup -a claude-code -g -y

安装 repo 全部 skill

npx skills add codexstar69/bug-hunter --all -g -y

预览 repo 内 skill

npx skills add codexstar69/bug-hunter --list

SKILL.md

Frontmatter
{
    "name": "doc-lookup",
    "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."
}

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.

Step 1: Search for the library

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.

Step 2: Fetch documentation

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

  • Only look up docs when you have a SPECIFIC claim to verify. Do not speculatively fetch docs for every library in the codebase.
  • One lookup per claim. Don't chain 5 searches — pick the most impactful one.
  • If the API fails or returns nothing useful, say so explicitly: "Could not verify from docs — proceeding based on code analysis."
  • Cite what you found: "Per Express docs: [quote]" or "Prisma docs confirm that $queryRaw uses parameterized queries."

Version History

  • 8dedbbb Current 2026-07-24 16:56

Same Skill Collection

skills/commit-security-scan/SKILL.md
skills/fixer/SKILL.md
skills/hunter/SKILL.md
skills/recon/SKILL.md
skills/referee/SKILL.md
skills/security-review/SKILL.md
skills/skeptic/SKILL.md
skills/threat-model-generation/SKILL.md
skills/vulnerability-validation/SKILL.md
SKILL.md

Metadata

Files
0
Version
fa0cc06
Hash
3dc00972
Indexed
2026-07-24 16:56

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 22:19
浙ICP备14020137号-1 $mapa de visitantes$