official-sources
Use when code or guidance depends on a named framework, library, SDK, platform, or versioned API. Use when the user wants official documentation or authoritative sources. Use when the user mentions 'official docs', 'official sources', 'official documentation', or similar.
- License 许可
- MIT
- 所属仓库
- japurcell/skills
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- official-sources
- description
- Use when code or guidance depends on a named framework, library, SDK, platform, or versioned API. Use when the user wants official documentation or authoritative sources. Use when the user mentions 'official docs', 'official sources', 'official documentation', or similar.
02 资源文件 9
- 参考文档evals/evals.json8.2 KB
- 参考文档evals/files/agnostic-fixture/README.md92 B
- 参考文档evals/files/missing-version-fixture/requirements.txt7 B
- 脚本evals/files/missing-version-fixture/src/auth_flow.py68 B
- 参考文档evals/files/next-conflict-fixture/package.json127 B
- 脚本evals/files/next-conflict-fixture/src/use-dashboard-router.ts105 B
- 参考文档evals/files/react-router-fixture/package.json137 B
- 脚本evals/files/react-router-fixture/src/nav.ts159 B
- 脚本evals/grade_benchmark.py12.4 KB
03 SKILL.md 正文
Official Sources
Procedure
-
Detect version. Check available project files such as
package.json, lockfiles,pyproject.toml,requirements.txt,go.mod,Cargo.toml,composer.json,Gemfile,*.csproj, etc. State detected stack/version. -
Ask if needed. If version is missing and materially affects the answer, ask the user. Do not silently guess. If impact is minor, state assumptions.
-
Verify non-trivial choices against sources for the detected version. Prefer:
- Official docs or official repo docs
- Official migration guides, changelogs, release notes, or blogs
- Standards docs, e.g. MDN/specs
- Compatibility refs, e.g. caniuse
- For GitHub-hosted projects, use the GitHub Contents API (
GET https://api.github.com/repos/<owner>/<repo>/contents/{path}) to resolve repository files and directories before guessing raw source paths. Verify release URLs before recording them; preferhttps://api.github.com/repos/<owner>/<repo>/releases/latestfor current-version evidence instead of guessing release URL forms.
-
Avoid weak sources. Do not rely on tutorials, Stack Overflow, forums, or AI summaries as primary authority.
-
Use tools efficiently. If web/search/fetch tools are available:
- Fetch the specific relevant page, not a docs homepage.
- Prefer low-token text/markdown views when available and safe:
https://markdown.new/<target-url>,https://r.jina.ai/<target-url> - Use 1–3 authoritative URLs per decision; stop once verified.
- If Microsoft docs 301, retry the final versioned URL once, then stop.
-
Implement documented patterns. Use documented names, signatures, and recommended patterns. Avoid or flag deprecated, private, undocumented, or version-mismatched APIs.
-
Handle conflicts. If official docs conflict with existing project conventions, state the conflict and ask whether to follow docs or project convention.
-
Mark gaps. If official docs cannot be found or accessed, write:
UNVERIFIED: <point>.
Optional cache
If file access is available, reuse/save research in .agents/scratchpad/official-sources-cache.json, keyed by stack + version + topic. Reuse exact matches only.
Output when useful
STACK DETECTED:stack/version or uncertaintySOURCES:full URLs that affected decisionsNOTES:key documented choicesUNVERIFIED:none or list
Subagent delegation
Activate or load the delegate-to-subagents skill so that you delegate tasks to the most suitable subagents for each task type when useful.
Final check
- Version detected or uncertainty stated
- Official sources used for non-trivial API decisions
- Deprecated/undocumented/version-mismatched APIs avoided or flagged
- Citations included only where they affect the answer
04 同仓库更多 Skills
spec-create
Create or revise a portable behavioral SPEC for a feature or whole product. Use when specifying a new idea, documenting an existing system for reimplementation, or defining a change while preserving compatibility. Implementation planning is a separate task.
prd-ralph
Complete at most one eligible unfinished PRD task, verify it, log progress, and optionally create one scoped commit.
fsdp-style-guide
Mandatory for all UI/UX design, implementation, review, audit, or visual regression tasks. Always use for any work that affects user-facing appearance, behavior, accessibility, branding, layout, navigation, forms, dialogs, alerts, tables, or visual design.
agency-priorities
Provide self-contained USDA strategic goals and Forest Service priorities for agency briefings, proposals, and work-plan alignment. Use when explaining agency direction or evaluating how a project contributes to USDA and Forest Service priorities.
accomplishment-report
Create a concise Forest Service executive accomplishment report when all work in an ExecPlan is completed, or update its existing report. Use at ExecPlan closeout and when asked to report completed work, agency alignment, and estimated AI-assisted versus human-only time and cost savings.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.