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.
- 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 +6 -0
- package/.claude/hooks/stop-check.sh +88 -36
- package/.claude/hooks/telemetry-log.sh +34 -0
- package/.claude/rules/dw.md +138 -0
- package/.claude/settings.json +28 -1
- 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 +121 -98
- package/.claude/skills/dw-flow/SKILL.md +274 -274
- package/.claude/skills/dw-handoff/SKILL.md +92 -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 +222 -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 +128 -114
- package/.claude/skills/dw-retroactive/SKILL.md +195 -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 +71 -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/core/PILLARS.md +122 -0
- package/.dw/core/ROLES.md +257 -257
- 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 +202 -0
- package/README.md +35 -6
- package/package.json +4 -2
- package/src/cli.mjs +29 -1
- 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 +185 -0
- package/src/lib/active-index.mjs +87 -0
- package/src/lib/cut-analysis.mjs +240 -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,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.
|