# Development Workflow ## name Windows 11 Desktop Enhancement App Development Workflow ## goal 以 Microsoft Edge WebView2 为核心渲染引擎,持续交付轻量桌面容器和可扩展插件系统能力,支持 H5 动态壁纸、模块化桌面插件、插件自定义、拖拽布局、透明与点击穿透、配置持久化。 ## flow ```mermaid flowchart LR Product["Product\nproduct-agent + prd-skill"] Architect["Architect\narchitect-agent + arch-skill + plugin-skill"] Dev["Dev\ndev-agent + codegen-skill + plugin-skill + debug-skill"] QA["QA\nqa-agent + test-skill + debug-skill"] Review["Review\nall agents"] Product --> Architect Architect --> Dev Dev --> QA QA --> Review Review --> Product Review --> Architect Review --> Dev ``` ## steps ### 1. Product - agent: `product-agent` - skills: - `prd-skill` - `plugin-skill` when the requirement affects plugin behavior or desktop widget experience - input: - user request - feedback - roadmap item - defect report - output: - PRD - user stories - acceptance criteria - open questions - next: - send PRD to `architect-agent` ### 2. Architect - agent: `architect-agent` - skills: - `arch-skill` - `plugin-skill` for plugin protocol, lifecycle, layout, and runtime boundaries - input: - PRD from `product-agent` - existing codebase and technical constraints - output: - architecture design - module boundaries - interfaces - data model - implementation tasks - next: - send implementation tasks to `dev-agent` - call `dba-agent` when persistence schema or migration is required ### 3. Dev - agent: `dev-agent` - skills: - `codegen-skill` - `plugin-skill` for plugin-related implementation - `debug-skill` for runtime, build, and integration issues - input: - architecture design from `architect-agent` - acceptance criteria from `product-agent` - persistence guidance from `dba-agent` when applicable - output: - code changes - scripts - local verification results - implementation notes - next: - send completed implementation and verification notes to `qa-agent` ### 4. QA - agent: `qa-agent` - skills: - `test-skill` - `debug-skill` for defect reproduction and diagnosis - input: - PRD acceptance criteria - architecture risk points - Dev Agent implementation notes - changed files and build output - output: - test plan - test cases - defect report - regression result - release recommendation - next: - send pass or fail result to Review - route defects back to `dev-agent` ### 5. Review - agent: - `product-agent` - `architect-agent` - `dev-agent` - `dba-agent` - `qa-agent` - skills: - `prd-skill` for requirement alignment - `arch-skill` for design consistency - `codegen-skill` for implementation review - `plugin-skill` for plugin contract review - `test-skill` for release readiness - `debug-skill` for unresolved defects - input: - PRD - architecture design - implementation summary - test results - known risks - output: - review decision: `approved`, `changes_requested`, or `blocked` - required changes - release notes draft - follow-up tasks ## routing_rules - If the requirement is unclear, return to `product-agent`. - If module boundaries, runtime model, or technical risks change, return to `architect-agent`. - If implementation fails or defects are confirmed, return to `dev-agent`. - If persistence schema, migration, default values, or compatibility is involved, call `dba-agent`. - If release confidence is low, return to `qa-agent` for expanded verification. ## output_format ```markdown # Workflow Run: ## Product Output ## Architecture Output ## Development Output ## QA Output ## Review Decision ## Follow Up Tasks ```