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,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_atom_i18n
|
|
3
|
-
description: 文档国际化质量控制。确保多语言文档保持同步。
|
|
4
|
-
type: atom
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# 文档国际化
|
|
9
|
-
|
|
10
|
-
管理 Monoco 项目文档的国际化。
|
|
11
|
-
|
|
12
|
-
## 概述
|
|
13
|
-
|
|
14
|
-
I18n 功能提供:
|
|
15
|
-
|
|
16
|
-
- **自动扫描**缺失的翻译
|
|
17
|
-
- **标准化结构**用于多语言文档
|
|
18
|
-
- **质量控制**以维护文档一致性
|
|
19
|
-
|
|
20
|
-
## 核心命令
|
|
21
|
-
|
|
22
|
-
### 扫描缺失的翻译
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
monoco i18n scan
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
扫描项目中的 markdown 文件并报告缺失的翻译。
|
|
29
|
-
|
|
30
|
-
**输出**:
|
|
31
|
-
|
|
32
|
-
- 列出没有对应翻译的源文件
|
|
33
|
-
- 显示缺少哪些目标语言
|
|
34
|
-
- 遵循 `.gitignore` 和默认排除规则
|
|
35
|
-
|
|
36
|
-
## 配置
|
|
37
|
-
|
|
38
|
-
I18n 设置在 `.monoco/config.yaml` 中配置:
|
|
39
|
-
|
|
40
|
-
```yaml
|
|
41
|
-
i18n:
|
|
42
|
-
source_lang: en # 源语言代码
|
|
43
|
-
target_langs: # 目标语言代码
|
|
44
|
-
- zh
|
|
45
|
-
- ja
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## 文档结构
|
|
49
|
-
|
|
50
|
-
### 根文件(后缀模式)
|
|
51
|
-
|
|
52
|
-
对于项目根目录中的文件:
|
|
53
|
-
|
|
54
|
-
- 源文件: `README.md`
|
|
55
|
-
- 中文: `README_ZH.md`
|
|
56
|
-
- 日文: `README_JA.md`
|
|
57
|
-
|
|
58
|
-
### 子目录文件(目录模式)
|
|
59
|
-
|
|
60
|
-
对于 `docs/` 或其他目录中的文件:
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
docs/
|
|
64
|
-
├── en/
|
|
65
|
-
│ ├── guide.md
|
|
66
|
-
│ └── api.md
|
|
67
|
-
├── zh/
|
|
68
|
-
│ ├── guide.md
|
|
69
|
-
│ └── api.md
|
|
70
|
-
└── ja/
|
|
71
|
-
├── guide.md
|
|
72
|
-
└── api.md
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## 排除规则
|
|
76
|
-
|
|
77
|
-
以下内容会自动从 i18n 扫描中排除:
|
|
78
|
-
|
|
79
|
-
- `.gitignore` 模式(自动遵循)
|
|
80
|
-
- `.references/` 目录
|
|
81
|
-
- 构建产物(`dist/`, `build/`, `node_modules/`)
|
|
82
|
-
- `Issues/` 目录
|
|
83
|
-
|
|
84
|
-
## 最佳实践
|
|
85
|
-
|
|
86
|
-
1. **先创建英文版**: 首先用源语言编写文档
|
|
87
|
-
2. **遵循命名约定**: 使用适当的模式(后缀或目录)
|
|
88
|
-
3. **定期运行扫描**: 使用 `monoco i18n scan` 验证覆盖率
|
|
89
|
-
4. **提交所有语言**: 将翻译保存在版本控制中
|
|
90
|
-
|
|
91
|
-
## 工作流程
|
|
92
|
-
|
|
93
|
-
1. 用源语言(如英语)编写文档
|
|
94
|
-
2. 按照命名约定创建翻译文件
|
|
95
|
-
3. 运行 `monoco i18n scan` 验证所有翻译是否存在
|
|
96
|
-
4. 修复扫描报告的任何缺失翻译
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_workflow_i18n_scan
|
|
3
|
-
description: I18n 扫描工作流 (Flow Skill)。定义从扫描缺失翻译到生成翻译任务的标准操作流程,确保多语言文档质量。
|
|
4
|
-
type: workflow
|
|
5
|
-
domain: i18n
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# I18n Scan Workflow
|
|
10
|
-
|
|
11
|
-
I18n 扫描的标准化工作流,确保 "Scan → Identify → Generate Tasks" 流程。
|
|
12
|
-
|
|
13
|
-
## 工作流状态机
|
|
14
|
-
|
|
15
|
-
```mermaid
|
|
16
|
-
stateDiagram-v2
|
|
17
|
-
[*] --> Scan: 触发扫描
|
|
18
|
-
|
|
19
|
-
Scan --> Identify: 扫描完成
|
|
20
|
-
Scan --> Scan: 配置错误<br/>(修复配置)
|
|
21
|
-
|
|
22
|
-
Identify --> GenerateTasks: 发现缺失
|
|
23
|
-
Identify --> [*]: 无缺失<br/>(完成)
|
|
24
|
-
|
|
25
|
-
GenerateTasks --> [*]: 任务生成完成
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## 执行步骤
|
|
29
|
-
|
|
30
|
-
### 1. Scan (扫描)
|
|
31
|
-
|
|
32
|
-
- **目标**: 扫描项目中所有文档,识别翻译覆盖情况
|
|
33
|
-
- **输入**: 项目文件、i18n 配置
|
|
34
|
-
- **输出**: 扫描报告
|
|
35
|
-
- **检查点**:
|
|
36
|
-
- [ ] 检查 `.monoco/config.yaml` 中的 i18n 配置
|
|
37
|
-
- [ ] 运行 `monoco i18n scan`
|
|
38
|
-
- [ ] 确认源语言和目标语言设置正确
|
|
39
|
-
- [ ] 验证排除规则(.gitignore、build 目录等)
|
|
40
|
-
|
|
41
|
-
### 2. Identify (识别缺失)
|
|
42
|
-
|
|
43
|
-
- **目标**: 分析扫描结果,识别具体缺失的翻译
|
|
44
|
-
- **策略**: 对比源文件和目标文件
|
|
45
|
-
- **检查点**:
|
|
46
|
-
- [ ] 列出所有缺失翻译的源文件
|
|
47
|
-
- [ ] 识别缺失的目标语言
|
|
48
|
-
- [ ] 评估缺失翻译的影响范围
|
|
49
|
-
- [ ] 按优先级排序(核心文档优先)
|
|
50
|
-
|
|
51
|
-
### 3. Generate Tasks (生成任务)
|
|
52
|
-
|
|
53
|
-
- **目标**: 为缺失的翻译创建追踪任务
|
|
54
|
-
- **策略**: 根据缺失情况创建 Issue 或备忘录
|
|
55
|
-
- **检查点**:
|
|
56
|
-
- [ ] 为核心文档缺失创建 Feature Issue
|
|
57
|
-
- [ ] 为次要文档缺失创建 Memo 提醒
|
|
58
|
-
- [ ] 在 Issue 中标注需要翻译的文件路径
|
|
59
|
-
- [ ] 设置合理的优先级和截止日期
|
|
60
|
-
|
|
61
|
-
## 决策分支
|
|
62
|
-
|
|
63
|
-
| 条件 | 动作 |
|
|
64
|
-
|------|------|
|
|
65
|
-
| 配置错误 | 修复 `.monoco/config.yaml`,重新扫描 |
|
|
66
|
-
| 无缺失翻译 | 流程完成,无需进一步操作 |
|
|
67
|
-
| 大量缺失 | 创建 Epic,拆分为多个 Feature |
|
|
68
|
-
| 关键文档缺失 | 高优先级,立即创建 Issue |
|
|
69
|
-
|
|
70
|
-
## 合规要求
|
|
71
|
-
|
|
72
|
-
- **必须**: 扫描前验证 i18n 配置正确
|
|
73
|
-
- **必须**: 所有核心文档必须有对应翻译
|
|
74
|
-
- **建议**: 定期运行扫描(如每周)
|
|
75
|
-
- **建议**: 将翻译任务与功能开发绑定
|
|
76
|
-
|
|
77
|
-
## 相关命令
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
# 扫描缺失翻译
|
|
81
|
-
monoco i18n scan
|
|
82
|
-
|
|
83
|
-
# 创建翻译任务
|
|
84
|
-
monoco issue create feature -t "翻译 {filename} 到 {lang}"
|
|
85
|
-
|
|
86
|
-
# 添加备忘录
|
|
87
|
-
monoco memo add "需要翻译: {filepath}"
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## 输出示例
|
|
91
|
-
|
|
92
|
-
扫描完成后,应生成如下报告:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
I18n Scan Report
|
|
96
|
-
================
|
|
97
|
-
Source Language: en
|
|
98
|
-
Target Languages: zh, ja
|
|
99
|
-
|
|
100
|
-
Missing Translations:
|
|
101
|
-
- docs/guide.md → zh/guide.md [MISSING]
|
|
102
|
-
- docs/api.md → ja/api.md [MISSING]
|
|
103
|
-
|
|
104
|
-
Coverage: 85%
|
|
105
|
-
```
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_atom_issue
|
|
3
|
-
description: Official skill for Monoco Issue System. Treats Issues as Universal Atoms, managing the lifecycle of Epic/Feature/Chore/Fix.
|
|
4
|
-
type: atom
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Issue Management
|
|
9
|
-
|
|
10
|
-
Use this skill to create and manage **Issues** (Universal Atoms) in Monoco projects.
|
|
11
|
-
|
|
12
|
-
## Core Ontology
|
|
13
|
-
|
|
14
|
-
### 1. Strategy Layer
|
|
15
|
-
|
|
16
|
-
- **🏆 EPIC**: Grand goals, vision containers. Mindset: Architect.
|
|
17
|
-
|
|
18
|
-
### 2. Value Layer
|
|
19
|
-
|
|
20
|
-
- **✨ FEATURE**: Value increments from user perspective. Mindset: Product Owner.
|
|
21
|
-
- **Atomicity Principle**: Feature = Design + Dev + Test + Doc + i18n. They are one.
|
|
22
|
-
|
|
23
|
-
### 3. Execution Layer
|
|
24
|
-
|
|
25
|
-
- **🧹 CHORE**: Engineering maintenance, no direct user value. Mindset: Builder.
|
|
26
|
-
- **🐞 FIX**: Correcting deviations. Mindset: Debugger.
|
|
27
|
-
|
|
28
|
-
## Workflow Policies
|
|
29
|
-
|
|
30
|
-
### 1. Strict Git Workflow
|
|
31
|
-
|
|
32
|
-
Monoco enforces a **Feature Branch** model.
|
|
33
|
-
|
|
34
|
-
- **Start**: Agents **MUST** use `monoco issue start <ID> --branch` to start working.
|
|
35
|
-
- This creates and switches to a standard `feat/<ID>-<slug>` branch.
|
|
36
|
-
- **Do NOT** manually create branches using `git checkout -b`.
|
|
37
|
-
- **Protected Main**: **NO** direct modification on `main`, `master`, or `production` branches. Linter will block this.
|
|
38
|
-
- **Submit**: Run `monoco issue submit <ID>` when work is ready for review.
|
|
39
|
-
- This moves the issue to `Review` stage and generates a Delivery Report.
|
|
40
|
-
- **Note**: This does **not** merge the code. You (or the user) must handle the Merge/PR process.
|
|
41
|
-
|
|
42
|
-
## Standardized Workflow
|
|
43
|
-
|
|
44
|
-
### Workflow Diagram
|
|
45
|
-
|
|
46
|
-
```mermaid
|
|
47
|
-
stateDiagram-v2
|
|
48
|
-
[*] --> Plan
|
|
49
|
-
Plan --> Build: monoco issue start
|
|
50
|
-
Build --> Submit: monoco issue submit
|
|
51
|
-
state "Oracle Loop" as Oracle {
|
|
52
|
-
Submit --> Review: Auto/Manual Review
|
|
53
|
-
Review --> Fix: Reject
|
|
54
|
-
Fix --> Submit: Retry
|
|
55
|
-
}
|
|
56
|
-
Review --> Merge: Approve
|
|
57
|
-
Merge --> [*]: monoco issue close
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Action Steps
|
|
61
|
-
|
|
62
|
-
1. **Plan Phase**:
|
|
63
|
-
- Ensure Issue exists and is in `Open` status.
|
|
64
|
-
- Verify requirements and tasks.
|
|
65
|
-
|
|
66
|
-
2. **Build Phase**:
|
|
67
|
-
- Run `monoco issue start <ID> --branch` (Verification: ensures branch is created).
|
|
68
|
-
- Implement features/fixes.
|
|
69
|
-
- Run `monoco issue sync-files` to track changes.
|
|
70
|
-
|
|
71
|
-
3. **Submit Phase (Oracle Loop)**:
|
|
72
|
-
- Run tests to ensure quality.
|
|
73
|
-
- Run `monoco issue lint`.
|
|
74
|
-
- Run `monoco issue submit <ID>`.
|
|
75
|
-
- **IF** errors/feedback received:
|
|
76
|
-
- Fix issues.
|
|
77
|
-
- Re-run tests.
|
|
78
|
-
- Re-submit.
|
|
79
|
-
|
|
80
|
-
4. **Merge Phase**:
|
|
81
|
-
- Once approved:
|
|
82
|
-
- Run `monoco issue close <ID> --solution completed --prune`.
|
|
83
|
-
|
|
84
|
-
### 2. File Tracking
|
|
85
|
-
|
|
86
|
-
Agents must track modified files to maintain Self-Contained Context.
|
|
87
|
-
|
|
88
|
-
- **Mechanism**: Issue Ticket Front Matter contains a `files: []` field.
|
|
89
|
-
- **Automated (Recommended)**: Run `monoco issue sync-files` inside the Feature Branch. It diffs against the base branch.
|
|
90
|
-
- **Manual (Fallback)**: If working without branches, Agent MUST **actively** append modified paths to the `files` list.
|
|
91
|
-
|
|
92
|
-
## Guidelines
|
|
93
|
-
|
|
94
|
-
### Directory Structure & Naming
|
|
95
|
-
|
|
96
|
-
`Issues/{CapitalizedPluralType}/{lowercase_status}/`
|
|
97
|
-
|
|
98
|
-
- **Types**: `Epics`, `Features`, `Chores`, `Fixes`
|
|
99
|
-
- **Statuses**: `open`, `backlog`, `closed`
|
|
100
|
-
|
|
101
|
-
### Structural Integrity
|
|
102
|
-
|
|
103
|
-
Issues are validated via `monoco issue lint`. key constraints:
|
|
104
|
-
|
|
105
|
-
1. **Mandatory Heading**: `## {ID}: {Title}` must match front matter.
|
|
106
|
-
2. **Min Checkboxes**: At least 2 checkboxes (AC/Tasks).
|
|
107
|
-
3. **Review Protocol**: `## Review Comments` required for `review` or `done` stages.
|
|
108
|
-
|
|
109
|
-
### Path Transitions
|
|
110
|
-
|
|
111
|
-
Use `monoco issue`:
|
|
112
|
-
|
|
113
|
-
1. **Create**: `monoco issue create <type> --title "..."`
|
|
114
|
-
- Params: `--parent <id>`, `--dependency <id>`, `--related <id>`, `--sprint <id>`, `--tags <tag>`
|
|
115
|
-
|
|
116
|
-
2. **Transition**: `monoco issue open/close/backlog <id>`
|
|
117
|
-
|
|
118
|
-
3. **View**: `monoco issue scope`
|
|
119
|
-
|
|
120
|
-
4. **Validation**: `monoco issue lint`
|
|
121
|
-
|
|
122
|
-
5. **Modification**: `monoco issue start/submit/delete <id>`
|
|
123
|
-
|
|
124
|
-
6. **Sync**: `monoco issue sync-files [id]` (Sync code changes to Issue file)
|
|
125
|
-
|
|
126
|
-
7. **Validation**: `monoco issue lint` (Enforces compliance)
|
|
127
|
-
|
|
128
|
-
## Validation Rules (FEAT-0082)
|
|
129
|
-
|
|
130
|
-
To ensure data integrity, all Issue tickets must follow these strict rules:
|
|
131
|
-
|
|
132
|
-
### 1. Structural Consistency
|
|
133
|
-
|
|
134
|
-
- Must contain a Level 2 Heading matching exactly: `## {ID}: {Title}`.
|
|
135
|
-
- Example: `## FEAT-0082: Issue Ticket Validator`
|
|
136
|
-
|
|
137
|
-
### 2. Content Completeness
|
|
138
|
-
|
|
139
|
-
- **Checkboxes**: Minimum of 2 checkboxes required (one for AC, one for Tasks).
|
|
140
|
-
- **Review Comments**: If `stage` is `review` or `done`, a `## Review Comments` section is mandatory and must not be empty.
|
|
141
|
-
|
|
142
|
-
### 3. Checkbox Syntax & Hierarchy
|
|
143
|
-
|
|
144
|
-
- Use only `- [ ]`, `- [x]`, `- [-]`, or `- [/]`.
|
|
145
|
-
- **Inheritance**: If nested checkboxes exist, the parent state must reflect child states (e.g., if any child is `[/]`, parent must be `[/]`; if all children are `[x]`, parent must be `[x]`).
|
|
146
|
-
|
|
147
|
-
### 4. State Matrix
|
|
148
|
-
|
|
149
|
-
The `status` (folder) and `stage` (front matter) must be compatible:
|
|
150
|
-
|
|
151
|
-
- **open**: Draft, Doing, Review, Done
|
|
152
|
-
- **backlog**: Draft, Doing, Review
|
|
153
|
-
- **closed**: Done
|
|
154
|
-
|
|
155
|
-
### 5. Environment Policy
|
|
156
|
-
|
|
157
|
-
Linter includes environment-aware guardrails:
|
|
158
|
-
|
|
159
|
-
- 🛑 **Dirty Main Protection**: Fails if uncommitted changes are detected on protected branches (`main`/`master`).
|
|
160
|
-
|
|
161
|
-
### 6. ID Format & Hierarchy
|
|
162
|
-
|
|
163
|
-
- **ID Specification**: Issue IDs must strictly follow the `TYPE-XXXX` format, where `XXXX` are 4 digits (e.g., `FEAT-0001`, `FIX-9999`).
|
|
164
|
-
- **No Suffixes**: IDs with suffixes like `FEAT-0001-1` are strictly prohibited.
|
|
165
|
-
- **Hierarchy Expression**: Sub-features or sub-tasks must be expressed using the `parent` field in the Front Matter. Do NOT use ID naming conventions (like hierarchical suffixes) to express relationships.
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: monoco_workflow_issue_creation
|
|
3
|
-
description: Extract improvement clues from Memo, classify and create Issue Ticket (Copilot Mode)
|
|
4
|
-
type: workflow
|
|
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
|