ai-developer-skill-os 8.2.0 → 8.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/.agents/LICENSE +21 -21
- package/.agents/README.md +90 -90
- package/.agents/docs/CHI_TIET_SKILLS.md +125 -125
- package/.agents/docs/MIGRATION-CLEANUP-V8.1.3.md +36 -36
- package/.agents/docs/MIGRATION-STATUS.md +35 -35
- package/.agents/docs/MIGRATION-V8.md +10 -10
- package/.agents/docs/V8-CERTIFICATION.md +27 -27
- package/.agents/docs/decisions/ADR-001-v8-migration.md +58 -58
- package/.agents/docs/decisions/ADR-002-workflow-separation.md +50 -50
- package/.agents/docs/decisions/ADR-003-registry-generated.md +54 -54
- package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +27 -27
- package/.agents/registry/graph.json +4 -8
- package/.agents/registry/index.yaml +3 -4
- package/.agents/registry/skills-index.yml +525 -525
- package/.agents/rules/coding.md +10 -0
- package/.agents/rules/command-safety.md +37 -14
- package/.agents/rules/priorities.yml +13 -2
- package/.agents/rules/security.md +47 -7
- package/.agents/rules/skill-quality.md +32 -8
- package/.agents/skills/_template/SKILL.md +133 -132
- package/.agents/skills/_template/capability.yaml +20 -20
- package/.agents/skills/_template/evals/scorecard.yaml +19 -19
- package/.agents/skills/qk-access-policy/SKILL.md +4 -1
- package/.agents/skills/qk-agent-observability/SKILL.md +111 -0
- package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
- package/.agents/skills/qk-ai-builder/SKILL.md +74 -5
- package/.agents/skills/qk-api-lifecycle/SKILL.md +4 -2
- package/.agents/skills/qk-bug-resolution/SKILL.md +3 -21
- package/.agents/skills/qk-code-review/SKILL.md +188 -189
- package/.agents/skills/qk-context-loader/SKILL.md +3 -47
- package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
- package/.agents/skills/qk-db-optimizer/SKILL.md +3 -2
- package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
- package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
- package/.agents/skills/qk-docs/SKILL.md +3 -1
- package/.agents/skills/qk-engineering-standard/SKILL.md +4 -75
- package/.agents/skills/qk-engineering-standard/references/anti-patterns.md +121 -0
- package/.agents/skills/qk-engineering-standard/rules/frontend.md +1 -1
- package/.agents/skills/qk-fe-api-integration/SKILL.md +13 -32
- package/.agents/skills/qk-feature-delivery/SKILL.md +54 -202
- package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
- package/.agents/skills/qk-help/SKILL.md +21 -159
- package/.agents/skills/qk-orchestrator/SKILL.md +2 -78
- package/.agents/skills/qk-orchestrator/references/routing-table.md +15 -3
- package/.agents/skills/qk-product-specification/SKILL.md +253 -130
- package/.agents/skills/qk-production-release/SKILL.md +32 -67
- package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
- package/.agents/skills/qk-project-health/SKILL.md +4 -2
- package/.agents/skills/qk-project-memory/SKILL.md +3 -1
- package/.agents/skills/qk-security-audit/SKILL.md +259 -135
- package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
- package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
- package/.agents/skills/qk-ui-audit/SKILL.md +16 -89
- package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +2 -2
- package/.agents/skills/qk-ui-builder/SKILL.md +482 -509
- package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
- package/.agents/skills/qk-ui-system-builder/SKILL.md +1 -5
- package/.agents/skills/qk-validation-gate/SKILL.md +0 -74
- package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
- package/.agents/workflows/_schema.yml +146 -109
- package/.agents/workflows/bug-resolution.yml +121 -101
- package/.agents/workflows/code-review.yml +93 -77
- package/.agents/workflows/documentation.yml +90 -75
- package/.agents/workflows/feature-delivery.yml +120 -103
- package/.agents/workflows/refactor.yml +99 -81
- package/.agents/workflows/research.yml +75 -60
- package/.agents/workflows/security-audit.yml +115 -72
- package/.agents/workflows/skill-evolution.yml +97 -65
- package/.agents/workflows/spec-driven-development.yml +87 -57
- package/CHANGELOG.md +10 -0
- package/README.md +90 -90
- package/bin/install.js +330 -180
- package/package.json +2 -2
- package/.agents/CHANGELOG.md +0 -131
- package/.agents/learnings/draft/README.md +0 -37
- package/.agents/reports/RELEASE-CHECKLIST.md +0 -29
- package/.agents/reports/architecture-audit.md +0 -13
- package/.agents/reports/graph-health.md +0 -20
- package/.agents/reports/skill-audit.md +0 -215
|
@@ -1,77 +1,93 @@
|
|
|
1
|
-
name: code-review
|
|
2
|
-
version: 8.0.0
|
|
3
|
-
description: "Pipeline kiểm tra chất lượng code theo SOLID, DRY, Clean Code và ngưỡng số liệu cụ thể."
|
|
4
|
-
|
|
5
|
-
owner:
|
|
6
|
-
type: engineering
|
|
7
|
-
maintained_by: qk-team
|
|
8
|
-
|
|
9
|
-
verification_profile: review
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- id:
|
|
25
|
-
name: "
|
|
26
|
-
purpose: "
|
|
27
|
-
required: true
|
|
28
|
-
skip_if:
|
|
29
|
-
inputs:
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
name: code-review
|
|
2
|
+
version: 8.0.0
|
|
3
|
+
description: "Pipeline kiểm tra chất lượng code theo SOLID, DRY, Clean Code và ngưỡng số liệu cụ thể."
|
|
4
|
+
|
|
5
|
+
owner:
|
|
6
|
+
type: engineering
|
|
7
|
+
maintained_by: qk-team
|
|
8
|
+
|
|
9
|
+
verification_profile: review
|
|
10
|
+
|
|
11
|
+
triggers:
|
|
12
|
+
- "review code"
|
|
13
|
+
- "review this"
|
|
14
|
+
- "đánh giá code"
|
|
15
|
+
- "kiểm tra chất lượng code"
|
|
16
|
+
- "check this PR"
|
|
17
|
+
- "pull request review"
|
|
18
|
+
|
|
19
|
+
ide_binding:
|
|
20
|
+
slash_command: "/review"
|
|
21
|
+
aliases: ["/code-review", "/pr-review"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- id: scope
|
|
25
|
+
name: "Xác định phạm vi review"
|
|
26
|
+
purpose: "Biết chính xác files/modules cần review"
|
|
27
|
+
required: true
|
|
28
|
+
skip_if: "Files đã được chỉ định rõ ràng"
|
|
29
|
+
inputs:
|
|
30
|
+
- target_files_or_module
|
|
31
|
+
outputs:
|
|
32
|
+
- file_list
|
|
33
|
+
- review_focus # bug, quality, security, performance, all
|
|
34
|
+
exit_on_fail: BLOCKED
|
|
35
|
+
|
|
36
|
+
- id: static_analysis
|
|
37
|
+
name: "Phân tích tĩnh"
|
|
38
|
+
purpose: "Thu thập findings có bằng chứng rõ ràng"
|
|
39
|
+
required: true
|
|
40
|
+
skip_if: null
|
|
41
|
+
inputs:
|
|
42
|
+
- file_list
|
|
43
|
+
- review_focus
|
|
44
|
+
outputs:
|
|
45
|
+
- findings # Each: severity + file + line + quote + reason + suggestion
|
|
46
|
+
min_confidence: HIGH
|
|
47
|
+
context_budget: 150
|
|
48
|
+
actions:
|
|
49
|
+
- "Đọc từng file theo budget (max 150 lines per read)"
|
|
50
|
+
- "Flag SOLID violations với ngưỡng cụ thể"
|
|
51
|
+
- "Flag DRY violations (≥ 2 duplications)"
|
|
52
|
+
- "Flag naming violations"
|
|
53
|
+
- "Flag error handling issues"
|
|
54
|
+
|
|
55
|
+
- id: severity_triage
|
|
56
|
+
name: "Phân loại mức độ"
|
|
57
|
+
purpose: "Xếp findings theo priority để human biết fix gì trước"
|
|
58
|
+
required: true
|
|
59
|
+
skip_if: null
|
|
60
|
+
inputs:
|
|
61
|
+
- findings
|
|
62
|
+
outputs:
|
|
63
|
+
- critical_findings # Must fix: security, data loss risk
|
|
64
|
+
- high_findings # Should fix: logic bugs, architecture violations
|
|
65
|
+
- medium_findings # Consider: quality improvements
|
|
66
|
+
- low_findings # Optional: style, minor naming
|
|
67
|
+
actions:
|
|
68
|
+
- "Áp dụng severity matrix: CRITICAL > HIGH > MEDIUM > LOW"
|
|
69
|
+
- "Không inflate severity để look impressive"
|
|
70
|
+
|
|
71
|
+
- id: report
|
|
72
|
+
name: "Tổng hợp báo cáo"
|
|
73
|
+
purpose: "Cung cấp báo cáo actionable cho developer"
|
|
74
|
+
required: true
|
|
75
|
+
skip_if: null
|
|
76
|
+
inputs:
|
|
77
|
+
- critical_findings
|
|
78
|
+
- high_findings
|
|
79
|
+
- medium_findings
|
|
80
|
+
outputs:
|
|
81
|
+
- review_report # Structured markdown report
|
|
82
|
+
- health_score # 0-100
|
|
83
|
+
actions:
|
|
84
|
+
- "Group findings theo file"
|
|
85
|
+
- "Mỗi finding: file:line + code quote + explanation + suggestion"
|
|
86
|
+
- "Đánh giá mức độ tuân thủ R-C-09 (Zero-Slop)"
|
|
87
|
+
- "Đánh giá rủi ro R-SEC-04"
|
|
88
|
+
- "Ghi log execution trace vào evals/traces/"
|
|
89
|
+
- "Tính health score: 100 - (critical×20 + high×10 + medium×3 + low×1)"
|
|
90
|
+
|
|
91
|
+
escalation:
|
|
92
|
+
max_retries: 1
|
|
93
|
+
on_failure: "Report partial findings với số files đã review / tổng"
|
|
@@ -1,75 +1,90 @@
|
|
|
1
|
-
name: documentation
|
|
2
|
-
version: 8.0.0
|
|
3
|
-
description: "Pipeline viết và cập nhật tài liệu chính xác — phải match code thực tế, cấm bịa đặt."
|
|
4
|
-
|
|
5
|
-
owner:
|
|
6
|
-
type: engineering
|
|
7
|
-
maintained_by: qk-team
|
|
8
|
-
|
|
9
|
-
verification_profile: documentation
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
outputs:
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
- "
|
|
70
|
-
- "
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
name: documentation
|
|
2
|
+
version: 8.0.0
|
|
3
|
+
description: "Pipeline viết và cập nhật tài liệu chính xác — phải match code thực tế, cấm bịa đặt."
|
|
4
|
+
|
|
5
|
+
owner:
|
|
6
|
+
type: engineering
|
|
7
|
+
maintained_by: qk-team
|
|
8
|
+
|
|
9
|
+
verification_profile: documentation
|
|
10
|
+
|
|
11
|
+
triggers:
|
|
12
|
+
- "write docs"
|
|
13
|
+
- "viết tài liệu"
|
|
14
|
+
- "update README"
|
|
15
|
+
- "cập nhật docs"
|
|
16
|
+
- "document this"
|
|
17
|
+
- "add documentation"
|
|
18
|
+
|
|
19
|
+
ide_binding:
|
|
20
|
+
slash_command: "/docs"
|
|
21
|
+
aliases: ["/document", "/readme"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- id: audit_existing
|
|
25
|
+
name: "Kiểm tra tài liệu hiện tại"
|
|
26
|
+
purpose: "Xác định docs nào cần tạo mới, cập nhật, hay xóa"
|
|
27
|
+
required: true
|
|
28
|
+
skip_if: "Task là tạo doc mới hoàn toàn"
|
|
29
|
+
inputs:
|
|
30
|
+
- target_docs
|
|
31
|
+
- relevant_code
|
|
32
|
+
outputs:
|
|
33
|
+
- outdated_sections # Sections that no longer match code
|
|
34
|
+
- missing_sections # Things in code but not in docs
|
|
35
|
+
- accurate_sections # Keep as-is
|
|
36
|
+
|
|
37
|
+
- id: read_source
|
|
38
|
+
name: "Đọc source code"
|
|
39
|
+
purpose: "Hiểu chính xác behavior của code trước khi viết về nó"
|
|
40
|
+
required: true
|
|
41
|
+
skip_if: null
|
|
42
|
+
inputs:
|
|
43
|
+
- relevant_code_files
|
|
44
|
+
outputs:
|
|
45
|
+
- verified_behavior # What the code actually does
|
|
46
|
+
- api_signatures # Function signatures, types, params
|
|
47
|
+
- examples_from_code # Real usage examples found in codebase
|
|
48
|
+
min_confidence: HIGH
|
|
49
|
+
context_budget: 200
|
|
50
|
+
actions:
|
|
51
|
+
- "Đọc implementation, không chỉ interface"
|
|
52
|
+
- "Xác nhận examples từ test files nếu có"
|
|
53
|
+
- "Không assume behavior — phải verify từ code"
|
|
54
|
+
|
|
55
|
+
- id: write
|
|
56
|
+
name: "Viết tài liệu"
|
|
57
|
+
purpose: "Tạo tài liệu chính xác và hữu ích"
|
|
58
|
+
required: true
|
|
59
|
+
skip_if: null
|
|
60
|
+
inputs:
|
|
61
|
+
- verified_behavior
|
|
62
|
+
- api_signatures
|
|
63
|
+
- examples_from_code
|
|
64
|
+
outputs:
|
|
65
|
+
- draft_documentation
|
|
66
|
+
actions:
|
|
67
|
+
- "Chỉ viết những gì đã verify từ code"
|
|
68
|
+
- "Dùng examples thật từ codebase"
|
|
69
|
+
- "Đảm bảo docs tuân thủ R-C-09 (không có slop text)"
|
|
70
|
+
- "Structure: What → Why → How → Examples"
|
|
71
|
+
|
|
72
|
+
- id: verify_accuracy
|
|
73
|
+
name: "Xác minh độ chính xác"
|
|
74
|
+
purpose: "Đảm bảo doc không có thông tin sai hoặc lỗi thời"
|
|
75
|
+
required: true
|
|
76
|
+
skip_if: null
|
|
77
|
+
inputs:
|
|
78
|
+
- draft_documentation
|
|
79
|
+
- verified_behavior
|
|
80
|
+
outputs:
|
|
81
|
+
- accuracy_check # PASS | FAIL with specific issues
|
|
82
|
+
actions:
|
|
83
|
+
- "So sánh từng claim trong doc với code thực tế"
|
|
84
|
+
- "Flag bất kỳ thứ gì không thể verify từ code"
|
|
85
|
+
- "Ghi log execution trace vào evals/traces/"
|
|
86
|
+
exit_on_fail: FAILED
|
|
87
|
+
|
|
88
|
+
escalation:
|
|
89
|
+
max_retries: 1
|
|
90
|
+
on_failure: "Report which sections could not be verified. Do not publish unverified content."
|
|
@@ -1,103 +1,120 @@
|
|
|
1
|
-
name: feature-delivery
|
|
2
|
-
version: 8.0.0
|
|
3
|
-
description: "Pipeline end-to-end để phát triển tính năng mới: từ requirement đến verified implementation."
|
|
4
|
-
|
|
5
|
-
owner:
|
|
6
|
-
type: engineering
|
|
7
|
-
maintained_by: qk-team
|
|
8
|
-
|
|
9
|
-
verification_profile: feature
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
- "
|
|
97
|
-
- "
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
name: feature-delivery
|
|
2
|
+
version: 8.0.0
|
|
3
|
+
description: "Pipeline end-to-end để phát triển tính năng mới: từ requirement đến verified implementation."
|
|
4
|
+
|
|
5
|
+
owner:
|
|
6
|
+
type: engineering
|
|
7
|
+
maintained_by: qk-team
|
|
8
|
+
|
|
9
|
+
verification_profile: feature
|
|
10
|
+
|
|
11
|
+
triggers:
|
|
12
|
+
- "add feature"
|
|
13
|
+
- "thêm tính năng"
|
|
14
|
+
- "implement feature"
|
|
15
|
+
- "build a new"
|
|
16
|
+
- "new component"
|
|
17
|
+
- "làm tính năng mới"
|
|
18
|
+
|
|
19
|
+
ide_binding:
|
|
20
|
+
slash_command: "/feature"
|
|
21
|
+
aliases: ["/build", "/implement"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- id: requirement
|
|
25
|
+
name: "Phân tích yêu cầu"
|
|
26
|
+
purpose: "Xác định rõ feature cần làm gì, cho ai, thành công trông như thế nào"
|
|
27
|
+
required: true
|
|
28
|
+
skip_if: null
|
|
29
|
+
inputs:
|
|
30
|
+
- user_description
|
|
31
|
+
- existing_context
|
|
32
|
+
outputs:
|
|
33
|
+
- feature_scope # What's in, what's out
|
|
34
|
+
- acceptance_criteria # How to know it's done
|
|
35
|
+
- affected_areas # Which parts of codebase are touched
|
|
36
|
+
min_confidence: HIGH
|
|
37
|
+
actions:
|
|
38
|
+
- "Viết lại requirement bằng ngôn ngữ kỹ thuật"
|
|
39
|
+
- "Xác định acceptance criteria rõ ràng"
|
|
40
|
+
- "Identify files/modules sẽ bị ảnh hưởng"
|
|
41
|
+
exit_on_fail: BLOCKED
|
|
42
|
+
|
|
43
|
+
- id: context
|
|
44
|
+
name: "Load context"
|
|
45
|
+
purpose: "Hiểu codebase hiện tại đủ để implement đúng cách"
|
|
46
|
+
required: true
|
|
47
|
+
skip_if: "Context graph đã có từ qk-context-loader"
|
|
48
|
+
inputs:
|
|
49
|
+
- affected_areas
|
|
50
|
+
outputs:
|
|
51
|
+
- existing_patterns # How similar things are done in this codebase
|
|
52
|
+
- integration_points # Where new code will connect
|
|
53
|
+
- constraints # Tech stack, conventions to follow
|
|
54
|
+
actions:
|
|
55
|
+
- "Đọc các file liên quan (targeted, không đọc toàn bộ)"
|
|
56
|
+
- "Tìm pattern tương tự trong codebase"
|
|
57
|
+
- "Xác định integration points"
|
|
58
|
+
|
|
59
|
+
- id: design
|
|
60
|
+
name: "Thiết kế solution"
|
|
61
|
+
purpose: "Quyết định approach trước khi code"
|
|
62
|
+
required: true
|
|
63
|
+
skip_if: "Feature đơn giản, single file, no design decision needed"
|
|
64
|
+
inputs:
|
|
65
|
+
- feature_scope
|
|
66
|
+
- existing_patterns
|
|
67
|
+
- constraints
|
|
68
|
+
outputs:
|
|
69
|
+
- implementation_plan # Files to create/modify + what changes
|
|
70
|
+
- data_structures # New types, interfaces if needed
|
|
71
|
+
- api_contract # If adding/changing API
|
|
72
|
+
min_confidence: HIGH
|
|
73
|
+
actions:
|
|
74
|
+
- "Outline: files to create, files to modify"
|
|
75
|
+
- "Define data structures và types"
|
|
76
|
+
- "Xác định API contract nếu cần"
|
|
77
|
+
human_checkpoint:
|
|
78
|
+
condition: "affected_areas thuộc complexity level 'high' hoặc 'critical' (5+ files, có external dependency hoặc breaking change)"
|
|
79
|
+
message: "Feature này có độ phức tạp cao. Xác nhận implementation_plan trước khi bắt đầu code."
|
|
80
|
+
- id: implement
|
|
81
|
+
name: "Implement"
|
|
82
|
+
purpose: "Viết code theo design đã approved"
|
|
83
|
+
required: true
|
|
84
|
+
skip_if: null
|
|
85
|
+
inputs:
|
|
86
|
+
- implementation_plan
|
|
87
|
+
- existing_patterns
|
|
88
|
+
outputs:
|
|
89
|
+
- created_files
|
|
90
|
+
- modified_files
|
|
91
|
+
- implementation_summary
|
|
92
|
+
actions:
|
|
93
|
+
- "Implement theo thứ tự: types → logic → UI → tests"
|
|
94
|
+
- "Follow existing patterns và conventions"
|
|
95
|
+
- "Code phải tuân thủ nghiêm ngặt R-C-09 (Zero-Slop)"
|
|
96
|
+
- "Phải validate input/output theo R-SEC-04"
|
|
97
|
+
- "Không refactor ngoài scope"
|
|
98
|
+
|
|
99
|
+
- id: verify
|
|
100
|
+
name: "Verify implementation"
|
|
101
|
+
purpose: "Xác nhận feature hoạt động đúng theo acceptance criteria"
|
|
102
|
+
required: true
|
|
103
|
+
skip_if: null
|
|
104
|
+
inputs:
|
|
105
|
+
- acceptance_criteria
|
|
106
|
+
- created_files
|
|
107
|
+
- modified_files
|
|
108
|
+
outputs:
|
|
109
|
+
- verification_result
|
|
110
|
+
- unmet_criteria # Any criteria not yet met
|
|
111
|
+
actions:
|
|
112
|
+
- "Đối chiếu từng acceptance criterion"
|
|
113
|
+
- "Re-read key implementation sections"
|
|
114
|
+
- "Run tests nếu có"
|
|
115
|
+
- "Ghi log execution trace vào evals/traces/"
|
|
116
|
+
exit_on_fail: PARTIAL
|
|
117
|
+
|
|
118
|
+
escalation:
|
|
119
|
+
max_retries: 1
|
|
120
|
+
on_failure: "Report implementation_plan + what was completed + what remains + blocker reason"
|