跳到正文
Skillpedia
提示词与 LLM5.8k · #14553

create-skill

它能做什么

这项技能帮助你编写新的智能体技能。技能是一个包含 SKILL.md 文件的文件夹,用来教 AI 完成可重复的工作。适合希望把自己的专业经验打包成 AI 工具能够找到并使用的技能的人。

适用场景

  • ✓当你想从零开始创建一个新的智能体技能时。
  • ✓当你需要带有正确前置元数据和章节的 SKILL.md 文件的时候。
  • ✓当技能的描述需要编写得让 AI 真正能够识别并调用它的时候。

技能链接

https://github.com/dotnet/skills/blob/main/.agents/skills/create-skill/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请创建一个新的智能体技能,帮我撰写发布说明,并附上清晰的描述。”

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

工作原理

智能体会检查技能名称的规则,编写告诉 AI 何时使用该技能的描述,并构建包含用途、输入和工作流程章节的 SKILL.md。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Create Skill

This skill helps you scaffold new agent skills that conform to the Agent Skills specification and the dotnet/skills repository conventions.

When to Use

  • Creating a new skill from scratch
  • Generating a SKILL.md file with proper frontmatter
  • Setting up the skill directory structure with optional folders
  • Ensuring compliance with agentskills.io specification

When Not to Use

  • Modifying existing skills (edit directly instead)
  • Diagnosing or fixing a skill that fails its evaluation (use improve-skill-quality)
  • Writing the skill's eval.yaml (use create-skill-test)
  • Creating custom agents (use the agents/ directory pattern)

Inputs

Input Required Description
Skill name Yes Lowercase, alphanumeric, hyphens only (e.g., code-review, ci-triage)
Description Yes What the skill does and when agents should use it (1-1024 chars)
Purpose Yes One paragraph describing the outcome
Workflow steps Recommended Numbered steps the agent should follow

Workflow

Step 1: Validate the skill name

Ensure the name:

  • Contains only lowercase letters, numbers, and hyphens
  • Does not start or end with a hyphen
  • Does not contain consecutive hyphens
  • Is between 1-64 characters

Step 2: Write the description — it is the router

The description is the only text the runtime sees when deciding whether to load the skill. A perfect body behind a weak description never runs.

---
name: <skill-name>
description: <what it does>. USE FOR: <symptoms, error codes, artifact names, quoted user requests>. DO NOT USE FOR: <nearby-but-wrong intents, with the skill that owns them>.
---
  • Lead with an action verb and use the user's own words: symptoms, error codes (CS1501, MSTEST0014), artifact names (.testsettings, binlog), and requests phrased as a developer would type them.
  • Partition against sibling skills on the real discriminator, not the topic. "Does the abstraction already exist?" separates two skills; "testing" does not. Add the matching exclusion to both siblings.
  • Claim the ambiguous words that would otherwise route to a sibling. If prompts say "review my tests" and a sibling owns "review", say so explicitly.
  • Check every DO NOT USE FOR clause against the scenarios the skill exists to serve — an exclusion like "already on v3" can lock out the post-upgrade fixes that are the skill's purpose.
  • Budget: 1,024 characters per description, and the whole plugin's rendered skill menu is also budgeted. A helper/reference catalog can set disable-model-invocation: true to free menu space. It remains a readable resource, not a skill the model can invoke by name. Consumers read the catalog or its bundled files directly using the supplied catalog path (the staged path in native evaluation). Resolve bundled-file paths relative to the catalog, not the project workspace.
  • No XML tags. Claude (claude.ai and Claude Code marketplace sync) rejects descriptions containing tag-like text such as Vector<T> or <Import>. Spell it out in words ("generic Vector type", "Import element"); skill-validator check fails on it.

Step 3: Write for delta over the baseline model

Every skill is scored head-to-head against the same model with no skill loaded. Content the model already produces unaided is worth zero; content that makes it slower or more hedged is worth less than zero. See improve-skill-quality/references/writing-for-baseline-delta.md for the full evidence.

Do Instead of
Encode the decision the model would otherwise get wrong Restating API signatures it already reproduces
"When A, do B, never C, verify D" tables Lists of plausible alternatives
A concrete output contract (exact command, verdict line, findings table) "Consider…", "you may want to…"
Scale output structure to input size A 12-section dashboard for an 8-test suite
Stop-conditions that prevent over-applying Acting before measuring, rewriting working code
Instructing the agent to discover repo paths Marking discoverable paths as required inputs
Reporting restore/build/test failures truthfully Claiming success after a failed command
Verifying load-bearing API claims by compiling or probing Trusting a source read
Gating rare or expensive paths behind references/ One l
常见问题

什么样的描述才好?

描述是 AI 在判断是否使用该技能时阅读的文字,因此应说明何时使用。

名称有什么规则?

名称只能使用小写字母、数字和连字符,且不能以连字符开头或结尾。

它也会编写测试吗?

不会。测试规格由单独的技能编写。

详情

作者的原始描述

Scaffolds new agent skills for the dotnet/skills repository. Use when creating a new skill, generating SKILL.md files, writing a skill description that the runtime will actually route to, or setting up skill directory structures. Handles frontmatter generation, section templates, and validation guidance. Do not use for fixing a skill that already fails its evaluation (use improve-skill-quality) or for writing eval.yaml (use create-skill-test).

repo: dotnet/skills

热度

GitHub 星标
5.8k
排名
#14553
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能