chore: 优化技能创建流程并完善文档与脚本
- 删除空的技能目录占位文件 - 添加Apache许可证文件以明确项目使用和分发的条款与条件。 - 添加输出模式参考文档,包含模板模式和示例模式,以确保技能生成一致且高质量的输出。 - 添加工作流模式文档,包含顺序执行和条件分支的流程指导。 - 创建新技能时自动生成包含模板文件和示例资源的完整目录结构 - 添加技能打包脚本以将技能文件夹打包为可分发的 .skill 文件,包含验证、输出路径配置和压缩功能。 - 添加快速验证技能文件的脚本,检查SKILL.md是否存在、frontmatter格式正确性、必需字段完整性及命名和描述的规范性。 - 创建技能的完整指南,涵盖技能设计原则、文件结构、内容组织、创建流程及最佳实践。
This commit is contained in:
28
skills/skill-creator/references/workflows.md
Normal file
28
skills/skill-creator/references/workflows.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Workflow Patterns
|
||||
|
||||
## Sequential Workflows
|
||||
|
||||
For complex tasks, break operations into clear, sequential steps. It is often helpful to give Claude an overview of the process towards the beginning of SKILL.md:
|
||||
|
||||
```markdown
|
||||
Filling a PDF form involves these steps:
|
||||
|
||||
1. Analyze the form (run analyze_form.py)
|
||||
2. Create field mapping (edit fields.json)
|
||||
3. Validate mapping (run validate_fields.py)
|
||||
4. Fill the form (run fill_form.py)
|
||||
5. Verify output (run verify_output.py)
|
||||
```
|
||||
|
||||
## Conditional Workflows
|
||||
|
||||
For tasks with branching logic, guide Claude through decision points:
|
||||
|
||||
```markdown
|
||||
1. Determine the modification type:
|
||||
**Creating new content?** → Follow "Creation workflow" below
|
||||
**Editing existing content?** → Follow "Editing workflow" below
|
||||
|
||||
2. Creation workflow: [steps]
|
||||
3. Editing workflow: [steps]
|
||||
```
|
||||
Reference in New Issue
Block a user