monoco-toolkit 0.3.9__py3-none-any.whl → 0.3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- monoco/core/config.py +7 -0
- monoco/core/hooks/builtin/git_cleanup.py +1 -1
- monoco/core/injection.py +63 -29
- monoco/core/integrations.py +2 -2
- monoco/core/output.py +5 -5
- monoco/core/registry.py +7 -1
- monoco/core/resource/__init__.py +5 -0
- monoco/core/resource/finder.py +98 -0
- monoco/core/resource/manager.py +91 -0
- monoco/core/resource/models.py +35 -0
- monoco/core/resources/en/{SKILL.md → skills/monoco_core/SKILL.md} +2 -0
- monoco/core/resources/zh/{SKILL.md → skills/monoco_core/SKILL.md} +2 -0
- monoco/core/skill_framework.py +292 -0
- monoco/core/skills.py +471 -371
- monoco/core/sync.py +73 -1
- monoco/core/workflow_converter.py +420 -0
- monoco/features/agent/__init__.py +2 -2
- monoco/features/agent/adapter.py +31 -0
- monoco/features/agent/apoptosis.py +44 -0
- monoco/features/agent/cli.py +101 -144
- monoco/features/agent/config.py +35 -21
- monoco/features/agent/defaults.py +6 -49
- monoco/features/agent/engines.py +32 -6
- monoco/features/agent/manager.py +6 -1
- monoco/features/agent/models.py +2 -2
- monoco/features/agent/resources/atoms/atom-code-dev.yaml +61 -0
- monoco/features/agent/resources/atoms/atom-issue-lifecycle.yaml +73 -0
- monoco/features/agent/resources/atoms/atom-knowledge.yaml +55 -0
- monoco/features/agent/resources/atoms/atom-review.yaml +60 -0
- monoco/features/agent/resources/en/skills/flow_engineer/SKILL.md +94 -0
- monoco/features/agent/resources/en/skills/flow_manager/SKILL.md +93 -0
- monoco/features/agent/resources/en/skills/flow_planner/SKILL.md +85 -0
- monoco/features/agent/resources/en/skills/flow_reviewer/SKILL.md +114 -0
- monoco/features/agent/resources/roles/role-engineer.yaml +49 -0
- monoco/features/agent/resources/roles/role-manager.yaml +46 -0
- monoco/features/agent/resources/roles/role-planner.yaml +46 -0
- monoco/features/agent/resources/roles/role-reviewer.yaml +47 -0
- monoco/features/agent/resources/workflows/workflow-dev.yaml +83 -0
- monoco/features/agent/resources/workflows/workflow-issue-create.yaml +72 -0
- monoco/features/agent/resources/workflows/workflow-review.yaml +94 -0
- monoco/features/agent/resources/zh/skills/flow_planner/SKILL.md +259 -0
- monoco/features/agent/resources/zh/skills/flow_reviewer/SKILL.md +137 -0
- monoco/features/agent/worker.py +38 -2
- monoco/features/glossary/__init__.py +0 -0
- monoco/features/glossary/adapter.py +31 -0
- monoco/features/glossary/config.py +5 -0
- monoco/features/glossary/resources/en/AGENTS.md +29 -0
- monoco/features/glossary/resources/en/skills/monoco_glossary/SKILL.md +35 -0
- monoco/features/glossary/resources/zh/AGENTS.md +29 -0
- monoco/features/glossary/resources/zh/skills/monoco_glossary/SKILL.md +35 -0
- monoco/features/i18n/resources/en/skills/i18n_scan_workflow/SKILL.md +105 -0
- monoco/features/i18n/resources/en/{SKILL.md → skills/monoco_i18n/SKILL.md} +2 -0
- monoco/features/i18n/resources/zh/{SKILL.md → skills/monoco_i18n/SKILL.md} +2 -0
- monoco/features/issue/core.py +45 -6
- monoco/features/issue/engine/machine.py +5 -2
- monoco/features/issue/models.py +1 -0
- monoco/features/issue/resources/en/skills/issue_create_workflow/SKILL.md +167 -0
- monoco/features/issue/resources/en/skills/issue_develop_workflow/SKILL.md +224 -0
- monoco/features/issue/resources/en/skills/issue_lifecycle_workflow/SKILL.md +159 -0
- monoco/features/issue/resources/en/skills/issue_refine_workflow/SKILL.md +203 -0
- monoco/features/issue/resources/en/{SKILL.md → skills/monoco_issue/SKILL.md} +2 -0
- monoco/features/issue/resources/zh/skills/issue_create_workflow/SKILL.md +167 -0
- monoco/features/issue/resources/zh/skills/issue_develop_workflow/SKILL.md +224 -0
- monoco/features/issue/resources/zh/skills/issue_refine_workflow/SKILL.md +203 -0
- monoco/features/issue/resources/zh/{SKILL.md → skills/monoco_issue/SKILL.md} +2 -0
- monoco/features/memo/resources/en/skills/monoco_memo/SKILL.md +77 -0
- monoco/features/memo/resources/en/skills/note_processing_workflow/SKILL.md +140 -0
- monoco/features/memo/resources/zh/{SKILL.md → skills/monoco_memo/SKILL.md} +2 -0
- monoco/features/spike/resources/en/{SKILL.md → skills/monoco_spike/SKILL.md} +2 -0
- monoco/features/spike/resources/en/skills/research_workflow/SKILL.md +121 -0
- monoco/features/spike/resources/zh/{SKILL.md → skills/monoco_spike/SKILL.md} +2 -0
- monoco_toolkit-0.3.10.dist-info/METADATA +124 -0
- monoco_toolkit-0.3.10.dist-info/RECORD +156 -0
- monoco/features/agent/reliability.py +0 -106
- monoco/features/agent/resources/skills/flow_reviewer/SKILL.md +0 -114
- monoco_toolkit-0.3.9.dist-info/METADATA +0 -127
- monoco_toolkit-0.3.9.dist-info/RECORD +0 -115
- /monoco/features/agent/resources/{skills → zh/skills}/flow_engineer/SKILL.md +0 -0
- /monoco/features/agent/resources/{skills → zh/skills}/flow_manager/SKILL.md +0 -0
- /monoco/features/i18n/resources/{skills → zh/skills}/i18n_scan_workflow/SKILL.md +0 -0
- /monoco/features/issue/resources/{skills → zh/skills}/issue_lifecycle_workflow/SKILL.md +0 -0
- /monoco/features/memo/resources/{skills → zh/skills}/note_processing_workflow/SKILL.md +0 -0
- /monoco/features/spike/resources/{skills → zh/skills}/research_workflow/SKILL.md +0 -0
- {monoco_toolkit-0.3.9.dist-info → monoco_toolkit-0.3.10.dist-info}/WHEEL +0 -0
- {monoco_toolkit-0.3.9.dist-info → monoco_toolkit-0.3.10.dist-info}/entry_points.txt +0 -0
- {monoco_toolkit-0.3.9.dist-info → monoco_toolkit-0.3.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: issue-create-workflow
|
|
3
|
+
description: Extract improvement clues from Memo, classify and create Issue Ticket (Copilot Mode)
|
|
4
|
+
type: flow
|
|
5
|
+
domain: issue
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Issue Create Workflow
|
|
10
|
+
|
|
11
|
+
Standardized workflow for extracting improvement clues from Memo, analyzing and creating structured Issue Tickets.
|
|
12
|
+
|
|
13
|
+
**Applicable Scenario**: Copilot Mode (Human-led, AI-assisted)
|
|
14
|
+
**Target Users**: Developers who need to quickly transform ideas/notes into actionable tasks
|
|
15
|
+
|
|
16
|
+
## Workflow State Machine
|
|
17
|
+
|
|
18
|
+
```mermaid
|
|
19
|
+
stateDiagram-v2
|
|
20
|
+
[*] --> Extract: Read Memo
|
|
21
|
+
|
|
22
|
+
Extract --> Classify: Identify Type
|
|
23
|
+
Extract --> Archive: No Value
|
|
24
|
+
|
|
25
|
+
Classify --> Design: Architecture Design Required
|
|
26
|
+
Classify --> Direct: Create Directly
|
|
27
|
+
|
|
28
|
+
Design --> Create: Design Complete
|
|
29
|
+
Direct --> Create: Create Directly
|
|
30
|
+
|
|
31
|
+
Archive --> [*]: Archive Memo
|
|
32
|
+
Create --> [*]: Issue Creation Complete
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Execution Steps
|
|
36
|
+
|
|
37
|
+
### 1. Extract
|
|
38
|
+
|
|
39
|
+
- **Goal**: Extract key improvement clues from Memo
|
|
40
|
+
- **Input**: Memo file or temporary notes
|
|
41
|
+
- **Output**: Structured improvement clue list
|
|
42
|
+
- **Checkpoints**:
|
|
43
|
+
- [ ] Run `monoco memo list` to view pending Memos
|
|
44
|
+
- [ ] Analyze improvement type and impact scope for each Memo
|
|
45
|
+
- [ ] Identify actionable improvements (not pure reference materials)
|
|
46
|
+
- [ ] Record improvement motivation and expected effects
|
|
47
|
+
|
|
48
|
+
**Analysis Dimensions**:
|
|
49
|
+
| Dimension | Question |
|
|
50
|
+
|-----------|----------|
|
|
51
|
+
| Value | What problem does this improvement solve? |
|
|
52
|
+
| Scope | Which modules/features are affected? |
|
|
53
|
+
| Urgency | Do it now or later? |
|
|
54
|
+
| Feasibility | Is there enough information to start? |
|
|
55
|
+
|
|
56
|
+
### 2. Classify
|
|
57
|
+
|
|
58
|
+
- **Goal**: Determine Issue type and priority
|
|
59
|
+
- **Checkpoints**:
|
|
60
|
+
- [ ] Determine if it's an architecture-level improvement (→ Epic)
|
|
61
|
+
- [ ] Determine if it's user value increment (→ Feature)
|
|
62
|
+
- [ ] Determine if it's engineering debt (→ Chore)
|
|
63
|
+
- [ ] Determine if it's a bug fix (→ Fix)
|
|
64
|
+
- [ ] Assess if pre-architecture design is required
|
|
65
|
+
|
|
66
|
+
**Decision Branches**:
|
|
67
|
+
|
|
68
|
+
| Condition | Type | Next Step |
|
|
69
|
+
|-----------|------|-----------|
|
|
70
|
+
| Architecture vision-level improvement, needs decomposition into multiple Features | Epic | → Design |
|
|
71
|
+
| User deliverable value, with clear acceptance criteria | Feature | → Direct |
|
|
72
|
+
| Engineering maintenance task, technical debt cleanup | Chore | → Direct |
|
|
73
|
+
| Bug fix, with clear reproduction steps | Fix | → Direct |
|
|
74
|
+
| Pure reference material, no direct improvement value | - | → Archive |
|
|
75
|
+
| Requires architecture design to estimate effort | - | → Design |
|
|
76
|
+
|
|
77
|
+
### 3. Design (Optional)
|
|
78
|
+
|
|
79
|
+
- **Goal**: Preliminary architecture design for complex improvements
|
|
80
|
+
- **Applicable**: Epic or large Feature
|
|
81
|
+
- **Checkpoints**:
|
|
82
|
+
- [ ] Analyze existing architecture inheritance
|
|
83
|
+
- [ ] Determine technical solution direction
|
|
84
|
+
- [ ] Identify dependency relationships and risk points
|
|
85
|
+
- [ ] Estimate effort and milestones
|
|
86
|
+
|
|
87
|
+
**Outputs**:
|
|
88
|
+
- Architecture Decision Record (ADR) draft
|
|
89
|
+
- Subtask decomposition suggestions
|
|
90
|
+
- Dependency Issue list
|
|
91
|
+
|
|
92
|
+
### 4. Create
|
|
93
|
+
|
|
94
|
+
- **Goal**: Create Issue that meets specifications
|
|
95
|
+
- **Checkpoints**:
|
|
96
|
+
- [ ] Run `monoco issue create <type> -t "Title"`
|
|
97
|
+
- [ ] Write clear description and background
|
|
98
|
+
- [ ] Define verifiable acceptance criteria (at least 2 Checkboxes)
|
|
99
|
+
- [ ] Set dependency relationships (if needed)
|
|
100
|
+
- [ ] Associate related Memo (if applicable)
|
|
101
|
+
- [ ] Run `monoco issue lint` to verify compliance
|
|
102
|
+
|
|
103
|
+
**Issue Content Template**:
|
|
104
|
+
|
|
105
|
+
```markdown
|
|
106
|
+
## Objective
|
|
107
|
+
Clearly describe the goal and expected outcome of this Issue.
|
|
108
|
+
|
|
109
|
+
## Acceptance Criteria
|
|
110
|
+
- [ ] Acceptance criterion 1
|
|
111
|
+
- [ ] Acceptance criterion 2
|
|
112
|
+
|
|
113
|
+
## Technical Tasks
|
|
114
|
+
- [ ] Technical task 1
|
|
115
|
+
- [ ] Technical task 2
|
|
116
|
+
|
|
117
|
+
## Related
|
|
118
|
+
- Parent: EPIC-XXXX (if applicable)
|
|
119
|
+
- Related Memo: MEMO-XXXX (if applicable)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### 5. Archive (Optional)
|
|
123
|
+
|
|
124
|
+
- **Goal**: Archive Memos with no direct improvement value
|
|
125
|
+
- **Checkpoints**:
|
|
126
|
+
- [ ] Confirm Memo content is pure reference material
|
|
127
|
+
- [ ] Record archiving reason
|
|
128
|
+
- [ ] Update Memo status (if system supports)
|
|
129
|
+
|
|
130
|
+
## Issue Type Guide
|
|
131
|
+
|
|
132
|
+
| Type | Purpose | Prefix | Mindset | Example |
|
|
133
|
+
|------|---------|--------|---------|---------|
|
|
134
|
+
| Epic | Grand goals, vision container | EPIC- | Architect | Refactor core architecture |
|
|
135
|
+
| Feature | User value increment | FEAT- | Product Owner | Add export functionality |
|
|
136
|
+
| Chore | Engineering tasks | CHORE- | Builder | Upgrade dependency versions |
|
|
137
|
+
| Fix | Bug fixes | FIX- | Debugger | Fix memory leak |
|
|
138
|
+
|
|
139
|
+
## Related Commands
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# View pending Memos
|
|
143
|
+
monoco memo list
|
|
144
|
+
|
|
145
|
+
# Create Issue
|
|
146
|
+
monoco issue create feature -t "Title"
|
|
147
|
+
monoco issue create chore -t "Title"
|
|
148
|
+
monoco issue create fix -t "Title"
|
|
149
|
+
monoco issue create epic -t "Title"
|
|
150
|
+
|
|
151
|
+
# Verify Issue compliance
|
|
152
|
+
monoco issue lint
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Relationship with flow_engineer
|
|
156
|
+
|
|
157
|
+
This workflow complements `flow_engineer`:
|
|
158
|
+
- `issue-create-workflow`: Focuses on Issue creation phase, transforming ideas into actionable tasks
|
|
159
|
+
- `flow_engineer`: Focuses on code implementation phase, executing Investigate → Code → Test → Report → Submit
|
|
160
|
+
|
|
161
|
+
## Copilot Mode Tips
|
|
162
|
+
|
|
163
|
+
As an AI Copilot, you should:
|
|
164
|
+
1. **Ask proactively**: When Memo content is unclear, ask human developers for intent
|
|
165
|
+
2. **Provide options**: Give multiple classification suggestions with reasoning
|
|
166
|
+
3. **Assist drafting**: Help write Issue descriptions and acceptance criteria
|
|
167
|
+
4. **Remind compliance**: Ensure created Issues meet project specifications
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: issue-develop-workflow
|
|
3
|
+
description: Execute complete workflow for Issue development, testing, submission and review (Copilot Mode)
|
|
4
|
+
type: flow
|
|
5
|
+
domain: issue
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Issue Develop Workflow
|
|
10
|
+
|
|
11
|
+
Complete standardized workflow for Issue development, testing, submission, review and merge.
|
|
12
|
+
|
|
13
|
+
**Applicable Scenario**: Copilot Mode (Human-led, AI-assisted)
|
|
14
|
+
**Target Users**: Developers responsible for implementing features or fixing bugs
|
|
15
|
+
|
|
16
|
+
## Workflow State Machine
|
|
17
|
+
|
|
18
|
+
```mermaid
|
|
19
|
+
stateDiagram-v2
|
|
20
|
+
[*] --> Setup: Start Development
|
|
21
|
+
|
|
22
|
+
Setup --> Develop: Environment Ready
|
|
23
|
+
Setup --> Setup: Dependencies Not Met<br/>(Wait for Resolution)
|
|
24
|
+
|
|
25
|
+
Develop --> Test: Coding Complete
|
|
26
|
+
Develop --> Develop: Needs Iteration<br/>(Continue Development)
|
|
27
|
+
|
|
28
|
+
Test --> Submit: Tests Pass
|
|
29
|
+
Test --> Develop: Tests Fail<br/>(Fix Code)
|
|
30
|
+
|
|
31
|
+
state "Review Loop" as ReviewLoop {
|
|
32
|
+
Submit --> Review: Submit for Review
|
|
33
|
+
Review --> Fix: Changes Required
|
|
34
|
+
Fix --> Submit: Resubmit
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
Review --> Merge: Review Passed
|
|
38
|
+
|
|
39
|
+
Merge --> [*]: Merge Complete
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Execution Steps
|
|
43
|
+
|
|
44
|
+
### 1. Setup
|
|
45
|
+
|
|
46
|
+
- **Goal**: Prepare development environment, ensure ready to code
|
|
47
|
+
- **Checkpoints**:
|
|
48
|
+
- [ ] Run `monoco issue start <ID> --branch` to create feature branch
|
|
49
|
+
- [ ] Confirm branch is created and switched
|
|
50
|
+
- [ ] Verify not currently on main/master branch
|
|
51
|
+
- [ ] Check if dependency Issues are completed
|
|
52
|
+
- [ ] Confirm Issue is refined (has technical task list)
|
|
53
|
+
|
|
54
|
+
**Environment Checklist**:
|
|
55
|
+
| Check Item | Command/Method |
|
|
56
|
+
|------------|----------------|
|
|
57
|
+
| Current Branch | `git branch --show-current` |
|
|
58
|
+
| Branch Status | `git status` |
|
|
59
|
+
| Dependency Issues | `monoco issue show <ID>` |
|
|
60
|
+
| Code Standards | Check project lint configuration |
|
|
61
|
+
|
|
62
|
+
### 2. Develop
|
|
63
|
+
|
|
64
|
+
- **Goal**: Implement feature or fix bug
|
|
65
|
+
- **Strategy**: Iterative development, small commits
|
|
66
|
+
- **Checkpoints**:
|
|
67
|
+
- [ ] Follow project code standards
|
|
68
|
+
- [ ] Write/update unit tests
|
|
69
|
+
- [ ] Commit code regularly (small commits)
|
|
70
|
+
- [ ] Update file tracking (`monoco issue sync-files`)
|
|
71
|
+
- [ ] Maintain code reviewability (single commit < 400 lines)
|
|
72
|
+
|
|
73
|
+
**Development Principles**:
|
|
74
|
+
| Principle | Description |
|
|
75
|
+
|-----------|-------------|
|
|
76
|
+
| Small Commits | Each commit is a logical unit |
|
|
77
|
+
| Test First | Prioritize writing test cases |
|
|
78
|
+
| Continuous Sync | Update file tracking promptly |
|
|
79
|
+
| Stay Focused | Avoid unrelated changes |
|
|
80
|
+
|
|
81
|
+
### 3. Test
|
|
82
|
+
|
|
83
|
+
- **Goal**: Ensure code quality and functional correctness
|
|
84
|
+
- **Checkpoints**:
|
|
85
|
+
- [ ] Run unit tests, ensure they pass
|
|
86
|
+
- [ ] Run integration tests (if applicable)
|
|
87
|
+
- [ ] Run code style checks (lint)
|
|
88
|
+
- [ ] Manually verify functionality (if needed)
|
|
89
|
+
- [ ] Check test coverage
|
|
90
|
+
|
|
91
|
+
**Test Levels**:
|
|
92
|
+
```
|
|
93
|
+
Unit Test → Integration Test → E2E Test → Manual Verification
|
|
94
|
+
↑ ↑ ↑ ↑
|
|
95
|
+
Required Recommended As Needed As Needed
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 4. Submit
|
|
99
|
+
|
|
100
|
+
- **Goal**: Prepare for code review
|
|
101
|
+
- **Checkpoints**:
|
|
102
|
+
- [ ] Run `monoco issue lint` to check compliance
|
|
103
|
+
- [ ] Fix all Lint errors
|
|
104
|
+
- [ ] Update task list status (mark completed items)
|
|
105
|
+
- [ ] Write clear commit message
|
|
106
|
+
- [ ] Run `monoco issue submit <ID>`
|
|
107
|
+
|
|
108
|
+
**Commit Message Specification**:
|
|
109
|
+
```
|
|
110
|
+
<type>(<scope>): <subject>
|
|
111
|
+
|
|
112
|
+
<body>
|
|
113
|
+
|
|
114
|
+
Refs: <ISSUE-ID>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
| Type | Purpose |
|
|
118
|
+
|------|---------|
|
|
119
|
+
| feat | New feature |
|
|
120
|
+
| fix | Bug fix |
|
|
121
|
+
| docs | Documentation update |
|
|
122
|
+
| style | Code formatting |
|
|
123
|
+
| refactor | Refactoring |
|
|
124
|
+
| test | Test related |
|
|
125
|
+
| chore | Build/tools |
|
|
126
|
+
|
|
127
|
+
### 5. Review
|
|
128
|
+
|
|
129
|
+
- **Goal**: Code quality and process compliance check
|
|
130
|
+
- **Checkpoints**:
|
|
131
|
+
- [ ] Is functionality correctly implemented
|
|
132
|
+
- [ ] Does code meet design specifications
|
|
133
|
+
- [ ] Are tests sufficient
|
|
134
|
+
- [ ] Is documentation updated
|
|
135
|
+
- [ ] Does it follow project standards
|
|
136
|
+
|
|
137
|
+
**Review Dimensions**:
|
|
138
|
+
| Dimension | Check Content |
|
|
139
|
+
|-----------|---------------|
|
|
140
|
+
| Correctness | Does functionality work as expected |
|
|
141
|
+
| Design | Does it meet architecture design |
|
|
142
|
+
| Testing | Is test coverage sufficient |
|
|
143
|
+
| Standards | Does it follow code standards |
|
|
144
|
+
| Documentation | Is documentation updated |
|
|
145
|
+
| Performance | Are there obvious performance issues |
|
|
146
|
+
| Security | Are there security risks |
|
|
147
|
+
|
|
148
|
+
### 6. Merge
|
|
149
|
+
|
|
150
|
+
- **Goal**: Complete Issue, merge code
|
|
151
|
+
- **Checkpoints**:
|
|
152
|
+
- [ ] Code has passed review
|
|
153
|
+
- [ ] All CI checks pass
|
|
154
|
+
- [ ] Code is merged to main branch
|
|
155
|
+
- [ ] Run `monoco issue close <ID> --solution completed --prune`
|
|
156
|
+
- [ ] Verify branch is cleaned up
|
|
157
|
+
- [ ] Update Review Comments (record review feedback)
|
|
158
|
+
|
|
159
|
+
## Decision Branches
|
|
160
|
+
|
|
161
|
+
| Condition | Action |
|
|
162
|
+
|-----------|--------|
|
|
163
|
+
| Dependency Issues not completed | Return to Setup, wait for dependencies |
|
|
164
|
+
| Tests fail | Return to Develop, fix code |
|
|
165
|
+
| Lint fails | Fix compliance issues, resubmit |
|
|
166
|
+
| Review requires changes | Return to Fix, modify per feedback |
|
|
167
|
+
| Review passed | Enter Merge, merge and cleanup |
|
|
168
|
+
|
|
169
|
+
## Compliance Requirements
|
|
170
|
+
|
|
171
|
+
- **Prohibited**: Directly modify code on main/master branch
|
|
172
|
+
- **Required**: Use `monoco issue start --branch` to create feature branch
|
|
173
|
+
- **Required**: All unit tests must pass before Submit
|
|
174
|
+
- **Required**: Each Issue must have at least 2 Checkboxes
|
|
175
|
+
- **Required**: Review/Done phase must include Review Comments
|
|
176
|
+
- **Recommended**: Small commits, frequently sync file tracking
|
|
177
|
+
|
|
178
|
+
## Related Commands
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# Start development
|
|
182
|
+
monoco issue start FEAT-0001 --branch
|
|
183
|
+
|
|
184
|
+
# Sync file tracking
|
|
185
|
+
monoco issue sync-files
|
|
186
|
+
|
|
187
|
+
# Check compliance
|
|
188
|
+
monoco issue lint
|
|
189
|
+
|
|
190
|
+
# Submit for review
|
|
191
|
+
monoco issue submit FEAT-0001
|
|
192
|
+
|
|
193
|
+
# Close Issue
|
|
194
|
+
monoco issue close FEAT-0001 --solution completed --prune
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Relationship with flow_engineer
|
|
198
|
+
|
|
199
|
+
The relationship between this workflow and `flow_engineer`:
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
issue-develop-workflow flow_engineer
|
|
203
|
+
│ │
|
|
204
|
+
├── Setup ─────────────────────┤
|
|
205
|
+
├── Develop ←──────────────────┤ Investigate → Code → Test
|
|
206
|
+
├── Test ──────────────────────┤
|
|
207
|
+
├── Submit ────────────────────┤ Report → Submit
|
|
208
|
+
├── Review ────────────────────┤
|
|
209
|
+
└── Merge ─────────────────────┤
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
- `issue-develop-workflow`: Focuses on Issue-level process management
|
|
213
|
+
- `flow_engineer`: Focuses on specific technical process for code implementation
|
|
214
|
+
|
|
215
|
+
During the Develop phase, developers should follow `flow_engineer`'s Investigate → Code → Test → Report → Submit process.
|
|
216
|
+
|
|
217
|
+
## Copilot Mode Tips
|
|
218
|
+
|
|
219
|
+
As an AI Copilot, you should:
|
|
220
|
+
1. **Assist coding**: Help implement features, fix bugs
|
|
221
|
+
2. **Code review**: Pre-review before submission to find potential issues
|
|
222
|
+
3. **Test assistance**: Help write test cases, ensure coverage
|
|
223
|
+
4. **Compliance check**: Remind developers to follow project standards
|
|
224
|
+
5. **Documentation sync**: Assist in updating related documentation
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: issue-lifecycle-workflow
|
|
3
|
+
description: Issue Lifecycle Workflow (Flow Skill). Defines the complete Issue management process from creation to closure, ensuring task tracking and process compliance.
|
|
4
|
+
type: flow
|
|
5
|
+
domain: issue
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Issue Lifecycle Workflow
|
|
10
|
+
|
|
11
|
+
Standardized workflow for Issue lifecycle, ensuring "Open → Start → Develop → Submit → Review → Close" process.
|
|
12
|
+
|
|
13
|
+
## Workflow State Machine
|
|
14
|
+
|
|
15
|
+
```mermaid
|
|
16
|
+
stateDiagram-v2
|
|
17
|
+
[*] --> Open: Create Issue
|
|
18
|
+
|
|
19
|
+
Open --> Start: Prepare Development
|
|
20
|
+
Open --> Open: Requirements Unclear<br/>(Wait for Clarification)
|
|
21
|
+
|
|
22
|
+
Start --> Develop: Branch Created
|
|
23
|
+
Start --> Start: Branch Conflict<br/>(Resolve Conflict)
|
|
24
|
+
|
|
25
|
+
Develop --> Submit: Development Complete
|
|
26
|
+
Develop --> Develop: Tests Fail<br/>(Fix Code)
|
|
27
|
+
|
|
28
|
+
state "Oracle Loop" as ReviewLoop {
|
|
29
|
+
Submit --> Review: Submit for Review
|
|
30
|
+
Review --> Fix: Rejected
|
|
31
|
+
Fix --> Submit: Resubmit
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
Review --> Close: Approved for Merge
|
|
35
|
+
|
|
36
|
+
Close --> [*]: Cleanup Complete
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Execution Steps
|
|
40
|
+
|
|
41
|
+
### 1. Open
|
|
42
|
+
|
|
43
|
+
- **Goal**: Create clear, actionable Issue
|
|
44
|
+
- **Input**: Requirement description, type, priority
|
|
45
|
+
- **Output**: Issue Ticket file
|
|
46
|
+
- **Checkpoints**:
|
|
47
|
+
- [ ] Use `monoco issue create <type> -t "Title"`
|
|
48
|
+
- [ ] Select appropriate type (epic/feature/chore/fix)
|
|
49
|
+
- [ ] Write clear description and acceptance criteria
|
|
50
|
+
- [ ] Set dependency relationships (if needed)
|
|
51
|
+
- [ ] Ensure at least 2 Checkboxes
|
|
52
|
+
|
|
53
|
+
### 2. Start
|
|
54
|
+
|
|
55
|
+
- **Goal**: Prepare development environment, create feature branch
|
|
56
|
+
- **Checkpoints**:
|
|
57
|
+
- [ ] Run `monoco issue start <ID> --branch`
|
|
58
|
+
- [ ] Confirm branch is created and switched
|
|
59
|
+
- [ ] Verify not currently on main/master branch
|
|
60
|
+
- [ ] Check if dependency Issues are completed
|
|
61
|
+
|
|
62
|
+
### 3. Develop
|
|
63
|
+
|
|
64
|
+
- **Goal**: Implement feature or fix bug
|
|
65
|
+
- **Strategy**: Iterative development, continuous testing
|
|
66
|
+
- **Checkpoints**:
|
|
67
|
+
- [ ] Follow project code standards
|
|
68
|
+
- [ ] Write/update unit tests
|
|
69
|
+
- [ ] Run test suite, ensure it passes
|
|
70
|
+
- [ ] Commit code regularly (small commits)
|
|
71
|
+
- [ ] Update file tracking (`monoco issue sync-files`)
|
|
72
|
+
|
|
73
|
+
### 4. Submit
|
|
74
|
+
|
|
75
|
+
- **Goal**: Prepare for code review
|
|
76
|
+
- **Checkpoints**:
|
|
77
|
+
- [ ] Run `monoco issue lint` to check compliance
|
|
78
|
+
- [ ] Fix all Lint errors
|
|
79
|
+
- [ ] Update task list status
|
|
80
|
+
- [ ] Run `monoco issue submit <ID>`
|
|
81
|
+
- [ ] Write change summary
|
|
82
|
+
|
|
83
|
+
### 5. Review
|
|
84
|
+
|
|
85
|
+
- **Goal**: Code quality and process compliance check
|
|
86
|
+
- **Checkpoints**:
|
|
87
|
+
- [ ] Is functionality correctly implemented
|
|
88
|
+
- [ ] Does code meet design specifications
|
|
89
|
+
- [ ] Are tests sufficient
|
|
90
|
+
- [ ] Is documentation updated
|
|
91
|
+
- [ ] Does it follow project standards
|
|
92
|
+
|
|
93
|
+
### 6. Close
|
|
94
|
+
|
|
95
|
+
- **Goal**: Complete Issue, cleanup environment
|
|
96
|
+
- **Checkpoints**:
|
|
97
|
+
- [ ] Code is merged to main branch
|
|
98
|
+
- [ ] Run `monoco issue close <ID> --solution completed --prune`
|
|
99
|
+
- [ ] Verify branch is cleaned up
|
|
100
|
+
- [ ] Update Review Comments (if needed)
|
|
101
|
+
|
|
102
|
+
## Decision Branches
|
|
103
|
+
|
|
104
|
+
| Condition | Action |
|
|
105
|
+
|-----------|--------|
|
|
106
|
+
| Requirements unclear | Return to Open, request clarification |
|
|
107
|
+
| Branch creation fails | Check Git status, resolve conflicts |
|
|
108
|
+
| Tests fail | Return to Develop, fix code |
|
|
109
|
+
| Lint fails | Fix compliance issues, resubmit |
|
|
110
|
+
| Review rejected | Return to Develop, modify per feedback |
|
|
111
|
+
| Review passed | Enter Close, merge and cleanup |
|
|
112
|
+
|
|
113
|
+
## Compliance Requirements
|
|
114
|
+
|
|
115
|
+
- **Prohibited**: Directly modify code on main/master branch
|
|
116
|
+
- **Required**: Use `monoco issue start --branch` to create feature branch
|
|
117
|
+
- **Required**: All unit tests must pass before Submit
|
|
118
|
+
- **Required**: Each Issue must have at least 2 Checkboxes
|
|
119
|
+
- **Required**: Review/Done phase must include Review Comments
|
|
120
|
+
- **Recommended**: Small commits, frequently sync file tracking
|
|
121
|
+
|
|
122
|
+
## Related Commands
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Create Issue
|
|
126
|
+
monoco issue create feature -t "Title"
|
|
127
|
+
|
|
128
|
+
# Start development
|
|
129
|
+
monoco issue start FEAT-0001 --branch
|
|
130
|
+
|
|
131
|
+
# Sync file tracking
|
|
132
|
+
monoco issue sync-files
|
|
133
|
+
|
|
134
|
+
# Check compliance
|
|
135
|
+
monoco issue lint
|
|
136
|
+
|
|
137
|
+
# Submit for review
|
|
138
|
+
monoco issue submit FEAT-0001
|
|
139
|
+
|
|
140
|
+
# Close Issue
|
|
141
|
+
monoco issue close FEAT-0001 --solution completed --prune
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Issue Type Guide
|
|
145
|
+
|
|
146
|
+
| Type | Purpose | Prefix | Mindset |
|
|
147
|
+
|------|---------|--------|---------|
|
|
148
|
+
| Epic | Grand goals, vision container | EPIC- | Architect |
|
|
149
|
+
| Feature | User value increment | FEAT- | Product Owner |
|
|
150
|
+
| Chore | Engineering tasks | CHORE- | Builder |
|
|
151
|
+
| Fix | Bug fixes | FIX- | Debugger |
|
|
152
|
+
|
|
153
|
+
## Relationship with flow_engineer
|
|
154
|
+
|
|
155
|
+
This workflow complements `flow_engineer`:
|
|
156
|
+
- `issue-lifecycle-workflow`: Focuses on Issue management process
|
|
157
|
+
- `flow_engineer`: Focuses on code implementation process
|
|
158
|
+
|
|
159
|
+
Engineers should follow `flow_engineer`'s Investigate → Code → Test → Report → Submit process during the Develop phase.
|