使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/legout/skills --skill effective-agent-skills开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Adapted from David Ondrej's `effective-agent-skills` at commit41cb3f03deb34567cd0d3d5eae016e6408cce1fa(MIT). Recurring-correction enforcement is adapted from Cursor's `poteto-mode` at commit93b00b89ef425a9c1bac0d0b317dfc49c930ac99(MIT, Copyright (c) 2026 Cursor).
Effective Agent Skills
Workflow
- Define one coherent capability or discipline.
- 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.
- Keep the ordinary execution path, safety gates, output contract, and verification loop in
SKILL.md. - Move uncommon detail into directly linked
references/; put fragile or repetitive logic in testedscripts/. - 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
nameand one concisedescriptionline. - 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
--helpover 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.

