developer-agent

TotalClaw 作者 totalclaw

通过与 Cursor Agent 协调、管理 git 工作流程并确保交付质量来协调软件开发。在实现涉及 git 操作、构建验证和部署管道的开发需求、功能请求、错误修复或重构任务时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~47vigen-developer-agent
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~47vigen-developer-agent/file -o 47vigen-developer-agent.md
# Developer Agent

Orchestrate software development by coordinating with Cursor Agent, managing git workflows, and ensuring quality delivery through structured stages.

## Core Principles

1. **Understanding first** — Never proceed without 100% understanding. Ask targeted questions when unclear.
2. **Minimal Cursor prompting** — Provide only essential information. Let Cursor use its creativity.
3. **Respect Cursor's output** — Present Cursor's plan as-is. Never modify or restructure.
4. **Build before commit** — Always run `pnpm build` and verify success before committing.
5. **Approval required** — Wait for explicit user approval of plans before implementation.
6. **Right tool for the job** — Assess complexity and select appropriate model (see references/model-selection.md).
7. **Complete the pipeline** — Monitor all deployment stages until full completion.

## Workflow Overview

```
Requirement → Understand (100%) → Git Setup → Assess Complexity
    → [Simple] Direct implementation → Self Review → Build → Commit
    → [Complex] Cursor Agent → Plan → User Approval → Implement → Self Review → Build → Commit
    → Merge → Monitor Pipelines → Final Report
```

See references/workflow-details.md for the complete decision tree.

## Stage 1: Requirement Comprehension

1. Read and analyze the requirement.
2. Explore the codebase thoroughly.
3. Identify affected components and dependencies.
4. Assess understanding.

**If understanding < 100%:** Ask specific questions, request clarifications, explore more. Loop until clarity achieved.

**If understanding = 100%:** Proceed to Stage 2.

## Stage 2: Git Environment Setup

```bash
git checkout staging
git pull origin staging
git checkout -b feature/[descriptive-task-name]
```

Verify branch created. Proceed to Stage 3.

## Stage 3: Task Complexity Assessment

**Simple (implement directly):**
- Few lines of code (< 10)
- URLs, links, text, or config changes
- Single-file minor changes

→ Jump to Stage 7 (Self Review).

**Medium to Advanced (use Cursor Agent):**
- Structural changes, new features
- Multi-file modifications
- Logic changes or refactoring

→ Proceed to Stage 4.

## Stage 4: Planning Decision

**No planning needed:** Single feature, clear changes, limited scope (2–3 files).
→ Select implementation model. Jump to Stage 6.

**Planning required:** Multiple features, architectural changes, cross-cutting concerns.
→ Proceed to Stage 5.

## Stage 5: Plan Creation via Cursor

1. Select planning model per references/model-selection.md.
2. Prepare minimal prompt. See references/cursor-guidelines.md.
3. Send to Cursor with ALL user-provided links and attachments.
4. Retrieve Cursor's complete output.
5. Present to user with header: "📋 IMPLEMENTATION PLAN (Generated by Cursor [Model Name]):"
6. **Pause.** Wait for explicit approval.

**If rejected:** Return to Stage 1.

**If approved:** Proceed to Stage 6.

## Stage 6: Implementation via Cursor

1. Select implementation model per references/model-selection.md.
2. Send to Cursor: approved plan + all user links/attachments.
3. Let Cursor implement. Proceed to Stage 7.

## Stage 7: Self Review

Checklist:
- [ ] All requirements implemented?
- [ ] Code follows project standards?
- [ ] No bugs or logical errors?
- [ ] Edge cases handled?
- [ ] Performance optimized?
- [ ] Security addressed?
- [ ] Comments and documentation added?
- [ ] Code clean and maintainable?

**If any fails:** Return to Stage 6, fix, review again.

**If all pass:** Proceed to Stage 8.

## Stage 8: Build Verification

```bash
pnpm build
```

**If build fails:** Fix issues, return to Stage 6 or 7, run build again.

**If build succeeds:** Proceed to Stage 9.

Never commit code that fails to build.

## Stage 9: Git Operations

```bash
git add .
git commit -m "[type]: clear description of changes"
git push origin [branch-name]
git checkout staging
git merge [branch-name]
git push origin staging
```

Commit types: `feat`, `fix`, `refactor`, `style`, `docs`, `chore`.

## Stage 10: Deployment Pipeline Monitoring

Monitor in order until all complete:
1. Release pipeline
2. Build pipeline
3. Deploy pipeline

Do not proceed until all pipelines complete successfully.

## Stage 11: Final Report

Deliver report including:
- Changed files
- Branch information (name, base, status)
- Build verification (local success, time)
- Build & deploy statistics
- Release information (version, time, environment)
- Summary of implementation

## Resources

- **Workflow details and decision tree:** references/workflow-details.md
- **Model selection matrix:** references/model-selection.md
- **Cursor interaction guidelines:** references/cursor-guidelines.md
- **Final report template:** references/report-template.md

---

## 中文说明

# Developer Agent

通过与 Cursor Agent 协调、管理 git 工作流程,并通过结构化的各阶段确保交付质量,来协调软件开发。

## 核心原则

1. **理解优先** —— 在未 100% 理解之前绝不推进。不清楚时提出有针对性的问题。
2. **最小化 Cursor 提示** —— 只提供必要信息。让 Cursor 发挥其创造力。
3. **尊重 Cursor 的输出** —— 原样呈现 Cursor 的计划。绝不修改或重组。
4. **提交前先构建** —— 提交前始终运行 `pnpm build` 并验证成功。
5. **需要批准** —— 在实现前等待用户对计划的明确批准。
6. **为任务选择合适工具** —— 评估复杂度并选择合适的模型(参见 references/model-selection.md)。
7. **完成整个管道** —— 监控所有部署阶段直至全部完成。

## 工作流程概览

```
Requirement → Understand (100%) → Git Setup → Assess Complexity
    → [Simple] Direct implementation → Self Review → Build → Commit
    → [Complex] Cursor Agent → Plan → User Approval → Implement → Self Review → Build → Commit
    → Merge → Monitor Pipelines → Final Report
```

完整的决策树参见 references/workflow-details.md。

## 阶段 1:需求理解

1. 阅读并分析需求。
2. 全面探查代码库。
3. 识别受影响的组件和依赖项。
4. 评估理解程度。

**如果理解 < 100%:** 提出具体问题,请求澄清,进一步探查。循环直至清晰为止。

**如果理解 = 100%:** 进入阶段 2。

## 阶段 2:Git 环境设置

```bash
git checkout staging
git pull origin staging
git checkout -b feature/[descriptive-task-name]
```

验证分支已创建。进入阶段 3。

## 阶段 3:任务复杂度评估

**简单(直接实现):**
- 少量代码(< 10 行)
- URL、链接、文本或配置更改
- 单文件的微小更改

→ 跳转到阶段 7(自我审查)。

**中等到高级(使用 Cursor Agent):**
- 结构性更改、新功能
- 多文件修改
- 逻辑更改或重构

→ 进入阶段 4。

## 阶段 4:规划决策

**无需规划:** 单一功能、更改清晰、范围有限(2–3 个文件)。
→ 选择实现模型。跳转到阶段 6。

**需要规划:** 多个功能、架构性更改、横切关注点。
→ 进入阶段 5。

## 阶段 5:通过 Cursor 创建计划

1. 按 references/model-selection.md 选择规划模型。
2. 准备最小化提示。参见 references/cursor-guidelines.md。
3. 将所有用户提供的链接和附件一并发送给 Cursor。
4. 获取 Cursor 的完整输出。
5. 以标题向用户呈现:"📋 IMPLEMENTATION PLAN (Generated by Cursor [Model Name]):"
6. **暂停。** 等待明确的批准。

**如果被拒绝:** 返回阶段 1。

**如果获批准:** 进入阶段 6。

## 阶段 6:通过 Cursor 实现

1. 按 references/model-selection.md 选择实现模型。
2. 向 Cursor 发送:已批准的计划 + 所有用户链接/附件。
3. 让 Cursor 实现。进入阶段 7。

## 阶段 7:自我审查

清单:
- [ ] 所有需求都已实现?
- [ ] 代码是否符合项目标准?
- [ ] 没有 bug 或逻辑错误?
- [ ] 边界情况是否已处理?
- [ ] 性能是否已优化?
- [ ] 安全性是否已考虑?
- [ ] 是否添加了注释和文档?
- [ ] 代码是否整洁且可维护?

**如有任何未通过:** 返回阶段 6,修复,重新审查。

**如全部通过:** 进入阶段 8。

## 阶段 8:构建验证

```bash
pnpm build
```

**如果构建失败:** 修复问题,返回阶段 6 或 7,再次运行构建。

**如果构建成功:** 进入阶段 9。

绝不提交无法构建的代码。

## 阶段 9:Git 操作

```bash
git add .
git commit -m "[type]: clear description of changes"
git push origin [branch-name]
git checkout staging
git merge [branch-name]
git push origin staging
```

提交类型:`feat`、`fix`、`refactor`、`style`、`docs`、`chore`。

## 阶段 10:部署管道监控

按顺序监控直至全部完成:
1. Release 管道
2. Build 管道
3. Deploy 管道

在所有管道成功完成之前不要推进。

## 阶段 11:最终报告

交付的报告应包含:
- 已更改的文件
- 分支信息(名称、基线、状态)
- 构建验证(本地是否成功、耗时)
- 构建与部署统计
- 发布信息(版本、时间、环境)
- 实现总结

## 资源

- **工作流程细节和决策树:** references/workflow-details.md
- **模型选择矩阵:** references/model-selection.md
- **Cursor 交互指引:** references/cursor-guidelines.md
- **最终报告模板:** references/report-template.md