AGENT SKILL

<skill-name>

<short description>

License 许可
AGPL-3.0
最近更新
2026-08-15
Stars
★ 30
Forks
7

01 前言 Front Matter

name
<skill-name>
description
<short description>
allowed-tools
Read, Grep, Glob
argument-hint
[args]
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

<Skill Name>

Purpose

Describe what this skill does and when to use it.

Inputs

  • List required inputs

  • Template paths are resolved from ${AGENTS_SKILLS_ROOT}/<skill-name>/.

Steps

  1. Provide clear, ordered instructions.
  2. Keep actions explicit and verifiable.
  3. If this skill uses external command specs, reference them with placeholder paths: ${AGENTS_SKILLS_ROOT}/<skill-name>/commands/<file-name>.md.
    • Avoid fragile repo-root relative paths like ./commands/<file-name>.md.
  4. If this skill uses templates/... relative paths, resolve them from ${AGENTS_SKILLS_ROOT}/<skill-name>/.
  5. If this skill needs executable scripts, place them under ${AGENTS_SKILLS_ROOT}/<skill-name>/scripts/ (source path in repo: .agents/skills/<skill-name>/scripts/).
  6. Split intelligence vs determinism:
    • Use the LLM for intent parsing and decision-making.
    • Use scripts in tools/ for parsing, transforms, formatting, and API calls.
    • Define strict input/output contracts for each script.
  7. If the skill must be discoverable by OpenCode, run pnpm skills:register.

Deterministic Logic (Scripts)

  • List scripts in tools/ and their exact input/output schema.
  • Prefer JSON in/out for machine-readability.
  • Keep scripts idempotent and testable.

Output

  • Expected output format or success criteria.

04 同仓库更多 Skills