dist/codex/plugins/dev-tools/skills/looking-up-docs/SKILL.md
Find current, factual library/API/framework documentation through a tool-fallback chain. Use when the user says "look up docs", "how to use", "API for", "syntax for", "examples of", "show me the docs", or wants the latest/current/actual behavior of a library, framework, CLI, or API. NOT for comparisons, best-practice surveys, or recent ecosystem news — use researching-web. NOT for raw ctx7 CLI mechanics — that is context7-cli.
npx skillsauth add alexei-led/claude-code-config looking-up-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Get grounded, version-correct documentation for a library, framework, CLI, or API. Training data goes stale; never answer syntax or API questions from memory when a lookup tool is available.
This skill owns the lookup flow. Tool mechanics live elsewhere: ctx7 command
detail is in the context7-cli skill; exact per-platform web tool names are in
references/web-tools.md.
Use this skill for:
Do not use this skill as the primary workflow for:
researching-web.Run the tiers in order. Stop at the first tier that yields a grounded answer. State which tier produced the answer and whether any fallback was used.
ctx7)Best for versioned library and framework docs. Follow the context7-cli
workflow: identify the library and version from project files, resolve a
library ID with ctx7 library, then fetch docs with ctx7 docs. Show the
exact commands. See the context7-cli skill for command detail and limits.
Escalate to Tier 2 when: ctx7 is unavailable or not on PATH and the
package-runner fallback also fails; the CLI hits a rate or auth limit; or it
returns no useful match after one rephrase and one alternate library name.
Best for official docs, release notes, and current behavior not covered by
Context7. Query Perplexity with a focused, version-qualified question and
require URL-cited sources. The exact tool differs per platform — Perplexity MCP
on Claude, Codex, and Gemini; the Perplexity-backed web provider on Pi. See
references/web-tools.md.
Escalate to Tier 3 when: Perplexity is unavailable or unconfigured; it returns no usable citation; or the answer needs a specific page fetched verbatim.
Last resort. Every supported agent ships native web search and fetch: Claude
WebSearch + WebFetch; Codex built-in web search; Gemini google_web_search
web_fetch; Pi web_search / web_research. See references/web-tools.md
for exact identifiers. Find the official documentation URL, fetch it, and
ground the answer in the fetched page. Quote only the relevant part and cite
the URL.For a docs lookup, return:
If the user asks to describe the workflow, describe these tiers and the escalation rules instead of answering from memory.
tools
Idiomatic shell development for POSIX sh, Bash, Zsh, Fish, hooks, CI shell steps, and scriptable CLI glue. Use when writing or changing `.sh`, `.bash`, `.zsh`, `.fish`, `.bats`, shell functions, shell pipelines, or command-runner recipes. Emphasizes portability, quoting, safe filesystem/process handling, non-TUI CLI tools, ShellCheck, shfmt, Bats, and ShellSpec. NOT for Python, TypeScript, Go, web code, or infrastructure operations.
tools
Use when planning, executing, checkpointing, finishing, or inspecting lightweight spec-driven work. Runs one task at a time using `.spec/` markdown files and the bundled `specctl` helper. NOT for broad product discovery beyond a short requirement interview.
testing
Author, inspect, troubleshoot, and review infrastructure across IaC, Kubernetes, cloud resources, containers, CI/CD, and Linux hosts. Use when changing Terraform/OpenTofu, Kubernetes, Helm, Kustomize, Dockerfiles, GitHub Actions, AWS, GCP, Cloud Run, BigQuery, IAM, logs, instances, or service health. NOT for deploy/apply/rollback workflows (see deploying-infra). NOT for shell scripts or generic command pipelines (see writing-shell).
development
Configure safe git workflow hygiene: pre-commit/pre-push hooks, Gitleaks secret scanning, .gitignore rules, local git config, and guardrails. Use when setting up git hooks, gitleaks/git leaks, staged pre-commit checks, pre-push validation, core.hooksPath, .gitignore, or git config best practices. NOT for creating commits (use committing-code), cleaning branches/worktrees (use cleanup-git), or creating worktrees (use using-git-worktrees).