跳到正文
Skillpedia
智能体48k · #4516

effective-agent-skills

它能做什么

这个技能可以帮你创建和审查 AI 智能体的详细指令,也就是 SKILL.md 文件。它能确保指令清晰、有用且安全,并说明智能体在不同情况下应该如何行动。

适用场景

  • ✓当你要为 AI 智能体创建一套新的指令时。
  • ✓当你要审查或改进现有的指令时。
  • ✓当你需要确保 AI 智能体遵循某个特定流程时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/effective-agent-skills/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/effective-agent-skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为一个 AI 智能体创建一套指令,帮我写邮件。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能通过 SKILL.md 这个特殊文件,告诉 AI 智能体该做什么、什么时候做、怎么做。它会把信息分成若干部分,只在需要时才加载,避免让智能体信息过载。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Agent Skills: A Complete Guide

When to Use

  • Use when creating, editing, reviewing, or debugging an agent SKILL.md file.
  • Use when you need quality guidance for triggers, examples, limitations, and safety notes.

A consolidated reference on what agent skills are, why they exist, how they work, and how to write effective ones.


1. What agent skills are

An Agent Skill is a folder containing a SKILL.md file (YAML frontmatter + markdown instructions), plus optional subfolders for scripts, references, and assets that the agent loads on demand.

my-skill/
├── SKILL.md          # Required: metadata + instructions
├── scripts/          # Optional: executable code (CLIs, validators, helpers)
├── references/       # Optional: detailed docs loaded only when needed
└── assets/           # Optional: templates, fonts, static files

Skills are an open standard (agentskills.io), originally created by Anthropic and adopted by OpenAI Codex, Cursor, Gemini CLI, Microsoft Agent Framework, Google ADK, and 40+ other agent products. A skill written once works across all compatible agents.


2. Why this abstraction exists

Base LLMs are generalists. Real work requires procedural knowledge, organizational context, and repeatable workflows. Every prior alternative had a failure mode:

Approach Problem
Stuff it into the system prompt Always loaded → context bloat at scale
Re-paste instructions each session No version control, no consistency
Fine-tuning Slow, expensive, opaque, vendor-locked
MCP servers alone Give the agent tools but no workflows for using them

Skills solve four problems at once:

  • Context efficiency — instructions load only when relevant
  • Repeatability — multi-step procedures become auditable workflows
  • Composability — multiple skills combine at runtime per task
  • Portability — same files work across vendors and surfaces

Mental model: skills are to LLMs what man pages, runbooks, and team handbooks are to engineers — reference material loaded into working memory only when the task demands it.


3. How they work — progressive disclosure

The architectural core. Three-stage loading:

Level 1 — Discovery (~100 tokens per skill, always in context): Only name + description from frontmatter are injected into the system prompt at startup. Agent knows the skill exists and when it applies. You can install dozens of skills with negligible overhead.

Level 2 — Activation (<5,000 tokens, loaded on match): When the user's request matches a skill's description, the agent reads the full SKILL.md body into context.

Level 3 — Execution (unbounded, on demand): The agent reads referenced files (references/foo.md) or runs scripts (scripts/validate.py) only as needed. Scripts can execute without their source being loaded into context at all.

This is why bundled content has no practical limit. Files don't consume tokens until accessed.


4. SKILL.md anatomy

---
name: skill-name
description: What this skill does AND when to use it. Include trigger phrases the user will say.
---

# Skill Name

## Quick start
[Minimal working example]

## Workflow
[Step-by-step procedure with checklists]

## Output format
[What the user/agent should expect back]

## Advanced
[Link to references/ for rarely-needed detail]

Frontmatter constraints:

  • name is lowercase, hyphens only, 1–64 chars, exactly matches the parent folder name
  • Avoid < and > in frontmatter (they can inject into the system prompt)
  • Invalid YAML silently prevents loading

Optional standard fields:

  • disable-model-invocation: true — stops the agent from auto-loading the skill based on the conversation; it can only be triggered manually (e.g. /skill-name). Now a standard Agent Skills spec field, so it works across spec-compliant clients (Claude Code, Copilot, etc.), not just Claude. Caveat: it prevents auto-invocation, but some clients (Claude Code, open bug) still inject the description into context, so it doesn't always save the discovery-level tokens. Use for manual-only utilities you don't want firing automatically.

5. Two design philosophies

Skills tend to fall into one of two patterns. Both are valid; they solve different problems.

Pattern A — Capability primitives (tool wrappers)

The skill is a thin wrapper over a deterministic CLI or script. Logic lives in code. SKILL.md teaches the agent how to invoke it.

…

常见问题

什么是 SKILL.md?

它是一个包含指令和元数据的文件,用来告诉 AI 智能体它能做什么,以及该怎么做。

为什么要用技能,而不是直接给指令?

技能会按需加载信息,帮助整理智能体的知识,让它更高效、表现更稳定。

技能是怎样工作的?

技能分三个阶段加载信息:先加载基本内容,需要时再加载细节,最后执行具体任务或查阅额外文件。

详情

作者的原始描述

Author and review high-quality agent skills with triggers, progressive disclosure, and safety notes.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4516
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能