Skip to content

Workflow Basics ​

One-Line Positioning ​

Workflows are the core of team collaboration — 8 workflows covering the full development lifecycle, from planning to execution, from analysis to testing.


4.1 Workflow Overview ​

WorkflowCore CommandUse CaseRoles
PlanEx/workflow-planNew feature development, requirement implementationplanner, executor
IterDev/refactor-cycleCode refactoring, technical debt handlingdeveloper, reviewer
Lifecycle/unified-execute-with-fileComplete development cycleanalyzer, developer, tester, reviewer
Issue/issue:*Issue-driven developmentdiscoverer, planner, executor
Testing/integration-test-cycleIntegration testing, test generationtester, developer
QA/review-cycleCode review and quality assuranceqa, developer
Brainstorm/brainstorm-with-fileMulti-perspective analysis, technical decisionsfacilitator, perspectives
UIDesign/workflow:ui-designUI design and code generationdesigner, developer

4.2 PlanEx - Planning-Execution Workflow ​

4.2.1 One-Line Positioning ​

PlanEx is a planning-execution separation workflow — Plan first, then execute, ensuring tasks are clear before starting work.

4.2.2 Launch Method ​

shell
/workflow-plan

Or describe requirements directly:

plaintext
Implement user login functionality, supporting email and phone number login

4.2.3 Workflow Process ​

4.2.4 Output Artifacts ​

ArtifactLocationDescription
Requirements Analysisartifacts/requirements.mdDetailed requirement analysis
Task Planartifacts/plan.mdStructured task list
Execution Artifactsartifacts/implementation/Code and tests
Wisdom Accumulationwisdom/learnings.mdLessons learned

4.3 IterDev - Iterative Development Workflow ​

4.3.1 One-Line Positioning ​

IterDev is an iterative refactoring workflow — Discover technical debt, plan refactoring, improve iteratively.

4.3.2 Launch Method ​

shell
/refactor-cycle

4.3.3 Workflow Process ​

4.3.4 Use Cases ​

ScenarioExample
Code SmellsLong functions, duplicate code
Architecture ImprovementDecoupling, modularization
Performance OptimizationAlgorithm optimization, caching strategy
Security HardeningFix security vulnerabilities
Standard UnificationCode style consistency

4.4 Lifecycle - Lifecycle Workflow ​

4.4.1 One-Line Positioning ​

Lifecycle is a full-lifecycle coverage workflow — From analysis to testing to review, complete closed loop.

4.4.2 Launch Method ​

shell
/unified-execute-with-file <file>

4.4.3 Role Responsibilities ​

RoleResponsibilityOutput
AnalyzerAnalyze requirements, explore codeAnalysis report
DeveloperImplement features, write testsCode + tests
TesterRun tests, verify functionalityTest report
ReviewerCode review, quality checkReview report

4.4.4 Workflow Process ​


4.5 Issue - Issue Management Workflow ​

4.5.1 One-Line Positioning ​

Issue is an issue-driven development workflow — From issue discovery to planning to execution, complete tracking.

4.5.2 Issue Commands ​

CommandFunctionExample
discoverDiscover Issue/issue discover https://github.com/xxx/issue/1
discover-by-promptCreate from Prompt/issue discover-by-prompt "Login failed"
from-brainstormCreate from brainstorm/issue from-brainstorm
planBatch plan Issues/issue plan
queueForm execution queue/issue queue
executeExecute Issue queue/issue execute

4.5.3 Workflow Process ​


4.6 Testing - Testing Workflow ​

4.6.1 One-Line Positioning ​

Testing is a self-iterating test workflow — Auto-generate tests, iteratively improve test coverage.

4.6.2 Launch Method ​

shell
/integration-test-cycle

4.6.3 Workflow Process ​


4.7 QA - Quality Assurance Workflow ​

4.7.1 One-Line Positioning ​

QA is a code review workflow — 6-dimensional code review, auto-discover issues.

4.7.2 Launch Method ​

shell
/review-cycle

4.7.3 Review Dimensions ​

DimensionCheck Items
CorrectnessLogic correct, boundary handling
PerformanceAlgorithm efficiency, resource usage
SecurityInjection vulnerabilities, permission checks
MaintainabilityCode clarity, modularity
Test CoverageUnit tests, boundary tests
Standard ComplianceCoding standards, project conventions

4.8 Brainstorm - Brainstorming Workflow ​

4.8.1 One-Line Positioning ​

Brainstorm is a multi-perspective analysis workflow — Analyze problems from multiple viewpoints for comprehensive insights.

4.8.2 Launch Method ​

shell
/brainstorm-with-file <file>

4.8.3 Analysis Perspectives ​

PerspectiveRoleFocus
ProductProduct ManagerMarket fit, user value
TechnicalTech LeadFeasibility, technical debt
QualityQA LeadCompleteness, testability
RiskRisk AnalystRisk identification, dependencies

4.8.4 Output Format ​

markdown
## Consensus Points
- [Consensus point 1]
- [Consensus point 2]

## Divergences
- [Divergence 1]
  - Perspective A: ...
  - Perspective B: ...
  - Recommendation: ...

## Action Items
- [ ] [Action item 1]
- [ ] [Action item 2]

4.9 UIDesign - UI Design Workflow ​

4.9.1 One-Line Positioning ​

UIDesign is a UI design generation workflow — From design to code, auto-extract styles and layouts.

4.9.2 UI Design Commands ​

CommandFunction
generateGenerate UI components
import-from-codeImport styles from code
style-extractExtract style specifications
layout-extractExtract layout structure
imitate-autoImitate reference page
codify-styleConvert styles to code
design-syncSync design changes

4.10 Quick Reference ​

Workflow Selection Guide ​

RequirementRecommended WorkflowCommand
New feature developmentPlanEx/workflow-plan
Code refactoringIterDev/refactor-cycle
Complete developmentLifecycle/unified-execute-with-file
Issue managementIssue/issue:*
Test generationTesting/integration-test-cycle
Code reviewQA/review-cycle
Multi-perspective analysisBrainstorm/brainstorm-with-file
UI developmentUIDesign/workflow:ui-design

Session Management Commands ​

CommandFunction
/workflow:session:startStart new session
/workflow:session:resumeResume session
/workflow:session:listList sessions
/workflow:session:completeComplete session
/workflow:session:solidifySolidify results

Next Steps ​

Released under the MIT License.