workflow-automation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorkflow Automation Skill
工作流自动化Skill
Purpose
用途
Create and execute automated workflows for complex multi-step processes.
创建并执行适用于复杂多步骤流程的自动化工作流。
When to Trigger
触发时机
- Multi-step automated processes
- Reusable workflow creation
- Complex task orchestration
- CI/CD pipeline setup
- 多步骤自动化流程
- 创建可复用工作流
- 复杂任务编排
- CI/CD流水线搭建
Commands
命令
Create Workflow
创建工作流
bash
npx claude-flow workflow create --name "deploy-flow" --template cibash
npx claude-flow workflow create --name "deploy-flow" --template ciExecute Workflow
执行工作流
bash
npx claude-flow workflow execute --name "deploy-flow" --env productionbash
npx claude-flow workflow execute --name "deploy-flow" --env productionList Workflows
列出工作流
bash
npx claude-flow workflow listbash
npx claude-flow workflow listExport Template
导出模板
bash
npx claude-flow workflow export --name "deploy-flow" --format yamlbash
npx claude-flow workflow export --name "deploy-flow" --format yamlView Status
查看状态
bash
npx claude-flow workflow status --name "deploy-flow"bash
npx claude-flow workflow status --name "deploy-flow"Built-in Templates
内置模板
| Template | Description |
|---|---|
| Continuous integration pipeline |
| Deployment workflow |
| Testing workflow |
| Release automation |
| Code review workflow |
| 模板 | 描述 |
|---|---|
| 持续集成流水线 |
| 部署工作流 |
| 测试工作流 |
| 发布自动化 |
| 代码评审工作流 |
Workflow Structure
工作流结构
yaml
name: example-workflow
steps:
- name: analyze
agent: researcher
task: "Analyze requirements"
- name: implement
agent: coder
depends: [analyze]
task: "Implement solution"
- name: test
agent: tester
depends: [implement]
task: "Write and run tests"yaml
name: example-workflow
steps:
- name: analyze
agent: researcher
task: "Analyze requirements"
- name: implement
agent: coder
depends: [analyze]
task: "Implement solution"
- name: test
agent: tester
depends: [implement]
task: "Write and run tests"Best Practices
最佳实践
- Define clear step dependencies
- Use appropriate agent types per step
- Include validation gates
- Export workflows for reuse
- 定义清晰的步骤依赖关系
- 为每个步骤使用合适的Agent类型
- 包含验证关卡
- 导出工作流以便复用