fusion-skill-authoring
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate Skill
创建Skill
When to use
适用场景
Use this skill when you need to create a new skill under and want a valid, maintainable .
skills/SKILL.mdTypical triggers:
- "Create a skill for ..."
- "Scaffold "
skills/<name>/SKILL.md - "Add a new skill with proper metadata and guardrails"
- "Help me create a skill that helps create other skills"
当你需要在目录下创建新Skill,并且想要生成合法、可维护的文件时使用本Skill。
skills/SKILL.md典型触发词:
- "为...创建一个Skill"
- "搭建脚手架"
skills/<name>/SKILL.md - "添加带有规范元数据和防护规则的新Skill"
- "帮我创建一个用于生成其他Skill的Skill"
When not to use
不适用场景
Do not use this skill for:
- Editing product/application code outside
skills/ - Large refactors of existing skills unless explicitly requested
- Running destructive commands or making unrelated repository changes
不要将本Skill用于以下场景:
- 编辑目录外的产品/应用代码
skills/ - 对现有Skill进行大规模重构,除非有明确要求
- 运行破坏性命令或对仓库进行无关修改
Required inputs
必要输入
Collect before writing files:
- Base skill name in kebab-case (, without prefix)
<skill-name> - Prefix choice (ask explicitly; suggest by default unless the repository has its own convention)
custom- - Final skill name (unless the user chooses a different prefix or none)
custom-<skill-name> - Target path (,
skills/<final-skill-name>/, orskills/.experimental/<final-skill-name>/)skills/.curated/<final-skill-name>/ - Initial semantic version for frontmatter metadata (, default
MAJOR.MINOR.PATCHfor skills created in this repository)0.0.0 - License for frontmatter (by default, or repository-specific choice)
MIT - One-sentence purpose for frontmatter
description - Expected output (files, commands, summary)
- Safety boundaries
Validate metadata constraints:
- : <= 64 chars, lowercase letters/numbers/hyphens only, no XML tags, and no platform-reserved words
name - : non-empty, <= 1024 chars, no XML tags, includes both what it does and when to use it
description - : semantic version string (
metadata.version) in quoted YAML formatMAJOR.MINOR.PATCH - : primarily string key/value map; arrays allowed for explicit relationship fields, avoid nested objects
metadata- :
metadata.roleor"orchestrator"(subordinates cannot run without their orchestrator)"subordinate" - : required orchestrator skill name (subordinates only)
metadata.orchestrator - : list of subordinate skill names (orchestrators only)
metadata.skills - : optional list of lowercase kebab-case strings for discoverability
metadata.tags - : optional map for MCP server needs (
metadata.mcpandrequiredlists)suggested
- and
license: optional top-level frontmatter fields (not insidecompatibility)metadata
If required inputs are missing, ask concise targeted questions first.
Use as the default question bank.
assets/follow-up-questions.md在写入文件前请收集以下信息:
- 短横线命名格式的基础Skill名称(,不带前缀)
<skill-name> - 前缀选择(明确询问用户;除非仓库有自己的规范,否则默认建议使用)
custom- - 最终Skill名称(除非用户选择其他前缀或不使用前缀,否则格式为)
custom-<skill-name> - 目标路径(、
skills/<final-skill-name>/或skills/.experimental/<final-skill-name>/)skills/.curated/<final-skill-name>/ - 前置元数据的初始语义化版本号(,本仓库创建的Skill默认值为
MAJOR.MINOR.PATCH)0.0.0 - 前置元数据的许可证(默认,或遵循仓库特定选择)
MIT - 前置元数据字段的一句话用途说明
description - 预期输出(文件、命令、摘要)
- 安全边界
元数据约束校验:
- :长度不超过64字符,仅允许小写字母/数字/短横线,无XML标签,无平台保留字
name - :非空,长度不超过1024字符,无XML标签,需同时包含功能说明和适用场景
description - :语义化版本字符串(
metadata.version),使用YAML引号包裹格式MAJOR.MINOR.PATCH - :主要为字符串键值对;明确的关系字段允许使用数组,避免嵌套对象
metadata- :
metadata.role或"orchestrator"(从属Skill无法脱离对应的编排Skill独立运行)"subordinate" - :必填的编排Skill名称(仅从属Skill需要)
metadata.orchestrator - :从属Skill名称列表(仅编排Skill需要)
metadata.skills - :可选的短横线命名小写字符串列表,用于提升可发现性
metadata.tags - :可选的MCP服务需求映射(包含
metadata.mcp和required列表)suggested
- 和
license:可选的顶层前置元数据字段(不放在compatibility内部)metadata
如果缺失必要输入,请先询问简洁的针对性问题。默认使用作为问题库。
assets/follow-up-questions.mdInstructions
使用说明
- Check whether an existing skill already covers the request:
- Run
npx -y skills add . --list - If an existing skill matches, recommend using/updating that skill instead of creating a duplicate
- If a skill almost matches, open/recommend a repository issue to request tweaks to that existing skill instead of creating a new custom skill
- Prioritize reuse of repository skills to avoid proliferation of one-off custom skills
- Run
- Confirm scope, base skill name, prefix choice, and target path.
- Derive from prefix choice.
<final-skill-name> - Create .
<target>/<final-skill-name>/SKILL.md - Create resource directories as needed:
- for longer guidance and detailed docs
references/ - for templates/checklists/static resources
assets/ - only when deterministic automation is required
scripts/
- Write frontmatter (,
name) that satisfies constraints.description - Add the core sections:
- When to use
- When not to use
- Required inputs
- Instructions
- Expected output
- Safety & constraints
- Keep concise; move long guidance/examples to
SKILL.md.references/ - Use for templates, sample files, and static resources used by the skill.
assets/ - Add only when deterministic automation is required.
scripts/ - When inputs are missing, ask from and proceed once answered.
assets/follow-up-questions.md
- 检查是否已有现有Skill覆盖需求:
- 运行
npx -y skills add . --list - 如果已有匹配的Skill,建议使用/更新该Skill,不要重复创建
- 如果有接近匹配的Skill,建议提交仓库Issue申请调整现有Skill,不要创建新的自定义Skill
- 优先复用仓库现有Skill,避免一次性自定义Skill泛滥
- 运行
- 确认范围、基础Skill名称、前缀选择和目标路径。
- 根据前缀选择生成。
<final-skill-name> - 创建文件。
<target>/<final-skill-name>/SKILL.md - 按需创建资源目录:
- :存放更详细的指导和文档
references/ - :存放模板/检查清单/静态资源
assets/ - :仅在需要确定性自动化时创建
scripts/
- 编写符合约束的前置元数据(、
name)。description - 添加核心章节:
- 适用场景
- 不适用场景
- 必要输入
- 使用说明
- 预期输出
- 安全与约束
- 保持简洁;将长指导/示例移动到
SKILL.md目录。references/ - 将Skill使用的模板、示例文件、静态资源放在目录。
assets/ - 仅在需要确定性自动化时添加目录。
scripts/ - 缺失输入时,参考询问用户,获得答复后继续执行。
assets/follow-up-questions.md
Expected output
预期输出
Return:
- Created/updated file paths
- Validation command(s) run
- Pass/fail result with interpretation
- Any required follow-up actions
- Any unresolved follow-up questions (if user input was still missing)
- Whether an existing skill was reused, and if an issue was created/recommended for an almost-match
For a newly scaffolded skill, the default structure should be:
text
skills/<final-skill-name>/
├── SKILL.md
├── references/
└── assets/Use this baseline for generated files:
SKILL.mdmarkdown
---
name: <final-skill-name>
description: <what it does + when to use it>
license: MIT
metadata:
version: "<initial-version>"
---返回以下内容:
- 已创建/更新的文件路径
- 已运行的验证命令
- 包含解读的通过/失败结果
- 所有需要的后续操作
- 所有未解决的后续问题(如果仍缺失用户输入)
- 是否复用了现有Skill,以及是否为接近匹配的Skill创建/建议提交Issue
新搭建的Skill默认结构如下:
text
skills/<final-skill-name>/
├── SKILL.md
├── references/
└── assets/生成文件的基线模板如下:
SKILL.mdmarkdown
---
name: <final-skill-name>
description: <what it does + when to use it>
license: MIT
metadata:
version: "<initial-version>"
---<Skill Title>
<Skill Title>
When to use
When to use
When not to use
When not to use
Required inputs
Required inputs
Instructions
Instructions
Expected output
Expected output
Safety & constraints
Safety & constraints
undefinedundefinedValidation
验证
Run from repo root:
bash
npx -y skills add . --listPass criteria:
- Exit code is
0 - New skill appears discoverable/valid
- No metadata/path errors
If validation fails:
- Fix frontmatter (,
name)description - Verify path and existence
SKILL.md - Re-run and report final status
在仓库根目录运行:
bash
npx -y skills add . --list通过标准:
- 退出码为
0 - 新Skill可被发现/验证通过
- 无元数据/路径错误
如果验证失败:
- 修复前置元数据(、
name)description - 验证路径和文件是否存在
SKILL.md - 重新运行命令并报告最终状态
Ready-to-merge checklist
合并就绪检查清单
Use as a lightweight PR gate.
assets/ready-to-merge-checklist.md使用作为轻量级PR准入条件。
assets/ready-to-merge-checklist.mdSafety & constraints
安全与约束
Never:
- Request or expose secrets/credentials
- Run destructive commands without explicit user confirmation
- Invent validation results
- Modify unrelated files outside requested scope
- Add hidden network-fetch or unsafe script guidance without explicit request
禁止以下行为:
- 请求或泄露密钥/凭证
- 未经用户明确确认运行破坏性命令
- 伪造验证结果
- 修改请求范围外的无关文件
- 未经明确要求添加隐藏网络请求或不安全脚本指引