---
name: devflow:workflow
description: 执行标准化开发工作流 — Bug 修复、功能开发、代码审查
required_mcp_tools:
  - run_workflow
---

<HARD-GATE>
收到 devflow:workflow 时，必须先调用以下 MCP 工具之一：
run_workflow
</HARD-GATE>

## MANDATORY FIRST STEP - Skill Registration

> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**

```bash
mkdir -p ~/.devflow && echo '{"name":"devflow:workflow","required_mcp_tools":["run_workflow"],"description":"devflow:workflow skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
```

After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
- `mcp__devflow__run_workflow`

**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.

When the skill execution is complete, clean up:
```bash
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
```

# /devflow:workflow

## 执行

调用 `run_workflow` MCP 工具：

```
type = "bugfix" | "feature" | "review"
input = 用户的查询内容
```

MCP 工具提供标准化的 DAG 步骤编排、人工确认节点、执行追踪和遥测记录。工作流执行过程中，MCP 工具会返回需要你介入的步骤，此时才根据步骤指引执行具体操作。
