with one click
dev-execution
开发执行详细流程。dev-agent 执行代码修改时调用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
开发执行详细流程。dev-agent 执行代码修改时调用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Architecture & Repository Guardian for main branch. Invoke when user needs to plan tasks, manage git branches/worktrees, or coordinate sub-agents. ONLY callable from main branch.
文档执行详细流程。docs-agent 执行文档更新时调用。
获取所有审查机器人评论。Qodo 使用 WebFetch,Sourcery/Copilot 使用 GitHub MCP。
Master Agent 执行详细流程。任务路由、PR 管理、Git 操作。
挂起任务恢复流程。Master Agent 处理 blocked_reason.md 时调用。
执行 MCP 驱动的 7 阶段验收流程。当代码修改完成需要验收时触发,或用户请求运行验收。
| name | dev-execution |
| description | 开发执行详细流程。dev-agent 执行代码修改时调用。 |
执行任何操作前,必须确认:
Move-Item 命令Remove-Item 命令若发现代码运行缺少第三方依赖库:
pip install 或 conda install[BLOCK_NEED_MASTER] 标签.trae/blocked_reason.md 中说明:
reason_type: missing_context[BLOCK_NEED_MASTER][REQ_DEV] 标签读取 `.trae/current_task.md` 获取任务详情
必须先检查 dev_retry_count 和 max_retries:
---
dev_retry_count: <当前重试次数>
max_retries: <最大重试次数,默认 3>
---
| 条件 | 动作 |
|---|---|
dev_retry_count >= max_retries | 禁止继续,输出 [BLOCK_NEED_MASTER],设置 reason_type: retry_exhausted |
dev_retry_count < max_retries | 继续执行 |
使用 Memory MCP search_nodes 检索相关规则
检索标签:[REWARDS_DOM], [ANTI_BOT]
修改业务代码(src/ 等非测试目录)。
ruff check .
ruff format --check .
mypy src/ --strict
pytest tests/<相关单文件>.py -v
| 场景 | 输出标签 |
|---|---|
| 代码修改完成,需要测试验证 | [REQ_TEST] |
| 连续 3 次局部验证失败 | [BLOCK_NEED_MASTER] + 阻塞原因 |
| 缺少 DOM 结构等上下文 | [BLOCK_NEED_MASTER] + 需要的信息 |
当无法定位元素或缺少前端结构数据时:
blocked_reason.md,说明需要的 DOM 结构当遇到以下情况时,必须触发 [BLOCK_NEED_MASTER]:
若第 3 次重试仍失败,停止操作:
.trae/blocked_reason.mdreason_type: logic_unimplementable 或 missing_context[BLOCK_NEED_MASTER] 标签写入 .trae/current_task.md(更新):
---
task_id: <任务ID>
status: success | blocked
dev_retry_count: <当前重试次数>
max_retries: <最大重试次数>
---
### 变更摘要
- `<文件路径>`: <变更核心逻辑说明>
### 验证结果
- [x] `ruff check` 通过
- [x] `ruff format --check` 通过
- [x] `mypy` 通过
- [x] 局部单元测试通过
### 移交说明
- **验证入口**: `python main.py --task <具体命令>`
- **受影响模块**: `<具体文件或类名>`
- **需重点验证**: <如:代理切换时的 Session 保持>
search_nodes):检索目标文件或核心函数的 Entity,读取过去的 observations,确认是否有特殊的业务约束(如并发锁机制、特定的 API 字段转换规则)。仅在以下场景必须调用 GitHub MCP,其余时间优先依赖本地上下文:
get_issue / get_pull_request 获取详细背景。search_issues 搜索社区或历史解决方案。search_code 确认该库在项目中的其他引用位置,防止破坏性变更。为了防止幻觉和重复造轮子:
search_issues 搜索类似错误。search_code 确认该库在项目中的其他引用位置,防止破坏性变更。