dw-kit 1.2.0 → 1.3.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/post-write.sh +64 -58
- package/.claude/hooks/pre-commit-gate.sh +96 -90
- package/.claude/hooks/privacy-block.sh +99 -94
- package/.claude/hooks/progress-ping.sh +53 -47
- package/.claude/hooks/safety-guard.sh +60 -54
- package/.claude/hooks/scout-block.sh +88 -82
- package/.claude/hooks/session-init.sh +91 -74
- package/.claude/hooks/stop-check.sh +88 -36
- package/.claude/hooks/telemetry-log.sh +34 -0
- package/.claude/rules/code-style.md +37 -37
- package/.claude/rules/commit-standards.md +37 -37
- package/.claude/rules/dw.md +136 -0
- package/.claude/settings.json +120 -99
- package/.claude/skills/dw-arch-review/SKILL.md +119 -119
- package/.claude/skills/dw-archive/SKILL.md +81 -81
- package/.claude/skills/dw-commit/SKILL.md +81 -81
- package/.claude/skills/dw-config-init/SKILL.md +91 -91
- package/.claude/skills/dw-config-validate/SKILL.md +75 -75
- package/.claude/skills/dw-dashboard/SKILL.md +209 -209
- package/.claude/skills/dw-debug/SKILL.md +97 -97
- package/.claude/skills/dw-decision/SKILL.md +116 -0
- package/.claude/skills/dw-docs-update/SKILL.md +125 -125
- package/.claude/skills/dw-estimate/SKILL.md +90 -90
- package/.claude/skills/dw-execute/SKILL.md +98 -98
- package/.claude/skills/dw-flow/SKILL.md +274 -274
- package/.claude/skills/dw-handoff/SKILL.md +81 -81
- package/.claude/skills/dw-kit-report/SKILL.md +152 -152
- package/.claude/skills/dw-log-work/SKILL.md +69 -69
- package/.claude/skills/dw-onboard/SKILL.md +201 -201
- package/.claude/skills/dw-plan/SKILL.md +125 -125
- package/.claude/skills/dw-prompt/SKILL.md +62 -62
- package/.claude/skills/dw-requirements/SKILL.md +98 -98
- package/.claude/skills/dw-research/SKILL.md +114 -114
- package/.claude/skills/dw-retroactive/SKILL.md +311 -311
- package/.claude/skills/dw-review/SKILL.md +66 -66
- package/.claude/skills/dw-rollback/SKILL.md +90 -90
- package/.claude/skills/dw-sprint-review/SKILL.md +99 -99
- package/.claude/skills/dw-task-init/SKILL.md +59 -59
- package/.claude/skills/dw-test-plan/SKILL.md +113 -113
- package/.claude/skills/dw-thinking/SKILL.md +70 -70
- package/.claude/skills/dw-upgrade/SKILL.md +72 -72
- package/.dw/config/dw.config.yml +82 -82
- package/.dw/core/PILLARS.md +122 -0
- package/.dw/core/templates/v2/spec.md +68 -0
- package/.dw/core/templates/v2/tracking.md +62 -0
- package/.dw/core/v14-evaluation-protocol.md +118 -0
- package/CLAUDE.md +42 -39
- package/MIGRATION-v1.3.md +201 -0
- package/README.md +43 -6
- package/package.json +86 -84
- package/src/cli.mjs +45 -9
- package/src/commands/dashboard.mjs +116 -0
- package/src/commands/doctor.mjs +165 -149
- package/src/commands/init.mjs +339 -332
- package/src/commands/metrics.mjs +165 -0
- package/src/commands/upgrade.mjs +297 -262
- package/src/lib/active-index.mjs +87 -0
- package/src/lib/copy.mjs +118 -110
- package/src/lib/cut-analysis.mjs +161 -0
- package/src/lib/telemetry.mjs +80 -0
- package/.claude/rules/dw-core.md +0 -100
- package/.claude/rules/dw-skills.md +0 -53
- package/.claude/rules/workflow-rules.md +0 -77
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# Workflow Rules
|
|
2
|
-
|
|
3
|
-
## Config-Driven Behavior
|
|
4
|
-
|
|
5
|
-
Trước khi thực hiện bất kỳ skill nào, PHẢI đọc `.dw/config/dw.config.yml`:
|
|
6
|
-
|
|
7
|
-
1. Kiểm tra `flags.<skill_name>` — nếu `false` → KHÔNG chạy, thông báo user
|
|
8
|
-
2. Kiểm tra `level` — nếu skill yêu cầu level cao hơn → thông báo và hỏi user
|
|
9
|
-
3. Nếu flag = `"skip"` → cho phép nhưng không enforce
|
|
10
|
-
|
|
11
|
-
## Level Requirements
|
|
12
|
-
|
|
13
|
-
| Skill | Level 1 | Level 2 | Level 3 |
|
|
14
|
-
|-------|---------|---------|---------|
|
|
15
|
-
| onboard | yes | yes | yes |
|
|
16
|
-
| retroactive | yes | yes | yes |
|
|
17
|
-
| task-init | yes | yes | yes |
|
|
18
|
-
| research | yes | yes | yes |
|
|
19
|
-
| plan | skip | yes | yes |
|
|
20
|
-
| execute | yes | yes | yes |
|
|
21
|
-
| commit | yes | yes | yes |
|
|
22
|
-
| review | no | yes | yes |
|
|
23
|
-
| debug | yes | yes | yes |
|
|
24
|
-
| estimate | no | skip | yes |
|
|
25
|
-
| log-work | no | skip | yes |
|
|
26
|
-
| living-docs | no | no | yes |
|
|
27
|
-
| dashboard | no | no | yes |
|
|
28
|
-
| handoff | skip | yes | yes |
|
|
29
|
-
|
|
30
|
-
## Flag Behavior
|
|
31
|
-
|
|
32
|
-
- `true` : Skill hoạt động và được enforce trong workflow
|
|
33
|
-
- `false` : Skill bị tắt, skip trong workflow chain
|
|
34
|
-
- `"skip"` : Skill có sẵn nhưng optional, user tự quyết định
|
|
35
|
-
|
|
36
|
-
## Collaboration Rules
|
|
37
|
-
|
|
38
|
-
### Khi làm việc cùng Human Dev
|
|
39
|
-
- DỪNG và hỏi trước khi: thay đổi architecture, xóa code, thay đổi API contract
|
|
40
|
-
- Ghi rõ trong progress: quyết định nào do agent, quyết định nào cần human
|
|
41
|
-
- Nếu phát hiện conflict với plan → DỪNG, cập nhật progress, hỏi user
|
|
42
|
-
|
|
43
|
-
### Khi bàn giao giữa sessions
|
|
44
|
-
- Luôn cập nhật progress file trước khi kết thúc
|
|
45
|
-
- Ghi rõ: đang ở subtask nào, blockers, context quan trọng
|
|
46
|
-
- Commit work-in-progress nếu có thay đổi đáng kể
|
|
47
|
-
|
|
48
|
-
## Adoption Workflow (Existing Project)
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
Lần đầu dùng dw trên project đang chạy:
|
|
52
|
-
/dw-onboard → .dw/context/project-map.md + module docs (breadth-first)
|
|
53
|
-
↓
|
|
54
|
-
Khi cần AI hiểu sâu module cụ thể:
|
|
55
|
-
/dw-retroactive [module] → .dw/tasks/[module]/ as-built docs (depth-first)
|
|
56
|
-
↓
|
|
57
|
-
Task mới liên quan module đã documented:
|
|
58
|
-
/dw-research [task] → AI đọc context có sẵn làm foundation
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Multi-Role Workflow
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
BA: /dw-requirements → output: requirements doc
|
|
65
|
-
↓
|
|
66
|
-
TL: /dw-arch-review → output: architecture decision + approve
|
|
67
|
-
↓
|
|
68
|
-
Dev+Agent: /dw-task-init → /dw-research → /dw-plan → [TL approve] → /dw-execute
|
|
69
|
-
↓
|
|
70
|
-
QC: /dw-test-plan → manual/auto testing
|
|
71
|
-
↓
|
|
72
|
-
Dev+Agent: /dw-review → /dw-commit → PR
|
|
73
|
-
↓
|
|
74
|
-
PM: /dw-dashboard → project health view
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Không phải mọi task đều cần full chain. Routing complexity quyết định.
|