legout/skills

effective-agent-skills

Write, review, and debug agent skills.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/legout/skills --skill effective-agent-skills

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Adapted from David Ondrej's `effective-agent-skills` at commit 41cb3f03deb34567cd0d3d5eae016e6408cce1fa (MIT). Recurring-correction enforcement is adapted from Cursor's `poteto-mode` at commit 93b00b89ef425a9c1bac0d0b317dfc49c930ac99 (MIT, Copyright (c) 2026 Cursor).

Effective Agent Skills

Workflow

  1. Define one coherent capability or discipline.
  2. Write the description first: capability and concrete triggers in one or two short sentences, important terms first. Add a boundary only to distinguish nearby skills; keep workflow steps in the body.
  3. Keep the ordinary execution path, safety gates, output contract, and verification loop in SKILL.md.
  4. Move uncommon detail into directly linked references/; put fragile or repetitive logic in tested scripts/.
  5. Test positive triggers, near-miss negatives, explicit invocation, execution, failure handling, and links.

Read the authoring guide for anatomy, design patterns, composition, security, and detailed examples.

Rules

  • Use valid YAML frontmatter with name and one concise description line.
  • Match the skill name to its leaf directory and keep names stable.
  • Use relative paths and one reference level; tell the agent exactly when to open each file.
  • Do not reteach general knowledge, bundle unrelated workflows, or include human-facing README files.
  • Preserve approval, publication, credential, destructive-action, and evidence-before-claim gates.
  • Prefer installed tools and --help over copied command catalogs.
  • When the same correction recurs, decide whether it belongs in concise prose, routing metadata, an evaluation, or executable enforcement. Prefer a lint rule, schema, metadata constraint, test, or script when prose repeatedly fails; do not automate subjective preferences that still require judgment.
  • Treat skills as code: validate, test, review, and version them.

Verification

Confirm frontmatter parses strictly, every local link resolves, scripts run, the skill triggers on intended prompts, nearby skills win their own prompts, and the shortest supported workflow still completes. Test description routing separately from workflow execution. Inspect actual SKILL.md loads, not the agent's self-report; check discovery and invocation settings before blaming the description.

来自同一仓库

更多 Skills

全部 Skills