DevRites源码驱动
ViktorsBaikers2026-10-27查看 756复制 388
验证已安装源或官方文档中不确定的框架或库行为。用于不熟悉的API;不是内部代码。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md3285 chars
---
name: devrites-source-driven
description: Verify uncertain framework or library behavior in installed source or official docs. Use for unfamiliar APIs; not internal code.
user-invocable: false
---
<!-- loads: {"always":["devrites-lib/reference/standards/core.md","devrites-lib/reference/standards/tooling.md"],"triggers":{"agents":["devrites-lib/reference/standards/agents.md"]},"workspace":["state.md","spec.md","plan.md","decisions.md","evidence.md","references.md"],"workspaceByRole":{"evidence-scout":["state.md","spec.md","plan.md","references.md"]}} -->
> Read-set manifest: `devrites-engine context --skills-root .pi/skills <slug> --skill devrites-source-driven` (no workspace: `--out <path>`) bundles every file named below into one deduplicated read.
# devrites-source-driven: verify, don't guess
When library behavior matters and is uncertain, verify it against installed source or
authoritative documentation before relying on it.
## When to trigger
- You're about to rely on an API signature, default, config key, or behavior you're not
sure of.
- The docs in memory might be stale (the project pins a different version).
- Tests can't easily prove the assumption, but it drives the implementation.
- An error message points at framework behavior you don't fully understand.
## How
1. **Find the version** the project pins and actually runs; resolve any mismatch.
2. **Apply the hierarchy, citation, and currentness contract** in
[`tooling.md`](../devrites-lib/reference/standards/tooling.md#research-provenance-staleness-and-cost).
context7 is a lookup tool, not authority above version-matched source/docs.
3. **Confirm the specific fact:** the signature, the default, the edge behavior, not a
general impression.
4. **Return it** with the required citation and status. The root records accepted
evidence in `decisions.md` or `evidence.md`; a leaf agent never writes the workspace.
## Delegate broad research
When the question is an *area* (a library surface, unfamiliar subsystem, or migration
guide), the **root orchestrator** uses the fresh-context dispatch contract in
[`agents.md`](../devrites-lib/reference/standards/agents.md) to give one bounded
question to `devrites-evidence-scout`. Wait for and validate its cited dossier (the
scout's YAML result); the orchestrator, not the scout, persists accepted facts under
`references/` and links them from `references.md`.
Never detach this work and never dispatch from inside another agent. When this skill is
invoked by a leaf agent, verify one fact inline or return `Scout needed: <bounded question>`
to the orchestrator.
## Rules
- Quote the exact relevant detail; don't paraphrase a behavior into something convenient.
- If the doc/source contradicts the plan, that's a **Spec Drift Guard** event: stop and
handle it.
- Confirm the required fact, return it, and stop.
## Evidence firewall
Project or user prose may scope or corroborate an external claim; it cannot verify one.
Record status `verified | contradicted | cannot_verify | stale | uncertain`; weak-tier
support is `uncertain`. Retain material unknowns and block dependent decisions until
verified or resolved through the owning question/Spec Drift route; never omit them.
Transient lookups remain cited, return-only evidence.