sumulige-claude 1.1.2 → 1.2.0
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.
- package/.claude/hooks/code-formatter.cjs +7 -2
- package/.claude/hooks/multi-session.cjs +9 -3
- package/.claude/hooks/pre-commit.cjs +0 -0
- package/.claude/hooks/pre-push.cjs +0 -0
- package/.claude/hooks/project-kickoff.cjs +22 -11
- package/.claude/hooks/rag-skill-loader.cjs +7 -0
- package/.claude/hooks/thinking-silent.cjs +9 -3
- package/.claude/hooks/todo-manager.cjs +19 -13
- package/.claude/hooks/verify-work.cjs +10 -4
- package/.claude/quality-gate.json +9 -3
- package/.claude/settings.local.json +16 -1
- package/.claude/templates/hooks/README.md +302 -0
- package/.claude/templates/hooks/hook.sh.template +94 -0
- package/.claude/templates/hooks/user-prompt-submit.cjs.template +116 -0
- package/.claude/templates/hooks/user-response-submit.cjs.template +94 -0
- package/.claude/templates/hooks/validate.js +173 -0
- package/.claude/workflow/document-scanner.js +426 -0
- package/.claude/workflow/knowledge-engine.js +941 -0
- package/.claude/workflow/notebooklm/browser.js +1028 -0
- package/.claude/workflow/phases/phase1-research.js +578 -0
- package/.claude/workflow/phases/phase1-research.ts +465 -0
- package/.claude/workflow/phases/phase2-approve.js +722 -0
- package/.claude/workflow/phases/phase3-plan.js +1200 -0
- package/.claude/workflow/phases/phase4-develop.js +894 -0
- package/.claude/workflow/search-cache.js +230 -0
- package/.claude/workflow/templates/approval.md +315 -0
- package/.claude/workflow/templates/development.md +377 -0
- package/.claude/workflow/templates/planning.md +328 -0
- package/.claude/workflow/templates/research.md +250 -0
- package/.claude/workflow/types.js +37 -0
- package/.claude/workflow/web-search.js +278 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/AGENTS.md +176 -0
- package/CHANGELOG.md +7 -14
- package/cli.js +20 -0
- package/config/quality-gate.json +9 -3
- package/development/cache/web-search/search_1193d605f8eb364651fc2f2041b58a31.json +36 -0
- package/development/cache/web-search/search_3798bf06960edc125f744a1abb5b72c5.json +36 -0
- package/development/cache/web-search/search_37c7d4843a53f0d83f1122a6f908a2a3.json +36 -0
- package/development/cache/web-search/search_44166fa0153709ee168485a22aa0ab40.json +36 -0
- package/development/cache/web-search/search_4deaebb1f77e86a8ca066dc5a49c59fd.json +36 -0
- package/development/cache/web-search/search_94da91789466070a7f545612e73c7372.json +36 -0
- package/development/cache/web-search/search_dd5de8491b8b803a3cb01339cd210fb0.json +36 -0
- package/development/knowledge-base/.index.clean.json +0 -0
- package/development/knowledge-base/.index.json +486 -0
- package/development/knowledge-base/test-best-practices.md +29 -0
- package/development/projects/proj_mkh1pazz_ixmt1/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4jvnb_z7rwf/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4jxkd_ewz5a/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4k84n_ni73k/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4wfyd_u9w88/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4wsbo_iahvf/development/projects/proj_mkh4xbpg_4na5w/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4wsbo_iahvf/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4xulg_1ka8x/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4xwhj_gch8j/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase2/requirements.md +226 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase3/PRD.md +345 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase3/TASK_PLAN.md +284 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase3/prototype/README.md +14 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/DEVELOPMENT_LOG.md +35 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/TASKS.md +34 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/.env.example +5 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/README.md +60 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/package.json +25 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/src/index.js +70 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/src/routes/index.js +48 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/tests/health.test.js +20 -0
- package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/tests/jest.config.js +21 -0
- package/development/projects/proj_mkh7veqg_3lypc/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh7veqg_3lypc/phase2/requirements.md +226 -0
- package/development/projects/proj_mkh7veqg_3lypc/phase3/PRD.md +345 -0
- package/development/projects/proj_mkh7veqg_3lypc/phase3/TASK_PLAN.md +284 -0
- package/development/projects/proj_mkh7veqg_3lypc/phase3/prototype/README.md +14 -0
- package/development/projects/proj_mkh8k8fo_rmqn5/phase1/feasibility-report.md +160 -0
- package/development/projects/proj_mkh8xyhy_1vshq/phase1/feasibility-report.md +178 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase1/feasibility-report.md +377 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase2/requirements.md +442 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase3/api-design.md +800 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase3/architecture.md +625 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase3/data-model.md +830 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase3/risks.md +957 -0
- package/development/projects/proj_mkh8zddd_dhamf/phase3/wbs.md +381 -0
- package/development/todos/.state.json +14 -1
- package/development/todos/INDEX.md +31 -73
- package/development/todos/completed/develop/local-knowledge-index.md +85 -0
- package/development/todos/{active → completed/develop}/todo-system.md +13 -3
- package/development/todos/completed/develop/web-search-integration.md +83 -0
- package/development/todos/completed/test/phase1-e2e-test.md +103 -0
- package/lib/commands.js +388 -0
- package/package.json +3 -2
- package/tests/config-manager.test.js +677 -0
- package/tests/config-validator.test.js +436 -0
- package/tests/errors.test.js +477 -0
- package/tests/manual/phase1-e2e.sh +389 -0
- package/tests/manual/phase2-test-cases.md +311 -0
- package/tests/manual/phase3-test-cases.md +309 -0
- package/tests/manual/phase4-test-cases.md +414 -0
- package/tests/manual/test-cases.md +417 -0
- package/tests/quality-gate.test.js +679 -0
- package/tests/quality-rules.test.js +619 -0
- package/tests/version-check.test.js +75 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
# Work Breakdown Structure
|
|
2
|
+
|
|
3
|
+
**Project**: proj_mkh8zddd_dhamf (AI 代码审查工具)
|
|
4
|
+
**Date**: 1/17/2026
|
|
5
|
+
**Phase**: 3 - Planning
|
|
6
|
+
**Status**: In Progress
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Executive Summary
|
|
11
|
+
|
|
12
|
+
本文档将 AI 代码审查工具的开发工作分解为约 30 个子任务,按 4 个阶段组织,预计 16 周 (480 小时) 完成。
|
|
13
|
+
|
|
14
|
+
**里程碑**:
|
|
15
|
+
- Week 1-4: MVP 基础设施 (Parser + Rule Engine)
|
|
16
|
+
- Week 5-8: 核心功能 (CLI + 检测规则)
|
|
17
|
+
- Week 9-12: 集成功能 (CI/CD + LLM)
|
|
18
|
+
- Week 13-16: 测试、优化、发布
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Phase 1: Foundation (Week 1-4)
|
|
23
|
+
|
|
24
|
+
**Goal**: 建立项目基础设施和核心解析能力
|
|
25
|
+
|
|
26
|
+
### 1.1 Project Setup (Week 1)
|
|
27
|
+
|
|
28
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
29
|
+
|---------|------|------|--------------|--------------|
|
|
30
|
+
| **P1-01** | Initialize Go project structure | 1 | - | `go.mod`, directory layout |
|
|
31
|
+
| **P1-02** | Set up development environment | 1 | P1-01 | Makefile, Dockerfile, pre-commit hooks |
|
|
32
|
+
| **P1-03** | Configure CI/CD pipeline | 2 | P1-01 | GitHub Actions workflow |
|
|
33
|
+
| **P1-04** | Set up database schema | 2 | P1-01 | PostgreSQL migrations, DB connection code |
|
|
34
|
+
| **P1-05** | Implement configuration loader | 2 | P1-01 | YAML config parser, validation |
|
|
35
|
+
|
|
36
|
+
**Subtotal**: 8 days (64 hours)
|
|
37
|
+
|
|
38
|
+
### 1.2 Parser Service (Week 2-3)
|
|
39
|
+
|
|
40
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
41
|
+
|---------|------|------|--------------|--------------|
|
|
42
|
+
| **P1-06** | Integrate Tree-sitter Go bindings | 2 | P1-01 | Tree-sitter wrapper |
|
|
43
|
+
| **P1-07** | Implement Python parser | 2 | P1-06 | Python AST extraction |
|
|
44
|
+
| **P1-08** | Implement JavaScript parser | 2 | P1-06 | JavaScript AST extraction |
|
|
45
|
+
| **P1-09** | Implement TypeScript parser | 1 | P1-08 | TypeScript AST extraction |
|
|
46
|
+
| **P1-10** | Implement AST caching layer | 2 | P1-06, P1-04 | Redis cache integration |
|
|
47
|
+
| **P1-11** | Add error handling and recovery | 1 | P1-07, P1-08 | Graceful parse error handling |
|
|
48
|
+
|
|
49
|
+
**Subtotal**: 10 days (80 hours)
|
|
50
|
+
|
|
51
|
+
### 1.3 Rule Engine Foundation (Week 4)
|
|
52
|
+
|
|
53
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
54
|
+
|---------|------|------|--------------|--------------|
|
|
55
|
+
| **P1-12** | Design rule interface | 1 | P1-01 | Rule abstraction |
|
|
56
|
+
| **P1-13** | Implement rule engine core | 3 | P1-12 | Rule matching framework |
|
|
57
|
+
| **P1-14** | Create rule configuration parser | 2 | P1-05, P1-12 | Rule YAML parser |
|
|
58
|
+
| **P1-15** | Implement issue reporting model | 1 | P1-13 | Issue data structures |
|
|
59
|
+
|
|
60
|
+
**Subtotal**: 7 days (56 hours)
|
|
61
|
+
|
|
62
|
+
**Phase 1 Total**: 25 days (200 hours)
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Phase 2: Core Features (Week 5-8)
|
|
67
|
+
|
|
68
|
+
**Goal**: 实现 CLI 工具和代码检测规则
|
|
69
|
+
|
|
70
|
+
### 2.1 CLI Implementation (Week 5)
|
|
71
|
+
|
|
72
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
73
|
+
|---------|------|------|--------------|--------------|
|
|
74
|
+
| **P2-01** | Implement Cobra CLI framework | 2 | P1-01 | Command structure |
|
|
75
|
+
| **P2-02** | Implement `scan` command | 3 | P1-15, P2-01 | File scanning logic |
|
|
76
|
+
| **P2-03** | Implement `init` command | 1 | P2-01 | Config file generation |
|
|
77
|
+
| **P2-04** | Implement `config` command | 1 | P2-01 | Config management |
|
|
78
|
+
| **P2-05** | Implement output formatters (table, JSON) | 2 | P2-02 | Formatted output |
|
|
79
|
+
|
|
80
|
+
**Subtotal**: 9 days (72 hours)
|
|
81
|
+
|
|
82
|
+
### 2.2 Security Rules (Week 6)
|
|
83
|
+
|
|
84
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
85
|
+
|---------|------|------|--------------|--------------|
|
|
86
|
+
| **P2-06** | Implement SQL injection detection | 2 | P1-13 | SQL injection rule |
|
|
87
|
+
| **P2-07** | Implement XSS detection | 2 | P1-13 | XSS detection rule |
|
|
88
|
+
| **P2-08** | Implement insecure function detection | 2 | P1-13 | Insecure function rules |
|
|
89
|
+
| **P2-09** | Implement hardcoded secrets detection | 1 | P1-13 | Secret detection rules |
|
|
90
|
+
| **P2-10** | Create security rule test suite | 2 | P2-06, P2-07, P2-08 | Test fixtures |
|
|
91
|
+
|
|
92
|
+
**Subtotal**: 9 days (72 hours)
|
|
93
|
+
|
|
94
|
+
### 2.3 Quality Rules (Week 7)
|
|
95
|
+
|
|
96
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
97
|
+
|---------|------|------|--------------|--------------|
|
|
98
|
+
| **P2-11** | Implement long function detection | 1 | P1-13 | Function length rule |
|
|
99
|
+
| **P2-12** | Implement cyclomatic complexity | 2 | P1-13 | Complexity rule |
|
|
100
|
+
| **P2-13** | Implement code duplication detection | 3 | P1-13 | Duplication rule |
|
|
101
|
+
| **P2-14** | Implement missing documentation check | 1 | P1-13 | Docstring rules |
|
|
102
|
+
| **P2-15** | Create quality rule test suite | 1 | P2-11, P2-12, P2-14 | Test fixtures |
|
|
103
|
+
|
|
104
|
+
**Subtotal**: 8 days (64 hours)
|
|
105
|
+
|
|
106
|
+
### 2.4 Report Generation (Week 8)
|
|
107
|
+
|
|
108
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
109
|
+
|---------|------|------|--------------|--------------|
|
|
110
|
+
| **P2-16** | Implement Markdown report generator | 2 | P2-05 | Markdown output |
|
|
111
|
+
| **P2-17** | Implement HTML report generator | 2 | P2-05 | HTML output |
|
|
112
|
+
| **P2-18** | Implement SARIF report generator | 2 | P2-05 | SARIF output |
|
|
113
|
+
| **P2-19** | Add report aggregation logic | 1 | P2-16, P2-17 | Multi-file aggregation |
|
|
114
|
+
| **P2-20** | Implement `report` command | 1 | P2-01, P2-19 | Report CLI command |
|
|
115
|
+
|
|
116
|
+
**Subtotal**: 8 days (64 hours)
|
|
117
|
+
|
|
118
|
+
**Phase 2 Total**: 34 days (272 hours)
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Phase 3: Integration (Week 9-12)
|
|
123
|
+
|
|
124
|
+
**Goal**: 实现 CI/CD 集成和 LLM 增强功能
|
|
125
|
+
|
|
126
|
+
### 3.1 Git Integration (Week 9)
|
|
127
|
+
|
|
128
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
129
|
+
|---------|------|------|--------------|--------------|
|
|
130
|
+
| **P3-01** | Implement Git diff scanner | 2 | P2-02 | Incremental scan |
|
|
131
|
+
| **P3-02** | Add .gitignore-aware file discovery | 1 | P2-02 | Smart file filtering |
|
|
132
|
+
| **P3-03** | Implement Git context extraction | 1 | P3-01 | Branch, commit info |
|
|
133
|
+
| **P3-04** | Create GitHub Action workflow | 2 | P2-02 | Action YAML |
|
|
134
|
+
| **P3-05** | Implement PR comment posting | 2 | P3-04 | GitHub integration |
|
|
135
|
+
|
|
136
|
+
**Subtotal**: 8 days (64 hours)
|
|
137
|
+
|
|
138
|
+
### 3.2 LLM Integration (Week 10)
|
|
139
|
+
|
|
140
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
141
|
+
|---------|------|------|--------------|--------------|
|
|
142
|
+
| **P3-06** | Design LLM client interface | 1 | P1-01 | LLM abstraction |
|
|
143
|
+
| **P3-07** | Implement Claude API client | 2 | P3-06 | Claude integration |
|
|
144
|
+
| **P3-08** | Design and implement prompts | 2 | P3-07 | Prompt templates |
|
|
145
|
+
| **P3-09** | Implement AI issue enhancement | 2 | P3-07, P2-02 | AI-enhanced issues |
|
|
146
|
+
| **P3-10** | Implement local model fallback | 1 | P3-06 | Local Llama support |
|
|
147
|
+
|
|
148
|
+
**Subtotal**: 8 days (64 hours)
|
|
149
|
+
|
|
150
|
+
### 3.3 Performance & Caching (Week 11)
|
|
151
|
+
|
|
152
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
153
|
+
|---------|------|------|--------------|--------------|
|
|
154
|
+
| **P3-11** | Implement parallel file scanning | 2 | P2-02 | Concurrent scans |
|
|
155
|
+
| **P3-12** | Optimize AST caching strategy | 2 | P1-10 | Cache invalidation |
|
|
156
|
+
| **P3-13** | Add scan progress reporting | 1 | P2-02 | Progress bars |
|
|
157
|
+
| **P3-14** | Implement scan result caching | 2 | P2-02 | Result persistence |
|
|
158
|
+
| **P3-15** | Performance benchmarking | 1 | P3-11, P3-12 | Benchmark suite |
|
|
159
|
+
|
|
160
|
+
**Subtotal**: 8 days (64 hours)
|
|
161
|
+
|
|
162
|
+
### 3.4 Advanced Features (Week 12)
|
|
163
|
+
|
|
164
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
165
|
+
|---------|------|------|--------------|--------------|
|
|
166
|
+
| **P3-16** | Implement trend analysis | 2 | P2-20 | Historical reports |
|
|
167
|
+
| **P3-17** | Add custom rule DSL | 3 | P1-14 | User-defined rules |
|
|
168
|
+
| **P3-18** | Implement auto-fix capability | 2 | P2-06, P2-07 | Auto-fix suggestions |
|
|
169
|
+
| **P3-19** | Add ignore directive support | 1 | P2-02 | Inline ignores |
|
|
170
|
+
|
|
171
|
+
**Subtotal**: 8 days (64 hours)
|
|
172
|
+
|
|
173
|
+
**Phase 3 Total**: 32 days (256 hours)
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Phase 4: Release Preparation (Week 13-16)
|
|
178
|
+
|
|
179
|
+
**Goal**: 测试、文档优化、发布准备
|
|
180
|
+
|
|
181
|
+
### 4.1 Testing (Week 13)
|
|
182
|
+
|
|
183
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
184
|
+
|---------|------|------|--------------|--------------|
|
|
185
|
+
| **P4-01** | Write unit tests for parser | 2 | P1-07, P1-08 | Parser test suite |
|
|
186
|
+
| **P4-02** | Write unit tests for rules | 2 | P2-10, P2-15 | Rule test suite |
|
|
187
|
+
| **P4-03** | Write integration tests | 2 | All | End-to-end tests |
|
|
188
|
+
| **P4-04** | Set up code coverage reporting | 1 | P4-01, P4-02 | Coverage report |
|
|
189
|
+
| **P4-05** | Performance and load testing | 2 | P3-15 | Performance report |
|
|
190
|
+
|
|
191
|
+
**Subtotal**: 9 days (72 hours)
|
|
192
|
+
|
|
193
|
+
### 4.2 Documentation (Week 14)
|
|
194
|
+
|
|
195
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
196
|
+
|---------|------|------|--------------|--------------|
|
|
197
|
+
| **P4-06** | Write user guide | 2 | P2-01 | User documentation |
|
|
198
|
+
| **P4-07** | Write configuration reference | 1 | P1-05 | Config docs |
|
|
199
|
+
| **P4-08** | Write rule development guide | 2 | P3-17 | Custom rule docs |
|
|
200
|
+
| **P4-09** | Create example configurations | 1 | P4-07 | Example configs |
|
|
201
|
+
| **P4-10** | Record demo video | 1 | All | Demo content |
|
|
202
|
+
|
|
203
|
+
**Subtotal**: 7 days (56 hours)
|
|
204
|
+
|
|
205
|
+
### 4.3 Packaging (Week 15)
|
|
206
|
+
|
|
207
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
208
|
+
|---------|------|------|--------------|--------------|
|
|
209
|
+
| **P4-11** | Set up release automation | 2 | P1-03 | Release workflow |
|
|
210
|
+
| **P4-12** | Create binaries for all platforms | 2 | P4-11 | Binary artifacts |
|
|
211
|
+
| **P4-13** | Publish to Homebrew | 1 | P4-12 | Homebrew tap |
|
|
212
|
+
| **P4-14** | Create Docker image | 1 | P4-12 | Docker Hub |
|
|
213
|
+
| **P4-15** | Set up package signing | 1 | P4-12 | Signed releases |
|
|
214
|
+
|
|
215
|
+
**Subtotal**: 7 days (56 hours)
|
|
216
|
+
|
|
217
|
+
### 4.4 Launch (Week 16)
|
|
218
|
+
|
|
219
|
+
| Task ID | Task | Days | Dependencies | Deliverables |
|
|
220
|
+
|---------|------|------|--------------|--------------|
|
|
221
|
+
| **P4-16** | Create GitHub release | 1 | P4-12 | v1.0.0 release |
|
|
222
|
+
| **P4-17** | Publish marketplace entry | 1 | P3-04 | GitHub Action |
|
|
223
|
+
| **P4-18** | Write announcement blog post | 1 | P4-10 | Launch post |
|
|
224
|
+
| **P4-19** | Community outreach | 1 | P4-18 | Social media |
|
|
225
|
+
| **P4-20** | Post-launch support & bug fixes | 2 | P4-16 | v1.0.1 patches |
|
|
226
|
+
|
|
227
|
+
**Subtotal**: 6 days (48 hours)
|
|
228
|
+
|
|
229
|
+
**Phase 4 Total**: 29 days (232 hours)
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Task Dependency Graph
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
Phase 1: Foundation
|
|
237
|
+
├── P1-01 → All tasks
|
|
238
|
+
├── P1-01 → P1-02 → P1-03 (CI/CD)
|
|
239
|
+
├── P1-01 → P1-04 (Database)
|
|
240
|
+
├── P1-01 → P1-05 (Config)
|
|
241
|
+
├── P1-01 → P1-06 → P1-07, P1-08 (Parsers)
|
|
242
|
+
├── P1-08 → P1-09 (TypeScript)
|
|
243
|
+
├── P1-06, P1-04 → P1-10 (Cache)
|
|
244
|
+
├── P1-01 → P1-12 → P1-13 (Rule Engine)
|
|
245
|
+
├── P1-05, P1-12 → P1-14 (Rule Config)
|
|
246
|
+
└── P1-13 → P1-15 (Issue Model)
|
|
247
|
+
|
|
248
|
+
Phase 2: Core Features
|
|
249
|
+
├── P1-01 → P2-01 → P2-02, P2-03, P2-04 (CLI)
|
|
250
|
+
├── P2-02 → P2-05 (Output)
|
|
251
|
+
├── P1-13 → P2-06, P2-07, P2-08, P2-09 (Rules)
|
|
252
|
+
├── P2-06, P2-07, P2-08 → P2-10 (Security Tests)
|
|
253
|
+
├── P1-13 → P2-11, P2-12, P2-13, P2-14 (Quality Rules)
|
|
254
|
+
├── P2-11, P2-12, P2-14 → P2-15 (Quality Tests)
|
|
255
|
+
├── P2-05 → P2-16, P2-17, P2-18 (Reports)
|
|
256
|
+
└── P2-16, P2-17 → P2-19 → P2-01 → P2-20 (Report Command)
|
|
257
|
+
|
|
258
|
+
Phase 3: Integration
|
|
259
|
+
├── P2-02 → P3-01 → P3-03 (Git Integration)
|
|
260
|
+
├── P3-01 → P3-02 (File Discovery)
|
|
261
|
+
├── P2-02 → P3-04 → P3-05 (GitHub Action)
|
|
262
|
+
├── P1-01 → P3-06 → P3-07 (LLM Client)
|
|
263
|
+
├── P3-07 → P3-08 → P3-09 (AI Enhancement)
|
|
264
|
+
├── P3-06 → P3-10 (Local Model)
|
|
265
|
+
├── P2-02 → P3-11 → P3-12, P3-14 (Performance)
|
|
266
|
+
├── P3-11 → P3-13 (Progress)
|
|
267
|
+
├── P3-11, P3-12 → P3-15 (Benchmarking)
|
|
268
|
+
├── P2-20 → P3-16 (Trends)
|
|
269
|
+
├── P1-14 → P3-17 (Custom Rules)
|
|
270
|
+
├── P2-06, P2-07 → P3-18 (Auto-fix)
|
|
271
|
+
└── P2-02 → P3-19 (Ignores)
|
|
272
|
+
|
|
273
|
+
Phase 4: Release
|
|
274
|
+
├── P1-07, P1-08 → P4-01 (Parser Tests)
|
|
275
|
+
├── P2-10, P2-15 → P4-02 (Rule Tests)
|
|
276
|
+
├── All → P4-03 (Integration Tests)
|
|
277
|
+
├── P4-01, P4-02 → P4-04 (Coverage)
|
|
278
|
+
├── P3-15 → P4-05 (Performance Tests)
|
|
279
|
+
├── P2-01 → P4-06 (User Guide)
|
|
280
|
+
├── P1-05 → P4-07 (Config Docs)
|
|
281
|
+
├── P3-17 → P4-08 (Custom Rule Docs)
|
|
282
|
+
├── P4-07 → P4-09 (Examples)
|
|
283
|
+
├── All → P4-10 (Demo)
|
|
284
|
+
├── P1-03 → P4-11 → P4-12 (Release Automation)
|
|
285
|
+
├── P4-12 → P4-13, P4-14, P4-15 (Packaging)
|
|
286
|
+
├── P4-12 → P4-16 → P4-17 (Launch)
|
|
287
|
+
└── P4-10 → P4-18 → P4-19 → P4-20 (Post-Launch)
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## Critical Path
|
|
293
|
+
|
|
294
|
+
The critical path (longest chain of dependent tasks) is:
|
|
295
|
+
|
|
296
|
+
```
|
|
297
|
+
P1-01 → P1-06 → P1-07 → P2-02 → P3-11 → P3-12 → P3-15 → P4-03 → P4-11 → P4-12 → P4-16
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Total: ~11 weeks on the critical path. Parallel tasks can reduce overall timeline to 16 weeks.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Risk Adjustments
|
|
305
|
+
|
|
306
|
+
| Risk | Impact | Mitigation | Schedule Buffer |
|
|
307
|
+
|------|--------|------------|-----------------|
|
|
308
|
+
| LLM API delays | +1 week | Use local model fallback | Week 10-11 |
|
|
309
|
+
| Tree-sitter complexity | +1 week | Start with simple parsers | Week 2-3 |
|
|
310
|
+
| Testing overruns | +1 week | Write tests alongside code | Week 13-14 |
|
|
311
|
+
| Documentation gaps | +0.5 week | Start docs early | Week 14-15 |
|
|
312
|
+
|
|
313
|
+
**Total buffer**: 3.5 weeks built into 16-week schedule
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Resource Allocation
|
|
318
|
+
|
|
319
|
+
| Phase | Tasks | Estimated Hours | % of Total |
|
|
320
|
+
|-------|-------|-----------------|------------|
|
|
321
|
+
| Phase 1 | 15 | 200 | 42% |
|
|
322
|
+
| Phase 2 | 20 | 272 | 57% |
|
|
323
|
+
| Phase 3 | 19 | 256 | 53% |
|
|
324
|
+
| Phase 4 | 20 | 232 | 48% |
|
|
325
|
+
| **Total** | **74** | **960** | **200%** |
|
|
326
|
+
|
|
327
|
+
*Note: Percentages exceed 100% because tasks can be done in parallel. Actual timeline is 480 hours (16 weeks at 30h/week).*
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Milestone Checklist
|
|
332
|
+
|
|
333
|
+
### Milestone 1: MVP Foundation (Week 4)
|
|
334
|
+
- [x] P1-01 to P1-15 completed
|
|
335
|
+
- [ ] Python and JavaScript parsing working
|
|
336
|
+
- [ ] Rule engine can execute basic rules
|
|
337
|
+
- [ ] Configuration system in place
|
|
338
|
+
|
|
339
|
+
### Milestone 2: CLI + Rules (Week 8)
|
|
340
|
+
- [ ] P2-01 to P2-20 completed
|
|
341
|
+
- [ ] CLI can scan directories
|
|
342
|
+
- [ ] Security rules detecting issues
|
|
343
|
+
- [ ] Quality rules operational
|
|
344
|
+
- [ ] Reports generating correctly
|
|
345
|
+
|
|
346
|
+
### Milestone 3: Integration (Week 12)
|
|
347
|
+
- [ ] P3-01 to P3-19 completed
|
|
348
|
+
- [ ] GitHub Action working
|
|
349
|
+
- [ ] LLM integration functional
|
|
350
|
+
- [ ] Performance acceptable
|
|
351
|
+
|
|
352
|
+
### Milestone 4: v1.0 Release (Week 16)
|
|
353
|
+
- [ ] P4-01 to P4-20 completed
|
|
354
|
+
- [ ] All tests passing
|
|
355
|
+
- [ ] Documentation complete
|
|
356
|
+
- [ ] v1.0.0 released
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Next Steps
|
|
361
|
+
|
|
362
|
+
1. Review WBS with stakeholders
|
|
363
|
+
2. Assign start dates to each task
|
|
364
|
+
3. Create project tracking dashboard
|
|
365
|
+
4. Set up weekly review cadence
|
|
366
|
+
5. Proceed to risk assessment (risks.md)
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
## Metadata
|
|
371
|
+
|
|
372
|
+
- **Created**: 1/17/2026
|
|
373
|
+
- **Author**: Phase 3 Design Executor
|
|
374
|
+
- **Total Tasks**: 74
|
|
375
|
+
- **Estimated Duration**: 16 weeks (480 hours)
|
|
376
|
+
- **Status**: Draft for Review
|
|
377
|
+
- **Related Docs**: phase3/architecture.md, phase3/api-design.md, phase3/data-model.md
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
*This work breakdown structure provides a detailed task roadmap for the AI Code Review Tool implementation.*
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"tasks": {
|
|
2
|
+
"tasks": {
|
|
3
|
+
"completed_develop_local-knowledge-index.md": {
|
|
4
|
+
"completed": true,
|
|
5
|
+
"notified": true
|
|
6
|
+
},
|
|
7
|
+
"completed_develop_web-search-integration.md": {
|
|
8
|
+
"completed": true,
|
|
9
|
+
"notified": true
|
|
10
|
+
},
|
|
11
|
+
"completed_develop_todo-system.md": {
|
|
12
|
+
"completed": true,
|
|
13
|
+
"notified": true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
3
16
|
"transitions": []
|
|
4
17
|
}
|
|
@@ -1,105 +1,63 @@
|
|
|
1
1
|
# 项目任务追踪系统
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
> **最后更新**: 2026-01-15
|
|
3
|
+
> 本目录由 AI 自动维护,记录项目开发任务和进度
|
|
5
4
|
|
|
6
|
-
@version:
|
|
5
|
+
@version: 1.0.0
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## 📊 项目进度
|
|
11
|
-
|
|
12
|
-
| 阶段 | 进度 | 状态 |
|
|
13
|
-
|------|------|------|
|
|
14
|
-
| Phase 1: MVP 智能监控 | 80% | 🚧 进行中 |
|
|
15
|
-
| Phase 2: V1.5 动态调整 | 0% | 📋 待规划 |
|
|
16
|
-
| Phase 3: V2.0 AI 教练 | 0% | 📋 待规划 |
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## 🔄 任务生命周期
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
|
|
24
|
-
│ RESEARCH │ → │ DEVELOP │ → │ TEST │
|
|
25
|
-
│ 📊 研究 │ │ 💻 开发 │ │ 🧪 测试 │
|
|
26
|
-
└─────────────┘ └─────────────┘ └─────────────┘
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 📁 目录结构
|
|
7
|
+
## 目录结构
|
|
32
8
|
|
|
33
9
|
```
|
|
34
10
|
development/todos/
|
|
35
11
|
├── INDEX.md # 本文件 - 任务总览
|
|
36
|
-
├──
|
|
37
|
-
├──
|
|
38
|
-
|
|
39
|
-
│ ├── develop/ # 💻 开发中 (0)
|
|
40
|
-
│ └── test/ # 🧪 测试中 (0)
|
|
41
|
-
├── completed/ # 已完成的任务 (0)
|
|
42
|
-
│ ├── research/
|
|
43
|
-
│ ├── develop/
|
|
44
|
-
│ └── test/
|
|
45
|
-
├── backlog/ # 待规划的任务 (0)
|
|
12
|
+
├── active/ # 进行中的任务
|
|
13
|
+
├── completed/ # 已完成的任务
|
|
14
|
+
├── backlog/ # 待规划的任务
|
|
46
15
|
└── archived/ # 已归档的任务
|
|
47
16
|
```
|
|
48
17
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## 🚧 当前进行中的任务
|
|
18
|
+
## 任务状态说明
|
|
52
19
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### 🧪 测试任务
|
|
60
|
-
暂无
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## ✅ 最近完成的任务
|
|
65
|
-
|
|
66
|
-
### 💻 开发任务
|
|
67
|
-
暂无
|
|
68
|
-
|
|
69
|
-
### 🧪 测试任务
|
|
70
|
-
暂无
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## 📋 待办任务
|
|
20
|
+
| 状态 | 目录 | 说明 |
|
|
21
|
+
|------|------|------|
|
|
22
|
+
| 🚧 进行中 | `active/` | 当前正在开发的任务 |
|
|
23
|
+
| ✅ 已完成 | `completed/` | 完成的任务 |
|
|
24
|
+
| 📋 待办 | `backlog/` | 规划中或待分配的任务 |
|
|
25
|
+
| 📦 已归档 | `archived/` | 不再活跃的历史任务 |
|
|
75
26
|
|
|
76
|
-
|
|
27
|
+
## 快速跳转
|
|
77
28
|
|
|
78
|
-
|
|
29
|
+
- [🚧 进行中的任务](./active/) - 当前开发重点
|
|
30
|
+
- [✅ 已完成的任务](./completed/) - 最近完成
|
|
31
|
+
- [📋 待办任务](./backlog/) - 待规划
|
|
32
|
+
- [📦 已归档](./archived/) - 历史记录
|
|
79
33
|
|
|
80
|
-
##
|
|
34
|
+
## 使用方式
|
|
81
35
|
|
|
82
36
|
### 查看任务
|
|
37
|
+
点击上方链接跳转到对应目录,或使用:
|
|
83
38
|
```bash
|
|
84
|
-
#
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
39
|
+
# 查看进行中的任务
|
|
40
|
+
cat development/todos/active/*.md
|
|
41
|
+
|
|
42
|
+
# 查看特定任务
|
|
43
|
+
cat development/todos/active/feature-name.md
|
|
88
44
|
```
|
|
89
45
|
|
|
90
46
|
### 创建新任务
|
|
91
47
|
在 Claude Code 中:
|
|
92
48
|
```
|
|
93
|
-
|
|
94
|
-
- 类型:测试
|
|
95
|
-
- 标题:Dashboard 功能测试
|
|
49
|
+
创建一个新任务:实现用户登录功能
|
|
96
50
|
```
|
|
97
51
|
|
|
52
|
+
AI 会自动在 `active/` 目录创建对应的任务文件。
|
|
53
|
+
|
|
98
54
|
### 更新任务状态
|
|
99
55
|
```
|
|
100
56
|
将 [任务名] 标记为完成
|
|
101
57
|
```
|
|
102
58
|
|
|
59
|
+
AI 会自动将任务移动到 `completed/` 目录。
|
|
60
|
+
|
|
103
61
|
---
|
|
104
62
|
|
|
105
|
-
> **维护说明**: 本系统由 AI
|
|
63
|
+
> **维护说明**: 本系统由 AI 自动维护,请勿手动编辑(除非你知道自己在做什么)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# 本地知识库索引
|
|
2
|
+
|
|
3
|
+
> **类型**: 💻 Develop | 实现/编码/重构
|
|
4
|
+
> **状态**: ✅ 已完成
|
|
5
|
+
> **优先级**: P1
|
|
6
|
+
> **创建时间**: 2026-01-17
|
|
7
|
+
> **完成时间**: 2026-01-17
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 📋 任务描述
|
|
12
|
+
|
|
13
|
+
实现本地知识库索引功能,支持文档解析、元数据提取和语义检索,为 NotebookLM 知识引擎提供本地数据源。
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## ✅ 子任务清单
|
|
18
|
+
|
|
19
|
+
### 第一阶段:索引结构
|
|
20
|
+
- [x] 设计知识库目录结构 (`development/knowledge-base/`)
|
|
21
|
+
- [x] 定义文档元数据格式 (title, tags, source, created)
|
|
22
|
+
- [x] 实现文档扫描器
|
|
23
|
+
|
|
24
|
+
### 第二阶段:检索功能
|
|
25
|
+
- [x] 实现关键词搜索
|
|
26
|
+
- [x] 实现标签过滤
|
|
27
|
+
- [x] 集成到 knowledge-engine.js
|
|
28
|
+
|
|
29
|
+
### 第三阶段:NotebookLM 同步
|
|
30
|
+
- [x] 添加知识源到 NotebookLM notebook
|
|
31
|
+
- [x] 实现增量同步机制
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 🎯 验收标准
|
|
36
|
+
|
|
37
|
+
- [x] `smc knowledge add <file>` 成功添加文档
|
|
38
|
+
- [x] `smc knowledge list` 显示已添加文档
|
|
39
|
+
- [x] `smc knowledge query <question>` 返回相关结果
|
|
40
|
+
- [x] 文档变更时索引自动更新
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 📁 关键文件
|
|
45
|
+
|
|
46
|
+
| 文件 | 说明 | 状态 |
|
|
47
|
+
|------|------|------|
|
|
48
|
+
| `development/knowledge-base/` | 知识库存储目录 | ✅ 已创建 |
|
|
49
|
+
| `development/knowledge-base/index.json` | 索引文件 | ✅ 已实现 |
|
|
50
|
+
| `.claude/workflow/knowledge-engine.js` | 知识引擎 | ✅ 已集成 |
|
|
51
|
+
| `.claude/workflow/templates/research.md` | 研究提示词模板 | ✅ 已更新 |
|
|
52
|
+
| `.claude/workflow/phases/phase1-research.js` | Phase 1 执行器 | ✅ 已更新 |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 🔗 依赖任务
|
|
57
|
+
|
|
58
|
+
- 前置任务:无
|
|
59
|
+
- 后续任务:[网络搜索集成](./web-search-integration.md)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 📝 开发日志
|
|
64
|
+
|
|
65
|
+
### 2026-01-17
|
|
66
|
+
- ✅ 任务创建,基于阶段 1 实施计划
|
|
67
|
+
- ✅ 知识库目录结构已创建
|
|
68
|
+
- ✅ 知识引擎已集成本地知识库
|
|
69
|
+
- ✅ Phase 1 研究流程已完成测试
|
|
70
|
+
- ✅ 可行性报告模板已更新(研究计划集成)
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 🧪 测试说明
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# 添加文档
|
|
78
|
+
smc knowledge add ./docs/best-practices.md
|
|
79
|
+
|
|
80
|
+
# 列出文档
|
|
81
|
+
smc knowledge list
|
|
82
|
+
|
|
83
|
+
# 查询知识库
|
|
84
|
+
smc knowledge query "React 最佳实践"
|
|
85
|
+
```
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# TODO 任务管理系统
|
|
2
2
|
|
|
3
|
-
**状态**:
|
|
3
|
+
**状态**: ✅ 已完成
|
|
4
4
|
**优先级**: P1
|
|
5
5
|
**负责人**: AI
|
|
6
6
|
**分支**: `feature/todo-system`
|
|
7
7
|
**创建时间**: 2026-01-11
|
|
8
8
|
**预计完成**: 2026-01-11
|
|
9
|
+
**完成时间**: 2026-01-17
|
|
9
10
|
|
|
10
11
|
## 描述
|
|
11
12
|
|
|
@@ -27,11 +28,20 @@
|
|
|
27
28
|
|
|
28
29
|
- [x] 初始规划
|
|
29
30
|
- [x] 开发实现
|
|
30
|
-
- [
|
|
31
|
-
- [
|
|
31
|
+
- [x] 测试验证
|
|
32
|
+
- [x] 代码审查
|
|
32
33
|
|
|
33
34
|
## 备注
|
|
34
35
|
|
|
35
36
|
- 支持 Markdown 链接点击跳转
|
|
36
37
|
- AI 自动维护,静默更新
|
|
37
38
|
- 任务状态自动流转
|
|
39
|
+
|
|
40
|
+
## 完成日志 (2026-01-17)
|
|
41
|
+
|
|
42
|
+
✅ **系统已验证**:
|
|
43
|
+
- 目录结构正常工作 (active/completed/backlog/archived)
|
|
44
|
+
- INDEX.md 自动更新
|
|
45
|
+
- todo-manager.cjs Hook 正常运行
|
|
46
|
+
- 所有子任务已完成并验证
|
|
47
|
+
- 在此 session 中成功管理了 3 个任务
|