提示词与 LLM8.2k · #12555
skill-creator
它能做什么
这项技能在你的 AI 为其编写新的技能文件时提供指导。适合希望记录一种重复工作方式,让 AI 能稳定遵循的人。
适用场景
- ✓当某种模式反复出现,而 AI 需要清晰指导的时候。
- ✓当你的项目约定不同于通用的最佳实践,需要写下来的时候。
- ✓当一个复杂的工作流程需要 AI 能够遵循的分步指令的时候。
技能链接
https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/skill-creator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/skill-creator/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add Gentleman-Programming/gentle-ai --skill skill-creator
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/internal/assets/skills/skill-creator/SKILL.md -o SKILL.md
可以这样问 AI
“请创建一个新的技能,告诉 AI 我们如何为这个产品撰写发布说明。”
每周 5 个新技能,1 分钟读完。
工作原理
技能要求指令简短,并以便于另一个 AI 阅读的方式编写。代码模板放在资源文件夹中,背景说明放在参考文件中,并使用有效的前置元数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Activation Contract
Create a skill when:
- A pattern is used repeatedly and AI needs guidance
- Project-specific conventions differ from generic best practices
- Complex workflows need step-by-step instructions
- Decision trees help AI choose the right approach
Do not create a skill when the pattern is trivial, one-off, or better served by normal documentation.
Hard Rules
- When working in this repo, first follow
docs/skill-style-guide.mdas the normative source before creating or updating skills. - For installed global skills, use
references/skill-style-guide.mdas the bundled local copy of that guide whendocs/skill-style-guide.mdis unavailable. - If neither guide is available, use the compact inline rules below.
- A skill is a runtime instruction contract for an LLM, not human documentation.
- Do not add a
Keywordssection; preserve essential trigger words indescription. - References must point to local files.
- Keep the skill body concise: target 180–450 tokens, recommended max 700, hard max 1000.
Decision Gates
| Need | Action |
|---|---|
| Code templates, schemas, fixtures, generated examples | Put them in assets/ |
| Conceptual detail, edge cases, existing docs | Put local links in references/ |
Long explanation in SKILL.md |
Move it to a supporting file |
| Multiple meaningful paths | Add a compact decision table |
Execution Steps
- Check whether
docs/skill-style-guide.mdexists; if it does, apply it before the bundled local copy or inline fallback rules. - If the repo guide is unavailable, read
references/skill-style-guide.mdand apply it before the inline fallback rules. - Confirm the skill does not already exist and the pattern is reusable.
- Create or update
skills/{skill-name}/SKILL.mdusing this required structure:
skills/{skill-name}/
├── SKILL.md # Required - main skill file
├── assets/ # Optional - templates, schemas, examples
│ ├── template.py
│ └── schema.json
└── references/ # Optional - links to local docs
└── docs.md # Points to docs/developer-guide/*.mdx
- Use this frontmatter shape:
---
name: {skill-name}
description: "Trigger: {essential trigger words users or agents will say}. {What this skill does}."
license: Apache-2.0
metadata:
author: "{your-github-username}"
version: "1.0"
---
- Write sections in this order: Activation Contract, Hard Rules, Decision Gates, Execution Steps, Output Contract, References.
- Register the skill in
AGENTS.mdwhen it is a project skill.
Inline Fallback Rules
descriptionMUST be one physical line, quoted, YAML-safe, and include essential trigger words first.descriptionSHOULD be <=160 chars and MUST be <=250 chars.- Frontmatter MUST include
name,description,license,metadata.author, andmetadata.version. - Use imperative instructions, not tutorials or background prose.
- Put supporting material in
assets/orreferences/, not the main skill body.
Good:
description: "Trigger: Jira task, ticket, issue, task creation. Create Jira tasks in the team format."
Bad:
description: >
Create Jira tasks in the team format.
Trigger: Jira task, ticket, issue, or task creation.
Keywords: jira, task
Output Contract
Return:
- Files created or modified.
- Whether the repo style guide or inline fallback rules were used.
- Any AGENTS.md registration change.
- Any supporting files added under
assets/orreferences/.
References
docs/skill-style-guide.md— normative LLM-first skill style guide for this repo.references/skill-style-guide.md— bundled local copy for installed global skills when the repo doc is unavailable.
常见问题
什么样的技能文件才算好?
它简短,使用清晰的判断步骤,并指向本地的辅助文件以获取细节。
什么时候不应该创建技能?
当模式很简单、只出现一次,或者用普通文档更合适的时候。
有长度限制吗?
有。技能要求主体简洁,目标是几百个 token。
详情
作者的原始描述
Trigger: new skills, agent instructions, documenting AI usage patterns. Create LLM-first skills with valid frontmatter.
热度
- GitHub 星标
- 8.2k
- 排名
- #12555
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …