AGENT SKILL

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

03 SKILL.md 正文

Official Sources

Procedure

  1. 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.

  2. 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.

  3. Verify non-trivial choices against sources for the detected version. Prefer:

    1. Official docs or official repo docs
    2. Official migration guides, changelogs, release notes, or blogs
    3. Standards docs, e.g. MDN/specs
    4. Compatibility refs, e.g. caniuse
    5. 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; prefer https://api.github.com/repos/<owner>/<repo>/releases/latest for current-version evidence instead of guessing release URL forms.
  4. Avoid weak sources. Do not rely on tutorials, Stack Overflow, forums, or AI summaries as primary authority.

  5. 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.
  6. Implement documented patterns. Use documented names, signatures, and recommended patterns. Avoid or flag deprecated, private, undocumented, or version-mismatched APIs.

  7. Handle conflicts. If official docs conflict with existing project conventions, state the conflict and ask whether to follow docs or project convention.

  8. 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 uncertainty
  • SOURCES: full URLs that affected decisions
  • NOTES: key documented choices
  • UNVERIFIED: 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

japurcell
japurcell/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.

产品经理
★ 0
japurcell
japurcell/skills

prd-ralph

Complete at most one eligible unfinished PRD task, verify it, log progress, and optionally create one scoped commit.

产品经理
★ 0
japurcell
japurcell/skills

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.

设计师
★ 0
japurcell
japurcell/skills

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.

★ 0
japurcell
japurcell/skills

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.

行政与办公人员
★ 0
japurcell
japurcell/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

内容创作者写作与文案
★ 0