monoco-toolkit 0.3.12__py3-none-any.whl → 0.4.0__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/automation/__init__.py +0 -11
- monoco/core/automation/handlers.py +108 -26
- monoco/core/config.py +28 -10
- monoco/core/daemon/__init__.py +5 -0
- monoco/core/daemon/pid.py +290 -0
- monoco/core/injection.py +86 -8
- monoco/core/integrations.py +0 -24
- monoco/core/router/__init__.py +1 -39
- monoco/core/router/action.py +3 -142
- monoco/core/scheduler/events.py +28 -2
- monoco/core/setup.py +9 -0
- monoco/core/sync.py +199 -4
- monoco/core/watcher/__init__.py +6 -0
- monoco/core/watcher/base.py +18 -1
- monoco/core/watcher/im.py +460 -0
- monoco/core/watcher/memo.py +40 -48
- monoco/daemon/app.py +3 -60
- monoco/daemon/commands.py +459 -25
- monoco/daemon/scheduler.py +1 -16
- monoco/daemon/services.py +15 -0
- monoco/features/agent/resources/en/AGENTS.md +14 -14
- monoco/features/agent/resources/en/skills/monoco_role_engineer/SKILL.md +101 -0
- monoco/features/agent/resources/en/skills/monoco_role_manager/SKILL.md +95 -0
- monoco/features/agent/resources/en/skills/monoco_role_planner/SKILL.md +177 -0
- monoco/features/agent/resources/en/skills/monoco_role_reviewer/SKILL.md +139 -0
- monoco/features/agent/resources/zh/skills/monoco_role_engineer/SKILL.md +101 -0
- monoco/features/agent/resources/zh/skills/monoco_role_manager/SKILL.md +95 -0
- monoco/features/agent/resources/zh/skills/monoco_role_planner/SKILL.md +177 -0
- monoco/features/agent/resources/zh/skills/monoco_role_reviewer/SKILL.md +139 -0
- monoco/features/hooks/__init__.py +61 -6
- monoco/features/hooks/commands.py +281 -271
- monoco/features/hooks/dispatchers/__init__.py +23 -0
- monoco/features/hooks/dispatchers/agent_dispatcher.py +486 -0
- monoco/features/hooks/dispatchers/git_dispatcher.py +478 -0
- monoco/features/hooks/manager.py +357 -0
- monoco/features/hooks/models.py +262 -0
- monoco/features/hooks/parser.py +322 -0
- monoco/features/hooks/universal_interceptor.py +503 -0
- monoco/features/im/__init__.py +67 -0
- monoco/features/im/core.py +782 -0
- monoco/features/im/models.py +311 -0
- monoco/features/issue/commands.py +65 -50
- monoco/features/issue/core.py +199 -99
- monoco/features/issue/domain_commands.py +0 -19
- monoco/features/issue/resources/en/AGENTS.md +17 -122
- monoco/features/issue/resources/hooks/agent/before-tool.sh +102 -0
- monoco/features/issue/resources/hooks/agent/session-start.sh +88 -0
- monoco/features/issue/resources/hooks/{post-checkout.sh → git/git-post-checkout.sh} +10 -9
- monoco/features/issue/resources/hooks/git/git-pre-commit.sh +31 -0
- monoco/features/issue/resources/hooks/{pre-push.sh → git/git-pre-push.sh} +7 -13
- monoco/features/issue/resources/zh/AGENTS.md +18 -123
- monoco/features/memo/cli.py +15 -64
- monoco/features/memo/core.py +6 -34
- monoco/features/memo/models.py +24 -15
- monoco/features/memo/resources/en/AGENTS.md +31 -0
- monoco/features/memo/resources/zh/AGENTS.md +28 -5
- monoco/main.py +5 -3
- {monoco_toolkit-0.3.12.dist-info → monoco_toolkit-0.4.0.dist-info}/METADATA +1 -1
- monoco_toolkit-0.4.0.dist-info/RECORD +170 -0
- monoco/core/automation/config.py +0 -338
- monoco/core/execution.py +0 -67
- monoco/core/executor/__init__.py +0 -38
- monoco/core/executor/agent_action.py +0 -254
- monoco/core/executor/git_action.py +0 -303
- monoco/core/executor/im_action.py +0 -309
- monoco/core/executor/pytest_action.py +0 -218
- monoco/core/router/router.py +0 -392
- monoco/features/agent/resources/atoms/atom-code-dev.yaml +0 -61
- monoco/features/agent/resources/atoms/atom-issue-lifecycle.yaml +0 -73
- monoco/features/agent/resources/atoms/atom-knowledge.yaml +0 -55
- monoco/features/agent/resources/atoms/atom-review.yaml +0 -60
- monoco/features/agent/resources/en/skills/monoco_atom_core/SKILL.md +0 -99
- monoco/features/agent/resources/en/skills/monoco_workflow_agent_engineer/SKILL.md +0 -94
- monoco/features/agent/resources/en/skills/monoco_workflow_agent_manager/SKILL.md +0 -93
- monoco/features/agent/resources/en/skills/monoco_workflow_agent_planner/SKILL.md +0 -85
- monoco/features/agent/resources/en/skills/monoco_workflow_agent_reviewer/SKILL.md +0 -114
- monoco/features/agent/resources/workflows/workflow-dev.yaml +0 -83
- monoco/features/agent/resources/workflows/workflow-issue-create.yaml +0 -72
- monoco/features/agent/resources/workflows/workflow-review.yaml +0 -94
- monoco/features/agent/resources/zh/roles/monoco_role_engineer.yaml +0 -49
- monoco/features/agent/resources/zh/roles/monoco_role_manager.yaml +0 -46
- monoco/features/agent/resources/zh/roles/monoco_role_planner.yaml +0 -46
- monoco/features/agent/resources/zh/roles/monoco_role_reviewer.yaml +0 -47
- monoco/features/agent/resources/zh/skills/monoco_atom_core/SKILL.md +0 -99
- monoco/features/agent/resources/zh/skills/monoco_workflow_agent_engineer/SKILL.md +0 -94
- monoco/features/agent/resources/zh/skills/monoco_workflow_agent_manager/SKILL.md +0 -88
- monoco/features/agent/resources/zh/skills/monoco_workflow_agent_planner/SKILL.md +0 -259
- monoco/features/agent/resources/zh/skills/monoco_workflow_agent_reviewer/SKILL.md +0 -137
- monoco/features/artifact/resources/zh/skills/monoco_atom_artifact/SKILL.md +0 -278
- monoco/features/glossary/resources/en/skills/monoco_atom_glossary/SKILL.md +0 -35
- monoco/features/glossary/resources/zh/skills/monoco_atom_glossary/SKILL.md +0 -35
- monoco/features/hooks/adapter.py +0 -67
- monoco/features/hooks/core.py +0 -441
- monoco/features/i18n/resources/en/skills/monoco_atom_i18n/SKILL.md +0 -96
- monoco/features/i18n/resources/en/skills/monoco_workflow_i18n_scan/SKILL.md +0 -105
- monoco/features/i18n/resources/zh/skills/monoco_atom_i18n/SKILL.md +0 -96
- monoco/features/i18n/resources/zh/skills/monoco_workflow_i18n_scan/SKILL.md +0 -105
- monoco/features/issue/resources/en/skills/monoco_atom_issue/SKILL.md +0 -165
- monoco/features/issue/resources/en/skills/monoco_workflow_issue_creation/SKILL.md +0 -167
- monoco/features/issue/resources/en/skills/monoco_workflow_issue_development/SKILL.md +0 -224
- monoco/features/issue/resources/en/skills/monoco_workflow_issue_management/SKILL.md +0 -159
- monoco/features/issue/resources/en/skills/monoco_workflow_issue_refinement/SKILL.md +0 -203
- monoco/features/issue/resources/hooks/pre-commit.sh +0 -41
- monoco/features/issue/resources/zh/skills/monoco_atom_issue_lifecycle/SKILL.md +0 -190
- monoco/features/issue/resources/zh/skills/monoco_workflow_issue_creation/SKILL.md +0 -167
- monoco/features/issue/resources/zh/skills/monoco_workflow_issue_development/SKILL.md +0 -224
- monoco/features/issue/resources/zh/skills/monoco_workflow_issue_management/SKILL.md +0 -159
- monoco/features/issue/resources/zh/skills/monoco_workflow_issue_refinement/SKILL.md +0 -203
- monoco/features/memo/resources/en/skills/monoco_atom_memo/SKILL.md +0 -77
- monoco/features/memo/resources/en/skills/monoco_workflow_note_processing/SKILL.md +0 -140
- monoco/features/memo/resources/zh/skills/monoco_atom_memo/SKILL.md +0 -77
- monoco/features/memo/resources/zh/skills/monoco_workflow_note_processing/SKILL.md +0 -140
- monoco/features/spike/resources/en/skills/monoco_atom_spike/SKILL.md +0 -76
- monoco/features/spike/resources/en/skills/monoco_workflow_research/SKILL.md +0 -121
- monoco/features/spike/resources/zh/skills/monoco_atom_spike/SKILL.md +0 -76
- monoco/features/spike/resources/zh/skills/monoco_workflow_research/SKILL.md +0 -121
- monoco_toolkit-0.3.12.dist-info/RECORD +0 -202
- {monoco_toolkit-0.3.12.dist-info → monoco_toolkit-0.4.0.dist-info}/WHEEL +0 -0
- {monoco_toolkit-0.3.12.dist-info → monoco_toolkit-0.4.0.dist-info}/entry_points.txt +0 -0
- {monoco_toolkit-0.3.12.dist-info → monoco_toolkit-0.4.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_workflow_issue_management
|
|
3
|
-
description: Issue 生命周期工作流 (Flow Skill)。定义从创建到关闭的完整 Issue 管理流程,确保任务追踪和流程合规。
|
|
4
|
-
type: workflow
|
|
5
|
-
domain: issue
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Issue Lifecycle Workflow
|
|
10
|
-
|
|
11
|
-
Issue 生命周期的标准化工作流,确保 "Open → Start → Develop → Submit → Review → Close" 流程。
|
|
12
|
-
|
|
13
|
-
## 工作流状态机
|
|
14
|
-
|
|
15
|
-
```mermaid
|
|
16
|
-
stateDiagram-v2
|
|
17
|
-
[*] --> Open: 创建 Issue
|
|
18
|
-
|
|
19
|
-
Open --> Start: 准备开发
|
|
20
|
-
Open --> Open: 需求不清<br/>(等待澄清)
|
|
21
|
-
|
|
22
|
-
Start --> Develop: 分支创建
|
|
23
|
-
Start --> Start: 分支冲突<br/>(解决冲突)
|
|
24
|
-
|
|
25
|
-
Develop --> Submit: 开发完成
|
|
26
|
-
Develop --> Develop: 测试失败<br/>(修复代码)
|
|
27
|
-
|
|
28
|
-
state "Oracle Loop" as ReviewLoop {
|
|
29
|
-
Submit --> Review: 提交评审
|
|
30
|
-
Review --> Fix: 拒绝
|
|
31
|
-
Fix --> Submit: 重新提交
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
Review --> Close: 批准合并
|
|
35
|
-
|
|
36
|
-
Close --> [*]: 清理完成
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## 执行步骤
|
|
40
|
-
|
|
41
|
-
### 1. Open (创建)
|
|
42
|
-
|
|
43
|
-
- **目标**: 创建清晰、可执行的 Issue
|
|
44
|
-
- **输入**: 需求描述、类型、优先级
|
|
45
|
-
- **输出**: Issue Ticket 文件
|
|
46
|
-
- **检查点**:
|
|
47
|
-
- [ ] 使用 `monoco issue create <type> -t "标题"`
|
|
48
|
-
- [ ] 选择合适的类型(epic/feature/chore/fix)
|
|
49
|
-
- [ ] 编写清晰的描述和验收标准
|
|
50
|
-
- [ ] 设置依赖关系(如需要)
|
|
51
|
-
- [ ] 确保至少 2 个 Checkbox
|
|
52
|
-
|
|
53
|
-
### 2. Start (启动)
|
|
54
|
-
|
|
55
|
-
- **目标**: 准备开发环境,创建功能分支
|
|
56
|
-
- **检查点**:
|
|
57
|
-
- [ ] 运行 `monoco issue start <ID> --branch`
|
|
58
|
-
- [ ] 确认分支已创建并切换
|
|
59
|
-
- [ ] 验证当前不在 main/master 分支
|
|
60
|
-
- [ ] 检查依赖 Issue 是否已完成
|
|
61
|
-
|
|
62
|
-
### 3. Develop (开发)
|
|
63
|
-
|
|
64
|
-
- **目标**: 实现功能或修复缺陷
|
|
65
|
-
- **策略**: 迭代开发,持续测试
|
|
66
|
-
- **检查点**:
|
|
67
|
-
- [ ] 遵循项目代码规范
|
|
68
|
-
- [ ] 编写/更新单元测试
|
|
69
|
-
- [ ] 运行测试套件,确保通过
|
|
70
|
-
- [ ] 定期提交代码(小步提交)
|
|
71
|
-
- [ ] 更新文件追踪(`monoco issue sync-files`)
|
|
72
|
-
|
|
73
|
-
### 4. Submit (提交)
|
|
74
|
-
|
|
75
|
-
- **目标**: 准备代码评审
|
|
76
|
-
- **检查点**:
|
|
77
|
-
- [ ] 运行 `monoco issue lint` 检查合规性
|
|
78
|
-
- [ ] 修复所有 Lint 错误
|
|
79
|
-
- [ ] 更新任务清单状态
|
|
80
|
-
- [ ] 运行 `monoco issue submit <ID>`
|
|
81
|
-
- [ ] 编写变更摘要
|
|
82
|
-
|
|
83
|
-
### 5. Review (评审)
|
|
84
|
-
|
|
85
|
-
- **目标**: 代码质量和流程合规检查
|
|
86
|
-
- **检查点**:
|
|
87
|
-
- [ ] 功能是否正确实现
|
|
88
|
-
- [ ] 代码是否符合设计规范
|
|
89
|
-
- [ ] 测试是否充分
|
|
90
|
-
- [ ] 文档是否同步更新
|
|
91
|
-
- [ ] 是否遵循项目规范
|
|
92
|
-
|
|
93
|
-
### 6. Close (关闭)
|
|
94
|
-
|
|
95
|
-
- **目标**: 完成 Issue,清理环境
|
|
96
|
-
- **检查点**:
|
|
97
|
-
- [ ] 代码已合并到主分支
|
|
98
|
-
- [ ] 运行 `monoco issue close <ID> --solution completed --prune`
|
|
99
|
-
- [ ] 验证分支已清理
|
|
100
|
-
- [ ] 更新 Review Comments(如需要)
|
|
101
|
-
|
|
102
|
-
## 决策分支
|
|
103
|
-
|
|
104
|
-
| 条件 | 动作 |
|
|
105
|
-
|------|------|
|
|
106
|
-
| 需求不清晰 | 返回 Open,请求澄清 |
|
|
107
|
-
| 分支创建失败 | 检查 Git 状态,解决冲突 |
|
|
108
|
-
| 测试失败 | 返回 Develop,修复代码 |
|
|
109
|
-
| Lint 失败 | 修复合规性问题,重新 Submit |
|
|
110
|
-
| 评审拒绝 | 返回 Develop,按反馈修改 |
|
|
111
|
-
| 评审通过 | 进入 Close,合并并清理 |
|
|
112
|
-
|
|
113
|
-
## 合规要求
|
|
114
|
-
|
|
115
|
-
- **禁止**: 在 main/master 分支直接修改代码
|
|
116
|
-
- **必须**: 使用 `monoco issue start --branch` 创建功能分支
|
|
117
|
-
- **必须**: 所有单元测试通过后才能 Submit
|
|
118
|
-
- **必须**: 每个 Issue 至少 2 个 Checkbox
|
|
119
|
-
- **必须**: Review/Done 阶段必须包含 Review Comments
|
|
120
|
-
- **建议**: 小步提交,频繁同步文件追踪
|
|
121
|
-
|
|
122
|
-
## 相关命令
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
# 创建 Issue
|
|
126
|
-
monoco issue create feature -t "标题"
|
|
127
|
-
|
|
128
|
-
# 启动开发
|
|
129
|
-
monoco issue start FEAT-0001 --branch
|
|
130
|
-
|
|
131
|
-
# 同步文件追踪
|
|
132
|
-
monoco issue sync-files
|
|
133
|
-
|
|
134
|
-
# 检查合规性
|
|
135
|
-
monoco issue lint
|
|
136
|
-
|
|
137
|
-
# 提交评审
|
|
138
|
-
monoco issue submit FEAT-0001
|
|
139
|
-
|
|
140
|
-
# 关闭 Issue
|
|
141
|
-
monoco issue close FEAT-0001 --solution completed --prune
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## Issue 类型指南
|
|
145
|
-
|
|
146
|
-
| 类型 | 用途 | 前缀 | Mindset |
|
|
147
|
-
|------|------|------|---------|
|
|
148
|
-
| Epic | 宏大目标、愿景容器 | EPIC- | Architect |
|
|
149
|
-
| Feature | 用户价值增量 | FEAT- | Product Owner |
|
|
150
|
-
| Chore | 工程性事务 | CHORE- | Builder |
|
|
151
|
-
| Fix | 缺陷修复 | FIX- | Debugger |
|
|
152
|
-
|
|
153
|
-
## 与 flow_engineer 的关系
|
|
154
|
-
|
|
155
|
-
此工作流与 `flow_engineer` 互补:
|
|
156
|
-
- `issue-lifecycle-workflow`: 关注 Issue 管理流程
|
|
157
|
-
- `flow_engineer`: 关注代码实现流程
|
|
158
|
-
|
|
159
|
-
Engineer 在执行 Develop 阶段时,应遵循 `flow_engineer` 的 Investigate → Code → Test → Report → Submit 流程。
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_workflow_issue_refinement
|
|
3
|
-
description: 调查并细化 Issue,补充技术细节和实现方案 (Copilot 模式)
|
|
4
|
-
type: workflow
|
|
5
|
-
domain: issue
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Issue Refine Workflow
|
|
10
|
-
|
|
11
|
-
对新创建或待细化的 Issue 进行技术调查、架构分析和方案设计的标准化工作流。
|
|
12
|
-
|
|
13
|
-
**适用场景**: Copilot 模式(人类主导,AI 辅助)
|
|
14
|
-
**目标用户**: 需要深入理解问题并制定实现方案的开发者
|
|
15
|
-
|
|
16
|
-
## 工作流状态机
|
|
17
|
-
|
|
18
|
-
```mermaid
|
|
19
|
-
stateDiagram-v2
|
|
20
|
-
[*] --> Investigate: 开始细化
|
|
21
|
-
|
|
22
|
-
Investigate --> Analyze: 收集信息
|
|
23
|
-
Investigate --> Investigate: 信息不足<br/>(继续调查)
|
|
24
|
-
|
|
25
|
-
Analyze --> Architect: 需要架构设计
|
|
26
|
-
Analyze --> Document: 直接文档化
|
|
27
|
-
|
|
28
|
-
Architect --> Document: 设计完成
|
|
29
|
-
|
|
30
|
-
Document --> [*]: Issue 细化完成
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## 执行步骤
|
|
34
|
-
|
|
35
|
-
### 1. Investigate (调查)
|
|
36
|
-
|
|
37
|
-
- **目标**: 全面收集与 Issue 相关的信息
|
|
38
|
-
- **输入**: Issue Ticket、相关代码、文档
|
|
39
|
-
- **输出**: 信息收集报告
|
|
40
|
-
- **检查点**:
|
|
41
|
-
- [ ] 阅读 Issue 描述,理解核心问题
|
|
42
|
-
- [ ] 识别相关代码模块和文件
|
|
43
|
-
- [ ] 查看相关 Issue/PR 历史
|
|
44
|
-
- [ ] 检查外部依赖和约束条件
|
|
45
|
-
- [ ] 收集类似实现参考(Spike)
|
|
46
|
-
|
|
47
|
-
**调查维度**:
|
|
48
|
-
| 维度 | 调查内容 |
|
|
49
|
-
|------|----------|
|
|
50
|
-
| 代码 | 相关模块的当前实现 |
|
|
51
|
-
| 历史 | 相关 Issue、PR、设计文档 |
|
|
52
|
-
| 依赖 | 外部库、API、服务依赖 |
|
|
53
|
-
| 约束 | 性能要求、安全要求、兼容性 |
|
|
54
|
-
| 参考 | 类似功能的最佳实践 |
|
|
55
|
-
|
|
56
|
-
### 2. Analyze (分析)
|
|
57
|
-
|
|
58
|
-
- **目标**: 分析收集的信息,识别关键问题和方案选项
|
|
59
|
-
- **检查点**:
|
|
60
|
-
- [ ] 分析架构继承性(如何融入现有架构)
|
|
61
|
-
- [ ] 评估安全性影响
|
|
62
|
-
- [ ] 评估性能影响
|
|
63
|
-
- [ ] 评估可维护性
|
|
64
|
-
- [ ] 识别潜在风险和缓解措施
|
|
65
|
-
|
|
66
|
-
**分析框架**:
|
|
67
|
-
|
|
68
|
-
#### 架构继承性
|
|
69
|
-
- 现有架构模式是否适用?
|
|
70
|
-
- 是否需要引入新的抽象层?
|
|
71
|
-
- 对现有模块的耦合影响?
|
|
72
|
-
|
|
73
|
-
#### 安全性评估
|
|
74
|
-
- 输入验证需求
|
|
75
|
-
- 权限控制需求
|
|
76
|
-
- 数据保护需求
|
|
77
|
-
- 潜在攻击面分析
|
|
78
|
-
|
|
79
|
-
#### 性能评估
|
|
80
|
-
- 时间复杂度影响
|
|
81
|
-
- 空间复杂度影响
|
|
82
|
-
- 并发/并行需求
|
|
83
|
-
- 资源使用预估
|
|
84
|
-
|
|
85
|
-
#### 可维护性评估
|
|
86
|
-
- 代码复杂度变化
|
|
87
|
-
- 测试覆盖需求
|
|
88
|
-
- 文档更新需求
|
|
89
|
-
- 后续扩展性
|
|
90
|
-
|
|
91
|
-
### 3. Architect (架构) - 可选
|
|
92
|
-
|
|
93
|
-
- **目标**: 对复杂 Issue 进行架构设计
|
|
94
|
-
- **适用**: 涉及架构变更或大型功能
|
|
95
|
-
- **检查点**:
|
|
96
|
-
- [ ] 确定技术方案选型
|
|
97
|
-
- [ ] 设计接口和交互协议
|
|
98
|
-
- [ ] 规划数据模型变更
|
|
99
|
-
- [ ] 制定实现里程碑
|
|
100
|
-
|
|
101
|
-
**输出物**:
|
|
102
|
-
- 架构决策记录 (ADR)
|
|
103
|
-
- 接口设计文档
|
|
104
|
-
- 数据模型变更
|
|
105
|
-
- 里程碑计划
|
|
106
|
-
|
|
107
|
-
### 4. Document (文档)
|
|
108
|
-
|
|
109
|
-
- **目标**: 将分析结果更新到 Issue
|
|
110
|
-
- **检查点**:
|
|
111
|
-
- [ ] 更新技术任务清单
|
|
112
|
-
- [ ] 添加架构决策说明
|
|
113
|
-
- [ ] 补充风险和缓解措施
|
|
114
|
-
- [ ] 更新验收标准(如需要)
|
|
115
|
-
- [ ] 添加参考链接和依赖说明
|
|
116
|
-
- [ ] 运行 `monoco issue lint` 验证合规性
|
|
117
|
-
|
|
118
|
-
**细化后 Issue 结构**:
|
|
119
|
-
|
|
120
|
-
```markdown
|
|
121
|
-
## Objective
|
|
122
|
-
[原有内容]
|
|
123
|
-
|
|
124
|
-
## Acceptance Criteria
|
|
125
|
-
- [ ] 验收标准 1
|
|
126
|
-
- [ ] 验收标准 2
|
|
127
|
-
|
|
128
|
-
## Technical Analysis
|
|
129
|
-
|
|
130
|
-
### 现状分析
|
|
131
|
-
描述当前代码状态和相关实现。
|
|
132
|
-
|
|
133
|
-
### 方案选型
|
|
134
|
-
| 方案 | 优点 | 缺点 | 决策 |
|
|
135
|
-
|------|------|------|------|
|
|
136
|
-
| A | ... | ... | 采纳/备选 |
|
|
137
|
-
| B | ... | ... | 备选/放弃 |
|
|
138
|
-
|
|
139
|
-
### 风险评估
|
|
140
|
-
| 风险 | 影响 | 缓解措施 |
|
|
141
|
-
|------|------|----------|
|
|
142
|
-
| 风险1 | 高/中/低 | 措施... |
|
|
143
|
-
|
|
144
|
-
## Technical Tasks
|
|
145
|
-
- [ ] 任务 1
|
|
146
|
-
- [ ] 任务 2
|
|
147
|
-
|
|
148
|
-
## References
|
|
149
|
-
- 相关 Issue: #XXX
|
|
150
|
-
- 参考实现: [链接]
|
|
151
|
-
- ADR: [链接]
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## 决策分支
|
|
155
|
-
|
|
156
|
-
| 条件 | 动作 |
|
|
157
|
-
|------|------|
|
|
158
|
-
| 信息不足 | 返回 Investigate,继续收集 |
|
|
159
|
-
| 需要架构设计 | 进入 Architect 阶段 |
|
|
160
|
-
| 方案明确 | 直接进入 Document 阶段 |
|
|
161
|
-
| 发现阻塞依赖 | 创建依赖 Issue,标记当前 Issue |
|
|
162
|
-
| 问题过于复杂 | 建议拆分为多个 Issue |
|
|
163
|
-
|
|
164
|
-
## 细化程度指南
|
|
165
|
-
|
|
166
|
-
| Issue 类型 | 细化要求 |
|
|
167
|
-
|------------|----------|
|
|
168
|
-
| Epic | 必须包含架构设计、里程碑、子任务分解 |
|
|
169
|
-
| Feature | 必须包含技术方案、风险评估、任务分解 |
|
|
170
|
-
| Chore | 必须包含实施步骤、影响范围 |
|
|
171
|
-
| Fix | 必须包含根因分析、修复方案、测试用例 |
|
|
172
|
-
|
|
173
|
-
## 相关命令
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
# 查看 Issue 详情
|
|
177
|
-
monoco issue show <ID>
|
|
178
|
-
|
|
179
|
-
# 检查合规性
|
|
180
|
-
monoco issue lint
|
|
181
|
-
|
|
182
|
-
# 同步文件追踪
|
|
183
|
-
monoco issue sync-files
|
|
184
|
-
|
|
185
|
-
# 查看相关 Spike
|
|
186
|
-
monoco spike list
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
## 与 flow_engineer 的关系
|
|
190
|
-
|
|
191
|
-
此工作流与 `flow_engineer` 互补:
|
|
192
|
-
- `issue-refine-workflow`: 关注 Issue 细化阶段,在开发前完成技术调查
|
|
193
|
-
- `flow_engineer`: 关注代码实现阶段,执行 Investigate → Code → Test → Report → Submit
|
|
194
|
-
|
|
195
|
-
细化阶段收集的信息将为 Engineer 阶段的 Investigate 提供重要输入。
|
|
196
|
-
|
|
197
|
-
## Copilot 模式提示
|
|
198
|
-
|
|
199
|
-
作为 AI Copilot,你应该:
|
|
200
|
-
1. **主动探索**: 帮助开发者发现潜在问题和边界情况
|
|
201
|
-
2. **提供对比**: 给出多个技术方案,分析优缺点
|
|
202
|
-
3. **协助评估**: 帮助进行安全性、性能影响评估
|
|
203
|
-
4. **提醒遗漏**: 检查是否有遗漏的关键信息或风险点
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_atom_memo
|
|
3
|
-
description: Lightweight memo system for quickly recording ideas, inspirations, and temporary notes. Distinguished from the formal Issue system.
|
|
4
|
-
type: atom
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Monoco Memo
|
|
9
|
-
|
|
10
|
-
Use this skill to quickly capture fleeting notes (fleeting ideas) without creating a formal Issue.
|
|
11
|
-
|
|
12
|
-
## When to Use Memo vs Issue
|
|
13
|
-
|
|
14
|
-
| Scenario | Use | Reason |
|
|
15
|
-
|----------|-----|--------|
|
|
16
|
-
| Temporary ideas, inspirations | **Memo** | No tracking needed, no completion status required |
|
|
17
|
-
| Code snippets, link bookmarks | **Memo** | Quick record, organize later |
|
|
18
|
-
| Meeting notes | **Memo** | Record first, then extract tasks |
|
|
19
|
-
| Actionable work unit | **Issue** | Requires tracking, acceptance criteria, lifecycle |
|
|
20
|
-
| Bug fix | **Issue** | Needs to record reproduction steps, verification results |
|
|
21
|
-
| Feature development | **Issue** | Needs design, decomposition, delivery |
|
|
22
|
-
|
|
23
|
-
> **Core Principle**: Memos record **ideas**; Issues handle **actionable tasks**.
|
|
24
|
-
|
|
25
|
-
## Commands
|
|
26
|
-
|
|
27
|
-
### Add Memo
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
monoco memo add "Your memo content"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Optional parameters:
|
|
34
|
-
- `-c, --context`: Add context reference (e.g., `file:line`)
|
|
35
|
-
|
|
36
|
-
Examples:
|
|
37
|
-
```bash
|
|
38
|
-
# Simple record
|
|
39
|
-
monoco memo add "Consider using Redis cache for user sessions"
|
|
40
|
-
|
|
41
|
-
# Record with context
|
|
42
|
-
monoco memo add "Recursion here may cause stack overflow" -c "src/utils.py:42"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### View Memo List
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
monoco memo list
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Displays all unarchived memos.
|
|
52
|
-
|
|
53
|
-
### Open Memo File
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
monoco memo open
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Opens the memo file in the default editor for organizing or batch editing.
|
|
60
|
-
|
|
61
|
-
## Workflow
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
Idea flashes → monoco memo add "..." → Regular organization → Extract into Issue or archive
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
1. **Capture**: Use `monoco memo add` immediately when you have an idea
|
|
68
|
-
2. **Organize**: Regularly (e.g., daily/weekly) run `monoco memo list` to review
|
|
69
|
-
3. **Convert**: Transform valuable memos into formal Issues
|
|
70
|
-
4. **Archive**: Remove from memos after processing
|
|
71
|
-
|
|
72
|
-
## Best Practices
|
|
73
|
-
|
|
74
|
-
1. **Keep concise**: Memos are quick notes, no detailed description needed
|
|
75
|
-
2. **Convert timely**: Valuable ideas should be converted to Issue as soon as possible to avoid forgetting
|
|
76
|
-
3. **Clean up regularly**: Memos are temporary, don't let them accumulate indefinitely
|
|
77
|
-
4. **Use context**: When recording code-related ideas, use `-c` parameter to mark the location
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_workflow_note_processing
|
|
3
|
-
description: Memo Note Processing Workflow (Flow Skill). Defines the standard operational process from capturing fleeting notes to organizing and archiving, ensuring effective management of ideas.
|
|
4
|
-
type: workflow
|
|
5
|
-
domain: memo
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Note Processing Workflow
|
|
10
|
-
|
|
11
|
-
Standardized workflow for Memo note processing, ensuring the "Capture → Process → Organize → Archive/Convert" process.
|
|
12
|
-
|
|
13
|
-
## Workflow State Machine
|
|
14
|
-
|
|
15
|
-
```mermaid
|
|
16
|
-
stateDiagram-v2
|
|
17
|
-
[*] --> Capture: Idea flashes
|
|
18
|
-
|
|
19
|
-
Capture --> Process: Regular organization
|
|
20
|
-
Capture --> Capture: Continue recording
|
|
21
|
-
|
|
22
|
-
Process --> Organize: Classification completed
|
|
23
|
-
Process --> Archive: No value<br/>(archive directly)
|
|
24
|
-
|
|
25
|
-
Organize --> Convert: Actionable
|
|
26
|
-
Organize --> Organize: Needs supplement<br/>(complete information)
|
|
27
|
-
Organize --> Archive: Pure reference<br/>(archive for storage)
|
|
28
|
-
|
|
29
|
-
Convert --> [*]: Converted to Issue
|
|
30
|
-
|
|
31
|
-
Archive --> [*]: Archiving completed
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Execution Steps
|
|
35
|
-
|
|
36
|
-
### 1. Capture (Capture)
|
|
37
|
-
|
|
38
|
-
- **Goal**: Quickly record fleeting ideas without interrupting current work
|
|
39
|
-
- **Input**: Ideas, inspirations, code snippets, links
|
|
40
|
-
- **Output**: Memo record
|
|
41
|
-
- **Checkpoints**:
|
|
42
|
-
- [ ] Use `monoco memo add "content"`
|
|
43
|
-
- [ ] Keep it concise, no detailed description needed
|
|
44
|
-
- [ ] Add context (`-c file:line` if applicable)
|
|
45
|
-
- [ ] Do not interrupt current task flow
|
|
46
|
-
|
|
47
|
-
### 2. Process (Processing)
|
|
48
|
-
|
|
49
|
-
- **Goal**: Regularly review and classify Memos
|
|
50
|
-
- **Strategy**: Regular organization (daily/weekly)
|
|
51
|
-
- **Checkpoints**:
|
|
52
|
-
- [ ] Run `monoco memo list` to view all Memos
|
|
53
|
-
- [ ] Evaluate value of each Memo
|
|
54
|
-
- [ ] Classify: Actionable / Pure reference / No value
|
|
55
|
-
- [ ] Supplement missing information
|
|
56
|
-
|
|
57
|
-
### 3. Organize (Organization)
|
|
58
|
-
|
|
59
|
-
- **Goal**: Structured organization of valuable Memos
|
|
60
|
-
- **Strategy**: Choose processing method based on type
|
|
61
|
-
- **Checkpoints**:
|
|
62
|
-
- [ ] Add tags or categories to related Memos
|
|
63
|
-
- [ ] Merge similar Memos
|
|
64
|
-
- [ ] Complete vague records
|
|
65
|
-
- [ ] Set priority (if applicable)
|
|
66
|
-
|
|
67
|
-
### 4. Archive/Convert (Archive or Convert)
|
|
68
|
-
|
|
69
|
-
- **Goal**: Archive processed Memos or convert to Issue
|
|
70
|
-
- **Checkpoints**:
|
|
71
|
-
- [ ] **Convert**: Convert actionable ideas to Issue
|
|
72
|
-
- Use `monoco issue create feature/chore/fix -t "title"`
|
|
73
|
-
- Reference original Memo in the Issue
|
|
74
|
-
- [ ] **Archive**: Archive pure reference content
|
|
75
|
-
- Move to knowledge base or documentation
|
|
76
|
-
- Remove from Memo list
|
|
77
|
-
- [ ] **Delete**: Delete Memos with no value directly
|
|
78
|
-
|
|
79
|
-
## Decision Branches
|
|
80
|
-
|
|
81
|
-
| Condition | Action |
|
|
82
|
-
|-----------|--------|
|
|
83
|
-
| Idea is actionable | Convert, create Issue |
|
|
84
|
-
| Pure reference material | Archive, save to knowledge base |
|
|
85
|
-
| No value/outdated | Delete, remove directly |
|
|
86
|
-
| Information incomplete | Return to Organize, supplement information |
|
|
87
|
-
|
|
88
|
-
## Compliance Requirements
|
|
89
|
-
|
|
90
|
-
- **Required**: Memos are temporary, should not accumulate indefinitely
|
|
91
|
-
- **Required**: Actionable ideas must be converted to Issue for tracking
|
|
92
|
-
- **Recommended**: Process regularly (recommended weekly)
|
|
93
|
-
- **Recommended**: Keep Memos concise, avoid lengthy discussions
|
|
94
|
-
|
|
95
|
-
## Related Commands
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
# Add Memo
|
|
99
|
-
monoco memo add "Consider using Redis cache for user sessions"
|
|
100
|
-
|
|
101
|
-
# Memo with context
|
|
102
|
-
monoco memo add "Recursion may cause stack overflow" -c "src/utils.py:42"
|
|
103
|
-
|
|
104
|
-
# View all Memos
|
|
105
|
-
monoco memo list
|
|
106
|
-
|
|
107
|
-
# Edit Memo
|
|
108
|
-
monoco memo open
|
|
109
|
-
|
|
110
|
-
# Create Issue (convert Memo)
|
|
111
|
-
monoco issue create feature -t "Implement Redis cache"
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## Usage Scenarios
|
|
115
|
-
|
|
116
|
-
| Scenario | Use Memo | Follow-up Processing |
|
|
117
|
-
|----------|----------|---------------------|
|
|
118
|
-
| Improvement suggestion during code review | `memo add "Refactoring suggestion: ..."` | Process → Convert to Issue |
|
|
119
|
-
| Temporary idea during meeting | `memo add "Idea: ..."` | Process → Organize → Convert |
|
|
120
|
-
| Useful code snippet | `memo add "Snippet: ..."` | Process → Archive to knowledge base |
|
|
121
|
-
| Technical article link | `memo add "Read: https://..."` | Process → Archive |
|
|
122
|
-
| Bug clue | `memo add "Possible Bug: ..."` | Process → Convert to Fix Issue |
|
|
123
|
-
|
|
124
|
-
## Difference from Issue
|
|
125
|
-
|
|
126
|
-
| Dimension | Memo | Issue |
|
|
127
|
-
|-----------|------|-------|
|
|
128
|
-
| Purpose | Record ideas | Track tasks |
|
|
129
|
-
| Lifecycle | Temporary, needs regular cleanup | Formal, complete lifecycle |
|
|
130
|
-
| Completion Criteria | Archived or converted | Acceptance criteria passed |
|
|
131
|
-
| Complexity | Simple, one sentence | Detailed, with AC and Tasks |
|
|
132
|
-
| Tracking | None | Complete tracking |
|
|
133
|
-
|
|
134
|
-
## Best Practices
|
|
135
|
-
|
|
136
|
-
1. **Record promptly**: Record immediately when ideas flash, avoid forgetting
|
|
137
|
-
2. **Organize regularly**: Process Memo list at least once a week
|
|
138
|
-
3. **Convert quickly**: Convert valuable ideas to Issue as soon as possible
|
|
139
|
-
4. **Delete decisively**: Delete outdated or valueless Memos decisively
|
|
140
|
-
5. **Keep concise**: Memos are quick notes, no detailed description needed
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_atom_memo
|
|
3
|
-
description: 轻量级备忘录系统,用于快速记录想法、灵感和临时笔记。与正式的 Issue 系统区分开来。
|
|
4
|
-
type: atom
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Monoco Memo (备忘录)
|
|
9
|
-
|
|
10
|
-
使用此技能快速捕捉 fleeting notes( fleeting 想法),无需创建正式的 Issue。
|
|
11
|
-
|
|
12
|
-
## 何时使用 Memo vs Issue
|
|
13
|
-
|
|
14
|
-
| 场景 | 使用 | 原因 |
|
|
15
|
-
|------|------|------|
|
|
16
|
-
| 临时想法、灵感 | **Memo** | 不需要追踪、不需要完成状态 |
|
|
17
|
-
| 代码片段、链接收藏 | **Memo** | 快速记录,后续整理 |
|
|
18
|
-
| 会议速记 | **Memo** | 先记录,再提炼成任务 |
|
|
19
|
-
| 可执行的工作单元 | **Issue** | 需要追踪、验收标准、生命周期 |
|
|
20
|
-
| Bug 修复 | **Issue** | 需要记录复现步骤、验证结果 |
|
|
21
|
-
| 功能开发 | **Issue** | 需要设计、分解、交付 |
|
|
22
|
-
|
|
23
|
-
> **核心原则**: Memos 记录**想法**;Issues 处理**可执行任务**。
|
|
24
|
-
|
|
25
|
-
## 命令
|
|
26
|
-
|
|
27
|
-
### 添加备忘录
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
monoco memo add "你的备忘录内容"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
可选参数:
|
|
34
|
-
- `-c, --context`: 添加上下文引用(如 `file:line`)
|
|
35
|
-
|
|
36
|
-
示例:
|
|
37
|
-
```bash
|
|
38
|
-
# 简单记录
|
|
39
|
-
monoco memo add "考虑使用 Redis 缓存用户会话"
|
|
40
|
-
|
|
41
|
-
# 带上下文的记录
|
|
42
|
-
monoco memo add "这里的递归可能导致栈溢出" -c "src/utils.py:42"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### 查看备忘录列表
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
monoco memo list
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
显示所有未归档的备忘录。
|
|
52
|
-
|
|
53
|
-
### 打开备忘录文件
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
monoco memo open
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
在默认编辑器中打开备忘录文件,用于整理或批量编辑。
|
|
60
|
-
|
|
61
|
-
## 工作流程
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
想法闪现 → monoco memo add "..." → 定期整理 → 提炼成 Issue 或归档
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
1. **捕捉**: 有想法时立即使用 `monoco memo add` 记录
|
|
68
|
-
2. **整理**: 定期(如每日/每周)运行 `monoco memo list` 回顾
|
|
69
|
-
3. **转化**: 将有价值的备忘录转化为正式的 Issue
|
|
70
|
-
4. **归档**: 处理完毕后从备忘录中移除
|
|
71
|
-
|
|
72
|
-
## 最佳实践
|
|
73
|
-
|
|
74
|
-
1. **保持简洁**: Memo 是速记,不需要详细描述
|
|
75
|
-
2. **及时转化**: 有价值的想法应尽快转为 Issue,避免遗忘
|
|
76
|
-
3. **定期清理**: Memos 是临时的,不要让它们无限堆积
|
|
77
|
-
4. **使用上下文**: 记录代码相关想法时,使用 `-c` 参数标注位置
|