/install docs-first
Docs-first
Why this exists
Your training data has a cutoff. Libraries, frameworks, and tools change after it — APIs get renamed, flags get deprecated, defaults flip, new versions ship breaking changes. The dangerous case is not "I don't know" (you'll search anyway); it's "I'm confident I know" while the library moved on six months ago. A confident answer from stale memory is worse than no answer, because the user trusts it and burns time debugging a call signature that no longer exists.
So the rule is simple: when a question is about a specific piece of software, go to its documentation before you answer — even if you think you already know.
When to trigger
Trigger when the request is about using a specific named tool, and the answer depends on facts that could have changed:
- API signatures, method/function names, arguments, return types
- Configuration: flags, env vars, config-file schema, defaults
- Installation, setup, version/compatibility constraints
- "How do I do X in Y" / "does Y support X" / "what changed in Y v…"
- Errors or stack traces coming from a specific tool
- Anything where you'd otherwise be reciting an API from memory
Software here means anything third-party: libraries, frameworks, packages, SDKs, CLI tools, runtimes, services, APIs, daemons, hardware SDKs.
When NOT to trigger
- Purely conceptual questions naming no specific tool ("what is a B-tree", "explain backpressure")
- General programming-language syntax that is stable and not tied to a library
- The user explicitly says they don't want a search, or pastes the docs themselves
- Pure opinion/architecture discussion where no specific API fact is being asserted
When in doubt, lean toward searching. The cost of an unnecessary search is a few seconds; the cost of a confident wrong API is the user's afternoon.
Procedure
- Identify the target and what fact you need. Name the library/tool and the specific thing (a function, a flag, a version behavior). This shapes the query.
- Search official sources (in any language — whatever reaches the authoritative source), in this priority order:
- Official site / hosted docs first (e.g.
docs.\x3Cproject>.\x3Ctld>, the project's documentation portal). Useweb_searchwith the project name + the specific term, thenweb_fetchthe actual doc page — snippets are too thin to answer from. - Official repository next, and as the primary source when there's no separate docs site (common for infra/research projects). Look at the repo's
README,docs/directory, and when needed the source itself or release notes /CHANGELOG. The repo is authoritative for projects whose docs lag behind the code. - Prefer the source that matches the version the user is on. If they didn't say, target the latest stable and say so.
- Official site / hosted docs first (e.g.
- Read enough to actually ground the answer. Fetch the relevant page(s). Don't answer off a search-result snippet. If the first source is thin or ambiguous, search again with different terms rather than filling the gap from memory.
- Answer, grounded. Base the substantive claims (signatures, flags, defaults, behavior) on what you read, not on prior memory. If docs and your memory disagree, the docs win.
- If nothing official is found: say so explicitly. Then you may answer from general knowledge, but flag it clearly as unverified against current docs and note what you'd want to check.
Output requirements
Answer in the user's language. Search the docs in whatever language gets you to the authoritative source fastest — English, the user's language, or whatever the project publishes in; language is not a constraint on where you look. Then write the response in whatever language the user is using.
Every answer produced under this skill MUST end with a single compact footer that is just a short hyperlink — nothing else. The visible link text is at most a couple of words (e.g. the project + "docs"); the full URL lives behind the link. Render it small/muted so it stays out of the way. Do NOT print the raw URL, and do NOT include a version.
Format (Markdown link, short anchor, full URL hidden inside):
\x3Cdirect answer, grounded in docs — in the user's language>
\x3Csub>📄 [vLLM docs](https://docs.vllm.ai/en/stable/features/structured_outputs/)\x3C/sub>
Rules for the footer:
- Visible text = max ~2 words (e.g.
vLLM docs,Tauri sidecar,repo README). The real page URL goes inside the link target, not on screen. - The link must point to the specific page you relied on, not the project homepage.
- No version, no "Source:" label, no bullet list, no extra lines.
- Multiple sources → at most two short links separated by
·, still on one line. - Use
\x3Csub>…\x3C/sub>(or the smallest emphasis the renderer supports) so the footer reads as fine print.
If you searched and the docs confirmed what you already believed, that's fine — still drop the short link, so the user can verify. The point isn't to be uncertain; it's to be checkable without clutter.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install docs-first - 安装完成后,直接呼叫该 Skill 的名称或使用
/docs-first触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Docs-first 是什么?
Consult official documentation BEFORE answering any question that involves a specific third-party library, framework, package, SDK, CLI tool, API, or program... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。
如何安装 Docs-first?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install docs-first」即可一键安装,无需额外配置。
Docs-first 是免费的吗?
是的,Docs-first 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Docs-first 支持哪些平台?
Docs-first 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Docs-first?
由 itoldis(@itoldis)开发并维护,当前版本 v1.0.0。