dw-kit 1.2.1 → 1.3.4

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 (59) 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 +138 -0
  11. package/.claude/settings.json +28 -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 +121 -98
  23. package/.claude/skills/dw-flow/SKILL.md +274 -274
  24. package/.claude/skills/dw-handoff/SKILL.md +92 -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 +222 -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 +128 -114
  32. package/.claude/skills/dw-retroactive/SKILL.md +195 -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 +71 -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/ROLES.md +257 -257
  42. package/.dw/core/templates/v2/spec.md +68 -0
  43. package/.dw/core/templates/v2/tracking.md +62 -0
  44. package/.dw/core/v14-evaluation-protocol.md +118 -0
  45. package/CLAUDE.md +42 -39
  46. package/MIGRATION-v1.3.md +202 -0
  47. package/README.md +35 -6
  48. package/package.json +4 -2
  49. package/src/cli.mjs +29 -1
  50. package/src/commands/dashboard.mjs +116 -0
  51. package/src/commands/doctor.mjs +165 -149
  52. package/src/commands/init.mjs +339 -332
  53. package/src/commands/metrics.mjs +185 -0
  54. package/src/lib/active-index.mjs +87 -0
  55. package/src/lib/cut-analysis.mjs +240 -0
  56. package/src/lib/telemetry.mjs +80 -0
  57. package/.claude/rules/dw-core.md +0 -100
  58. package/.claude/rules/dw-skills.md +0 -53
  59. package/.claude/rules/workflow-rules.md +0 -77
@@ -1,53 +0,0 @@
1
- <!-- dw-kit | core: 1.2 -->
2
- # dw Skills
3
-
4
- Invoke via Claude Code slash commands. Availability governed by config flags and `workflow.default_depth`.
5
-
6
- ## Core Workflow
7
-
8
- | Skill | Description | Depth |
9
- |-------|-------------|-------|
10
- | `/dw-flow [task]` | Full workflow shortcut | all |
11
- | `/dw-task-init [name]` | Init task docs | all |
12
- | `/dw-research [name]` | Survey codebase | all |
13
- | `/dw-plan [name]` | Design plan (waits for approval) | standard+ |
14
- | `/dw-execute [name]` | Implement per plan (TDD) | all |
15
- | `/dw-commit [msg]` | Smart commit + quality gates | all |
16
- | `/dw-handoff` | Session handoff | all |
17
-
18
- ## Dev
19
-
20
- | Skill | Description |
21
- |-------|-------------|
22
- | `/dw-debug [issue]` | Investigate → diagnose → fix |
23
- | `/dw-review` | Code review with checklist |
24
- | `/dw-thinking [question]` | Apply thinking framework |
25
- | `/dw-prompt [desc]` | Build structured prompt |
26
- | `/dw-docs-update` | Update living docs |
27
-
28
- ## Role-Specific
29
-
30
- | Skill | Role | Description |
31
- |-------|------|-------------|
32
- | `/dw-requirements` | BA | Requirements + user stories |
33
- | `/dw-test-plan` | QC | Test plan + regression |
34
- | `/dw-arch-review` | TechLead | Architecture review |
35
- | `/dw-dashboard` | PM | Metrics report |
36
- | `/dw-sprint-review` | All | Retrospective |
37
- | `/dw-estimate [name]` | if enabled | Effort estimation |
38
- | `/dw-log-work [name]` | if enabled | Log actual effort |
39
-
40
- ## Setup & Maintenance
41
-
42
- | Skill | Description |
43
- |-------|-------------|
44
- | `/dw-onboard` | Onboard dw to existing project (breadth-first scan) |
45
- | `/dw-retroactive [name]` | Document existing feature (depth-first) |
46
- | `/dw-config-init` | Initialize new config |
47
- | `/dw-config-validate` | Validate config file |
48
- | `/dw-upgrade` | Upgrade toolkit |
49
- | `/dw-rollback [name]` | Rollback task docs |
50
- | `/dw-archive [name]` | Archive completed task |
51
- | `/dw-kit-report [desc]` | Submit feedback/bug to GitHub |
52
-
53
- > **Maintainer-only** (TechLead, dw-kit repo): `/dw-kit-evolve [issue#]` · `/dw-kit-audit [days]`
@@ -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.