← 返回
未分类

dev-flow

One-stop code change workflow. TRIGGER when: user says "add feature", "modify code", "implement XXX", "fix bug", "beautify UI". Flow: Questioning Agent → Coding → Check Agent → Testing → Acceptance. Browser testing with agent-browser (fallback to manual if unavailable).
One-stop code change workflow. TRIGGER when: user says "add feature", "modify code", "implement XXX", "fix bug", "beautify UI". Flow: Questioning Agent → Coding → Check Agent → Testing → Acceptance. Browser testing with agent-browser (fallback to manual if unavailable).
user_d1aee17b
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 1
Stars
📥 163
下载
💾 1
安装
2
版本
#latest

概述

dev-flow - One-stop Code Change Workflow


Core Design: Sub Agent Processing to Avoid Self-Bias

Use independent sub Agents for critical phases. Main Agent ONLY handles coding and coordination.

AgentResponsibilityLifecycle
:---:---:---
Questioning AgentRequirement confirmation, questioning requirements, identifying gapsRequirement confirmation start → Requirement confirmation end
Check AgentCode review, checking modified files + affected filesStart BEFORE coding → Release when outputting results

Mandatory Requirements

RequirementDescription
:---:---
MUST NOT pause midwayAfter user confirmation, MUST execute all steps continuously
MUST test if agent-browser availableBrowser testing phase MUST be executed when agent-browser skill is available
MUST fallback if agent-browser unavailableOutput fallback notice + manual test instructions, AskUserQuestion for user confirmation
MUST cover all modificationsEach modification MUST have corresponding test case, 100% coverage
MUST output test reportMUST show test cases and results to user before proceeding
Check Agent MUST start BEFORE codingStart before coding, NOT after
ROLLBACK MUST reuse AgentAfter rollback, MUST use SendMessage to reuse Check Agent, MUST NOT create new one
No gaps MUST ask for supplementWhen Questioning Agent finds no gaps, MUST call AskUserQuestion to ask user for supplement

Phase 1: Requirement Confirmation

Flow

Step 1: Start Questioning Agent
    ↓
Step 2: Get user requirements → Summarize requirements
    ↓
Step 3: Loop
    ↓
SendMessage(Questioning Agent) → Find gaps
    ↓
┌───────────────────────────────────────────────┐
│ Questioning Agent Result?                     │
│                                               │
│   Has gaps:                                   │
│     1. Output brief explanation (found N issues)│
│     2. AskUserQuestion                        │
│     3. Receive answer → Summarize → SendMessage → Loop│
│                                               │
│   No gaps:                                    │
│     1. Output "Questioning Agent found no new gaps"│
│     2. AskUserQuestion(supplement?)           │
│     3. Has supplement → Merge summary → Go to Step 2│
│     4. No supplement → End loop               │
│                                               │
│   User halt → End loop                        │
└───────────────────────────────────────────────┘
    ↓
Release Questioning Agent

[MANDATORY]After receiving Agent result, MUST output brief explanation first, then call AskUserQuestion. Order: Output explanation → AskUserQuestion.

[MANDATORY]After receiving AskUserQuestion answers, MUST SendMessage to let Questioning Agent continue finding gaps. MUST NOT skip directly to asking for supplement.

See: reference/requirement.md


Phase 2: Coding

Flow

Start Check Agent (BEFORE coding!)
    ↓
Main Agent performs coding

[MANDATORY]Check Agent MUST start BEFORE coding begins.


Phase 3: Check (Code + Test Plan Validation)

Check Agent MUST validate two things: (1) code correctness, (2) test plan completeness

Flow

SendMessage(Check Agent) → Check code + Validate test plan
    ↓
┌─────────────────────────────────────────────────────────────┐
│ Check Result?                                               │
│   ├─ Code issues → ⏪ ROLLBACK to coding (fix code)         │
│   ├─ Test plan incomplete → ⏪ ROLLBACK to coding (add tests)│
│   └─ Both passed → Enter browser testing                    │
└─────────────────────────────────────────────────────────────┘

Validation rules:

Check Agent evaluates whether the test plan (from Phase 4) adequately covers all modifications. Use reasonable judgment:

  • A simple typo fix may need only one test
  • A new function needs success + failure paths
  • A UI change needs interaction + edge cases
  • A backend API needs validation + error handling

Check Agent output should include:

  • Test coverage assessment (sufficient / needs improvement)
  • Specific missing test cases (if any)
  • Recommendation (proceed / add tests / rethink design)

If test plan is incomplete, Check Agent MUST explain what's missing and why.

[MANDATORY]SendMessage MUST include the list of modified files.

See: reference/validation.md


Phase 4: Browser Testing

[MANDATORY]Before starting Phase 4, confirm Check Agent has validated the test plan and result is PASS. If Check Agent returned warnings (missing exception paths), document them in test report but may proceed.

Flow

Confirm Check Agent validation passed
    ↓
┌─────────────────────────────────────────────────────┐
│ Check agent-browser skill availability              │
│   ├─ Available → Proceed to browser testing         │
│   └─ Not available → Fallback: skip testing         │
└─────────────────────────────────────────────────────┘
    ↓
┌─────────────────────────────────────────────────────┐
│ Testing Mode?                                        │
│                                                       │
│   Browser testing available:                         │
│     Main Agent identifies test coverage              │
│     ↓                                                │
│     Create test cases → Execute with agent-browser   │
│     ↓                                                │
│     Output test report → Pass/Fail decision          │
│                                                       │
│   Fallback (agent-browser unavailable):              │
│     Output fallback notice to user                   │
│     ↓                                                │
│     Provide manual test instructions                 │
│     ↓                                                │
│     AskUserQuestion: user confirms manual test       │
│     ↓                                                │
│     Enter output results                             │
└─────────────────────────────────────────────────────┘

[MANDATORY]If agent-browser available: MUST NOT skip testing.

[MANDATORY]If agent-browser unavailable: MUST output fallback notice + manual test instructions, then AskUserQuestion for user confirmation.

[MANDATORY]Test coverage: Each modification MUST have corresponding test case.

[MANDATORY]Output test report: MUST show test cases and results to user.

See: reference/validation.md for test commands, browser testing guide, and fallback procedure


Phase 5: Output Results

Release Check Agent
    ↓
Output task complete

Rollback Mechanism

Check/Test fail → ⏪ ROLLBACK to coding → SendMessage(Check Agent_ID) → Re-execute check→test

See: reference/validation.md for rollback declaration format


User Commands

CommandEffect
:---:---
/abortAbort task
够了/确认/开始/OKStop questioning, start coding

Agent Invocation Rules

RuleDescription
:---:---
Before calling AgentMUST NOT output text, call directly
After calling AgentWait for result directly, MUST NOT output "waiting" text
After receiving Agent resultOutput brief explanation first, then call AskUserQuestion
After receiving AskUserQuestion answersMUST SendMessage to let Agent continue, MUST NOT skip
If AskUserQuestion returns duplicate answersUse only the first answer, ignore duplicates
SendMessageMUST include list of modified files
Agent releaseRelease after entire workflow completes

See: reference/agent-templates.md


Resource Navigation


$ARGUMENTS

版本历史

共 2 个版本

  • v1.0.1 Modified skill to: (1) use agent-browser for browser testing, (2) add Check Agent test plan validation before testing, (3) add fallback procedure when agent-browser unavailable. 当前
    2026-04-25 16:52 安全 安全
  • v1.0.0 Initial release
    2026-04-24 13:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 667 📥 323,811
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,056 📥 796,111
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,350 📥 317,715