dw-kit 1.9.1 → 1.9.2
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/agents/planner.md +100 -100
- package/.claude/agents/quality-checker.md +86 -86
- package/.claude/agents/researcher.md +93 -93
- package/.claude/agents/reviewer.md +126 -126
- package/.claude/hooks/supply-chain-scan.sh +0 -0
- package/.claude/rules/code-style.md +37 -37
- package/.claude/settings.json +2 -28
- package/.claude/skills/dw-plan/template-plan.md +47 -47
- package/.claude/skills/dw-research/template-research.md +51 -51
- package/.claude/skills/dw-review/checklist.md +88 -88
- package/.claude/skills/dw-thinking/THINKING.md +91 -91
- package/.claude/templates/agent-report.md +35 -35
- package/.claude/templates/en/task-context.md +77 -73
- package/.claude/templates/en/task-plan.md +83 -79
- package/.claude/templates/en/task-progress.md +69 -65
- package/.claude/templates/pr-template.md +56 -56
- package/.claude/templates/task-context.md +77 -73
- package/.claude/templates/task-plan.md +83 -79
- package/.claude/templates/task-progress.md +69 -65
- package/.dw/adapters/claude-cli/extensions/README.md +36 -36
- package/.dw/adapters/claude-cli/generated/README.md +23 -23
- package/.dw/adapters/claude-cli/overrides/README.md +37 -37
- package/.dw/adapters/generic/README.md +21 -21
- package/.dw/config/presets/enterprise.yml +52 -52
- package/.dw/config/presets/small-team.yml +39 -39
- package/.dw/config/presets/solo-quick.yml +37 -37
- package/.dw/core/AGENTS.md +53 -53
- package/.dw/core/QUALITY.md +220 -220
- package/.dw/core/THINKING.md +126 -126
- package/.dw/core/WORKFLOW.md +17 -12
- package/.dw/core/templates/v2/spec.md +2 -0
- package/.dw/core/templates/v2/tracking.md +2 -0
- package/.dw/core/templates/vi/task-context.md +96 -92
- package/.dw/core/templates/vi/task-plan.md +97 -93
- package/.dw/core/templates/vi/task-progress.md +60 -56
- package/LICENSE +201 -201
- package/NOTICE +26 -26
- package/bin/dw.mjs +28 -28
- package/package.json +1 -1
- package/src/commands/claude-vn-fix.mjs +267 -267
- package/src/commands/prompt.mjs +112 -112
- package/src/commands/validate.mjs +102 -102
- package/src/lib/clipboard.mjs +24 -24
- package/src/lib/platform.mjs +39 -39
- package/src/lib/prompt-suggest.mjs +84 -84
- package/src/lib/ui.mjs +66 -66
- package/src/lib/update-checker.mjs +73 -73
- package/.dw/security/advisory-snapshot.json +0 -157
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# dw-kit Preset: Small Team — Standard Workflow
|
|
2
|
-
# Dùng cho: 2-5 devs, có TL, sprint-based development
|
|
3
|
-
# Kế thừa từ: config/dw.config.yml (copy và modify)
|
|
4
|
-
|
|
5
|
-
project:
|
|
6
|
-
name: "my-project"
|
|
7
|
-
language: "vi"
|
|
8
|
-
|
|
9
|
-
workflow:
|
|
10
|
-
default_depth: "standard"
|
|
11
|
-
|
|
12
|
-
team:
|
|
13
|
-
roles:
|
|
14
|
-
- dev
|
|
15
|
-
- techlead
|
|
16
|
-
|
|
17
|
-
quality:
|
|
18
|
-
test_command: "" # điền vào: "npm test" | "pytest" | ...
|
|
19
|
-
lint_command: "" # điền vào: "npm run lint" | "ruff check ." | ...
|
|
20
|
-
block_on_fail: false
|
|
21
|
-
|
|
22
|
-
tracking:
|
|
23
|
-
estimation: true
|
|
24
|
-
log_work: false
|
|
25
|
-
estimation_unit: "hours"
|
|
26
|
-
|
|
27
|
-
paths:
|
|
28
|
-
tasks: ".dw/tasks"
|
|
29
|
-
docs: ".dw/docs"
|
|
30
|
-
|
|
31
|
-
claude:
|
|
32
|
-
structured_output: true
|
|
33
|
-
worktree_execution: false
|
|
34
|
-
mcp: []
|
|
35
|
-
|
|
36
|
-
_toolkit:
|
|
37
|
-
core_version: "1.0"
|
|
38
|
-
platform_version: "1.0"
|
|
39
|
-
capability_version: "1.0"
|
|
1
|
+
# dw-kit Preset: Small Team — Standard Workflow
|
|
2
|
+
# Dùng cho: 2-5 devs, có TL, sprint-based development
|
|
3
|
+
# Kế thừa từ: config/dw.config.yml (copy và modify)
|
|
4
|
+
|
|
5
|
+
project:
|
|
6
|
+
name: "my-project"
|
|
7
|
+
language: "vi"
|
|
8
|
+
|
|
9
|
+
workflow:
|
|
10
|
+
default_depth: "standard"
|
|
11
|
+
|
|
12
|
+
team:
|
|
13
|
+
roles:
|
|
14
|
+
- dev
|
|
15
|
+
- techlead
|
|
16
|
+
|
|
17
|
+
quality:
|
|
18
|
+
test_command: "" # điền vào: "npm test" | "pytest" | ...
|
|
19
|
+
lint_command: "" # điền vào: "npm run lint" | "ruff check ." | ...
|
|
20
|
+
block_on_fail: false
|
|
21
|
+
|
|
22
|
+
tracking:
|
|
23
|
+
estimation: true
|
|
24
|
+
log_work: false
|
|
25
|
+
estimation_unit: "hours"
|
|
26
|
+
|
|
27
|
+
paths:
|
|
28
|
+
tasks: ".dw/tasks"
|
|
29
|
+
docs: ".dw/docs"
|
|
30
|
+
|
|
31
|
+
claude:
|
|
32
|
+
structured_output: true
|
|
33
|
+
worktree_execution: false
|
|
34
|
+
mcp: []
|
|
35
|
+
|
|
36
|
+
_toolkit:
|
|
37
|
+
core_version: "1.0"
|
|
38
|
+
platform_version: "1.0"
|
|
39
|
+
capability_version: "1.0"
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# dw-kit Preset: Solo Developer — Quick Workflow
|
|
2
|
-
# Dùng cho: 1 dev, task nhỏ, prototype, side project
|
|
3
|
-
# Kế thừa từ: config/dw.config.yml (copy và modify)
|
|
4
|
-
|
|
5
|
-
project:
|
|
6
|
-
name: "my-project"
|
|
7
|
-
language: "vi"
|
|
8
|
-
|
|
9
|
-
workflow:
|
|
10
|
-
default_depth: "quick"
|
|
11
|
-
|
|
12
|
-
team:
|
|
13
|
-
roles:
|
|
14
|
-
- dev
|
|
15
|
-
|
|
16
|
-
quality:
|
|
17
|
-
test_command: ""
|
|
18
|
-
lint_command: ""
|
|
19
|
-
block_on_fail: false
|
|
20
|
-
|
|
21
|
-
tracking:
|
|
22
|
-
estimation: false
|
|
23
|
-
log_work: false
|
|
24
|
-
|
|
25
|
-
paths:
|
|
26
|
-
tasks: ".dw/tasks"
|
|
27
|
-
docs: ".dw/docs"
|
|
28
|
-
|
|
29
|
-
claude:
|
|
30
|
-
structured_output: false
|
|
31
|
-
worktree_execution: false
|
|
32
|
-
mcp: []
|
|
33
|
-
|
|
34
|
-
_toolkit:
|
|
35
|
-
core_version: "1.0"
|
|
36
|
-
platform_version: "1.0"
|
|
37
|
-
capability_version: "1.0"
|
|
1
|
+
# dw-kit Preset: Solo Developer — Quick Workflow
|
|
2
|
+
# Dùng cho: 1 dev, task nhỏ, prototype, side project
|
|
3
|
+
# Kế thừa từ: config/dw.config.yml (copy và modify)
|
|
4
|
+
|
|
5
|
+
project:
|
|
6
|
+
name: "my-project"
|
|
7
|
+
language: "vi"
|
|
8
|
+
|
|
9
|
+
workflow:
|
|
10
|
+
default_depth: "quick"
|
|
11
|
+
|
|
12
|
+
team:
|
|
13
|
+
roles:
|
|
14
|
+
- dev
|
|
15
|
+
|
|
16
|
+
quality:
|
|
17
|
+
test_command: ""
|
|
18
|
+
lint_command: ""
|
|
19
|
+
block_on_fail: false
|
|
20
|
+
|
|
21
|
+
tracking:
|
|
22
|
+
estimation: false
|
|
23
|
+
log_work: false
|
|
24
|
+
|
|
25
|
+
paths:
|
|
26
|
+
tasks: ".dw/tasks"
|
|
27
|
+
docs: ".dw/docs"
|
|
28
|
+
|
|
29
|
+
claude:
|
|
30
|
+
structured_output: false
|
|
31
|
+
worktree_execution: false
|
|
32
|
+
mcp: []
|
|
33
|
+
|
|
34
|
+
_toolkit:
|
|
35
|
+
core_version: "1.0"
|
|
36
|
+
platform_version: "1.0"
|
|
37
|
+
capability_version: "1.0"
|
package/.dw/core/AGENTS.md
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# Agent Communication Protocol — dw-kit v1.2
|
|
2
|
-
|
|
3
|
-
## Mục Đích
|
|
4
|
-
|
|
5
|
-
Khi một task lớn cần nhiều "vai" khác nhau (researcher → planner → developer), việc ghi lại kết quả từng bước giúp:
|
|
6
|
-
- Team members (người hoặc agent) biết chính xác task đang ở đâu
|
|
7
|
-
- Audit trail rõ ràng: ai quyết định gì, lúc nào
|
|
8
|
-
- Session tiếp theo có thể tiếp tục mà không cần hỏi lại
|
|
9
|
-
|
|
10
|
-
## Convention: Reports Directory
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
.dw/tasks/[task-name]/
|
|
14
|
-
├── [name]-context.md # Research findings
|
|
15
|
-
├── [name]-plan.md # Implementation plan
|
|
16
|
-
├── [name]-progress.md # Progress tracking
|
|
17
|
-
└── reports/ # Agent communication (v1.2+)
|
|
18
|
-
├── 260402-1430-from-researcher-to-planner-analysis.md
|
|
19
|
-
├── 260402-1500-from-planner-to-developer-subtask-1.md
|
|
20
|
-
└── 260402-1600-from-developer-to-reviewer-pr-ready.md
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Filename format**: `[YYMMDD-HHMM]-from-[role]-to-[role]-[description].md`
|
|
24
|
-
|
|
25
|
-
## Status Codes
|
|
26
|
-
|
|
27
|
-
| Status | Nghĩa |
|
|
28
|
-
|--------|-------|
|
|
29
|
-
| `DONE` | Hoàn thành, output sẵn sàng để dùng |
|
|
30
|
-
| `DONE_WITH_CONCERNS` | Xong nhưng có điểm đáng chú ý / cần review |
|
|
31
|
-
| `BLOCKED` | Bị chặn, cần action từ bên ngoài để tiếp tục |
|
|
32
|
-
| `NEEDS_CONTEXT` | Thiếu thông tin, cần human confirm |
|
|
33
|
-
|
|
34
|
-
## Khi Nào Tạo Report
|
|
35
|
-
|
|
36
|
-
- Sau khi `dw-research` hoàn thành → report `from-researcher-to-planner`
|
|
37
|
-
- Sau khi `dw-plan` approved → report `from-planner-to-developer`
|
|
38
|
-
- Khi phát hiện blocker trong execute → report `from-developer-to-user` với `BLOCKED`
|
|
39
|
-
- Sau khi review xong → report `from-reviewer-to-developer`
|
|
40
|
-
|
|
41
|
-
## Khi Nào KHÔNG Cần Report
|
|
42
|
-
|
|
43
|
-
- Tasks `quick` depth (≤2 files, hotfix) → không cần overhead này
|
|
44
|
-
- Solo dev, single session → progress.md đã đủ
|
|
45
|
-
- Thông tin đã có trong context.md / plan.md → không duplicate
|
|
46
|
-
|
|
47
|
-
## Template
|
|
48
|
-
|
|
49
|
-
Dùng `.claude/templates/agent-report.md`
|
|
50
|
-
|
|
51
|
-
## Lưu Ý Quan Trọng
|
|
52
|
-
|
|
53
|
-
Reports là **cho con người đọc**, không phải protocol cho AI. Claude Code đã communicate qua conversation context. Reports giúp team members theo dõi task cross-session, không phải AI-to-AI messaging.
|
|
1
|
+
# Agent Communication Protocol — dw-kit v1.2
|
|
2
|
+
|
|
3
|
+
## Mục Đích
|
|
4
|
+
|
|
5
|
+
Khi một task lớn cần nhiều "vai" khác nhau (researcher → planner → developer), việc ghi lại kết quả từng bước giúp:
|
|
6
|
+
- Team members (người hoặc agent) biết chính xác task đang ở đâu
|
|
7
|
+
- Audit trail rõ ràng: ai quyết định gì, lúc nào
|
|
8
|
+
- Session tiếp theo có thể tiếp tục mà không cần hỏi lại
|
|
9
|
+
|
|
10
|
+
## Convention: Reports Directory
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
.dw/tasks/[task-name]/
|
|
14
|
+
├── [name]-context.md # Research findings
|
|
15
|
+
├── [name]-plan.md # Implementation plan
|
|
16
|
+
├── [name]-progress.md # Progress tracking
|
|
17
|
+
└── reports/ # Agent communication (v1.2+)
|
|
18
|
+
├── 260402-1430-from-researcher-to-planner-analysis.md
|
|
19
|
+
├── 260402-1500-from-planner-to-developer-subtask-1.md
|
|
20
|
+
└── 260402-1600-from-developer-to-reviewer-pr-ready.md
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Filename format**: `[YYMMDD-HHMM]-from-[role]-to-[role]-[description].md`
|
|
24
|
+
|
|
25
|
+
## Status Codes
|
|
26
|
+
|
|
27
|
+
| Status | Nghĩa |
|
|
28
|
+
|--------|-------|
|
|
29
|
+
| `DONE` | Hoàn thành, output sẵn sàng để dùng |
|
|
30
|
+
| `DONE_WITH_CONCERNS` | Xong nhưng có điểm đáng chú ý / cần review |
|
|
31
|
+
| `BLOCKED` | Bị chặn, cần action từ bên ngoài để tiếp tục |
|
|
32
|
+
| `NEEDS_CONTEXT` | Thiếu thông tin, cần human confirm |
|
|
33
|
+
|
|
34
|
+
## Khi Nào Tạo Report
|
|
35
|
+
|
|
36
|
+
- Sau khi `dw-research` hoàn thành → report `from-researcher-to-planner`
|
|
37
|
+
- Sau khi `dw-plan` approved → report `from-planner-to-developer`
|
|
38
|
+
- Khi phát hiện blocker trong execute → report `from-developer-to-user` với `BLOCKED`
|
|
39
|
+
- Sau khi review xong → report `from-reviewer-to-developer`
|
|
40
|
+
|
|
41
|
+
## Khi Nào KHÔNG Cần Report
|
|
42
|
+
|
|
43
|
+
- Tasks `quick` depth (≤2 files, hotfix) → không cần overhead này
|
|
44
|
+
- Solo dev, single session → progress.md đã đủ
|
|
45
|
+
- Thông tin đã có trong context.md / plan.md → không duplicate
|
|
46
|
+
|
|
47
|
+
## Template
|
|
48
|
+
|
|
49
|
+
Dùng `.claude/templates/agent-report.md`
|
|
50
|
+
|
|
51
|
+
## Lưu Ý Quan Trọng
|
|
52
|
+
|
|
53
|
+
Reports là **cho con người đọc**, không phải protocol cho AI. Claude Code đã communicate qua conversation context. Reports giúp team members theo dõi task cross-session, không phải AI-to-AI messaging.
|