dw-kit 1.2.1 → 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.
Files changed (58) hide show
  1. package/.claude/hooks/post-write.sh +64 -58
  2. package/.claude/hooks/pre-commit-gate.sh +96 -90
  3. package/.claude/hooks/privacy-block.sh +99 -94
  4. package/.claude/hooks/progress-ping.sh +53 -47
  5. package/.claude/hooks/safety-guard.sh +60 -54
  6. package/.claude/hooks/scout-block.sh +88 -82
  7. package/.claude/hooks/session-init.sh +6 -0
  8. package/.claude/hooks/stop-check.sh +88 -36
  9. package/.claude/hooks/telemetry-log.sh +34 -0
  10. package/.claude/rules/dw.md +136 -0
  11. package/.claude/settings.json +20 -1
  12. package/.claude/skills/dw-arch-review/SKILL.md +119 -119
  13. package/.claude/skills/dw-archive/SKILL.md +81 -81
  14. package/.claude/skills/dw-commit/SKILL.md +81 -81
  15. package/.claude/skills/dw-config-init/SKILL.md +91 -91
  16. package/.claude/skills/dw-config-validate/SKILL.md +75 -75
  17. package/.claude/skills/dw-dashboard/SKILL.md +209 -209
  18. package/.claude/skills/dw-debug/SKILL.md +97 -97
  19. package/.claude/skills/dw-decision/SKILL.md +116 -0
  20. package/.claude/skills/dw-docs-update/SKILL.md +125 -125
  21. package/.claude/skills/dw-estimate/SKILL.md +90 -90
  22. package/.claude/skills/dw-execute/SKILL.md +98 -98
  23. package/.claude/skills/dw-flow/SKILL.md +274 -274
  24. package/.claude/skills/dw-handoff/SKILL.md +81 -81
  25. package/.claude/skills/dw-kit-report/SKILL.md +152 -152
  26. package/.claude/skills/dw-log-work/SKILL.md +69 -69
  27. package/.claude/skills/dw-onboard/SKILL.md +201 -201
  28. package/.claude/skills/dw-plan/SKILL.md +125 -125
  29. package/.claude/skills/dw-prompt/SKILL.md +62 -62
  30. package/.claude/skills/dw-requirements/SKILL.md +98 -98
  31. package/.claude/skills/dw-research/SKILL.md +114 -114
  32. package/.claude/skills/dw-retroactive/SKILL.md +311 -311
  33. package/.claude/skills/dw-review/SKILL.md +66 -66
  34. package/.claude/skills/dw-rollback/SKILL.md +90 -90
  35. package/.claude/skills/dw-sprint-review/SKILL.md +99 -99
  36. package/.claude/skills/dw-task-init/SKILL.md +59 -59
  37. package/.claude/skills/dw-test-plan/SKILL.md +113 -113
  38. package/.claude/skills/dw-thinking/SKILL.md +70 -70
  39. package/.claude/skills/dw-upgrade/SKILL.md +72 -72
  40. package/.dw/core/PILLARS.md +122 -0
  41. package/.dw/core/templates/v2/spec.md +68 -0
  42. package/.dw/core/templates/v2/tracking.md +62 -0
  43. package/.dw/core/v14-evaluation-protocol.md +118 -0
  44. package/CLAUDE.md +42 -39
  45. package/MIGRATION-v1.3.md +201 -0
  46. package/README.md +35 -6
  47. package/package.json +4 -2
  48. package/src/cli.mjs +29 -1
  49. package/src/commands/dashboard.mjs +116 -0
  50. package/src/commands/doctor.mjs +165 -149
  51. package/src/commands/init.mjs +339 -332
  52. package/src/commands/metrics.mjs +165 -0
  53. package/src/lib/active-index.mjs +87 -0
  54. package/src/lib/cut-analysis.mjs +161 -0
  55. package/src/lib/telemetry.mjs +80 -0
  56. package/.claude/rules/dw-core.md +0 -100
  57. package/.claude/rules/dw-skills.md +0 -53
  58. 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.