skill-creator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill Creator
Skill 创建器
Build skills that behave like “mini senior engineers”: trigger correctly, run deterministically, and leave resumable artifacts on disk.
构建表现如同「迷你资深工程师」的Skill:触发准确、运行可预测,并在磁盘上留下可恢复的产物。
What good looks like (Ship Faster standard)
优秀Skill的标准(Ship Faster规范)
- : short and triggerable (routing + safety + I/O + output contract). Avoid long tutorials here.
SKILL.md - : deep docs loaded only when needed (progressive disclosure). Link directly from
references/.SKILL.md - : deterministic helpers for repetitive/fragile work (prefer this over re-writing code in chat).
scripts/ - : templates or files to copy (not meant to be loaded into context).
assets/
Deep guidance:
- Progressive disclosure + authoring principles:
references/skill-design-principles.md - Workflow structure patterns:
workflows.md - Output templates/patterns:
output-patterns.md
- :简洁且可触发(包含路由+安全+I/O+输出契约)。此处避免冗长教程。
SKILL.md - :仅在需要时加载的深度文档(渐进式披露)。直接从
references/中链接至此处。SKILL.md - :用于重复/易出错工作的可预测辅助脚本(优先使用此方式,而非在对话中重写代码)。
scripts/ - :用于复制的模板或文件(不加载至上下文环境中)。
assets/
深度指导:
- 渐进式披露与创作原则:
references/skill-design-principles.md - 工作流结构模式:
workflows.md - 输出模板/模式:
output-patterns.md
Creation flow (recommended)
推荐创建流程
- Collect trigger examples (real user phrases that should activate the skill).
- Define the I/O contract (paths only) + required artifacts:
- What files does the skill read?
- What files must it write (plans, evidence, summaries)?
- Implement reusable resources first:
- add for deterministic steps
scripts/ - add for heavy documentation
references/ - add for templates / boilerplate
assets/
- add
- Write last:
SKILL.md- frontmatter should include trigger phrases
description - body should be short and link out to the resources above
- frontmatter
- Validate + package (optional) using the scripts below.
- 收集触发示例(能够激活该Skill的真实用户语句)。
- 定义I/O契约(仅包含路径)及所需产物:
- Skill需要读取哪些文件?
- 它必须写入哪些文件(计划、证据、摘要)?
- 优先实现可复用资源:
- 添加目录存放可预测步骤脚本
scripts/ - 添加目录存放深度文档
references/ - 添加目录存放模板/样板代码
assets/
- 添加
- 最后编写:
SKILL.md- 前置元数据需包含触发语句
description - 正文应简洁,并链接至上述资源
- 前置元数据
- 验证与打包(可选):使用下方脚本完成。
Scripts
脚本说明
All scripts live in in this skill folder.
scripts/所有脚本均位于此Skill目录的文件夹中。
scripts/Initialize a new skill folder
初始化新Skill目录
bash
python scripts/init_skill.py <skill-name> --path <output-directory>bash
python scripts/init_skill.py <skill-name> --path <output-directory>Validate a skill (frontmatter + basic conventions)
验证Skill(元数据+基础规范)
bash
python scripts/quick_validate.py /path/to/<skill-name>bash
python scripts/quick_validate.py /path/to/<skill-name>Sync catalogs/assets (manifest, skills-map, docs catalog)
同步目录/资源(清单、Skill映射表、文档目录)
bash
python scripts/sync_catalog.pybash
python scripts/sync_catalog.pyLint skills (compat + quality gates)
检查Skill兼容性与质量
bash
python scripts/skill_lint.py --check-generatedbash
python scripts/skill_lint.py --check-generatedPackage a skill into a distributable .skill
zip (optional)
.skill将Skill打包为可分发的.skill
压缩包(可选)
.skillbash
python scripts/package_skill.py /path/to/<skill-name> [output-directory]bash
python scripts/package_skill.py /path/to/<skill-name> [output-directory]Notes for Ship Faster contributors
Ship Faster贡献者注意事项
- Prefer prefix naming: ,
workflow-,tool-,review-,mcp-,skill-.publish- - Keep side effects gated: write a plan first, ask for explicit confirmation, then execute, then verify.
- If you add/remove a skill, update the catalog: .
skills/manifest.json
- 优先使用前缀命名:,
workflow-,tool-,review-,mcp-,skill-。publish- - 副作用操作需受控:先编写计划,请求明确确认后再执行,最后进行验证。
- 若添加/移除Skill,请更新目录:。
skills/manifest.json
Claude Code: Slash Commands merged into Skills
Claude Code:斜杠命令与Skill合并
Claude Code now treats custom slash commands and skills as the same concept:
- and
.claude/commands/<name>.mdboth create.claude/skills/<name>/SKILL.md/<name> - Existing files keep working (no migration required)
.claude/commands/ - Prefer creating skills going forward so you can bundle ,
references/, and use subagentsscripts/
Useful frontmatter knobs (Claude Code):
- - only user can invoke (good for side-effect workflows)
disable-model-invocation: true - - hide from users; Claude-only background knowledge
user-invocable: false - +
context: fork- run skill in a subagent (good for research)agent: Explore|Plan|... - - restrict tool surface when this skill is active
allowed-tools
Claude Code 现在将自定义斜杠命令与Skill视为同一概念:
- 和
.claude/commands/<name>.md均可创建.claude/skills/<name>/SKILL.md命令/<name> - 现有文件可继续使用(无需迁移)
.claude/commands/ - 未来优先创建Skill,以便捆绑、
references/并使用子Agentscripts/
Claude Code 实用元数据配置项:
- - 仅用户可触发(适用于有副作用的工作流)
disable-model-invocation: true - - 对用户隐藏;仅作为Claude的背景知识
user-invocable: false - +
context: fork- 在子Agent中运行Skill(适用于研究场景)agent: Explore|Plan|... - - 限制该Skill激活时的工具使用范围
allowed-tools
Archived full guide
归档完整版指南
The previous (long-form) version of this skill is preserved at:
references/legacy-skill-creator.md
本Skill的旧版(长篇)指南已存档于:
references/legacy-skill-creator.md