ai-developer-skill-os 5.0.0 → 6.0.1
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/README.md +10 -10
- package/_template/BEHAVIOR_SPEC.md +96 -0
- package/docs/GOVERNANCE.md +1 -1
- package/fix_seeds.js +22 -0
- package/framework/KERNEL.md +65 -40
- package/framework/decision-primitives.md +47 -0
- package/migrate-to-v6.js +130 -0
- package/migrate.js +147 -0
- package/migrate.py +133 -0
- package/migrate_all.cjs +96 -0
- package/package.json +2 -2
- package/skills/qk-access-policy/SKILL.md +18 -40
- package/skills/qk-ai-builder/SKILL.md +20 -40
- package/skills/qk-api-lifecycle/SKILL.md +22 -41
- package/skills/qk-bug-resolution/SKILL.md +22 -40
- package/skills/qk-context-loader/SKILL.md +19 -39
- package/skills/qk-data-lifecycle/SKILL.md +19 -40
- package/skills/qk-db-optimizer/SKILL.md +19 -40
- package/skills/qk-design-to-code/SKILL.md +20 -41
- package/skills/qk-docs/SKILL.md +20 -40
- package/skills/qk-engineering-standard/SKILL.md +21 -40
- package/skills/qk-feature-delivery/SKILL.md +22 -40
- package/skills/qk-help/SKILL.md +18 -36
- package/skills/qk-orchestrator/SKILL.md +18 -41
- package/skills/qk-policy-engine/SKILL.md +18 -38
- package/skills/qk-production-release/SKILL.md +18 -39
- package/skills/qk-project-bootstrap/SKILL.md +20 -41
- package/skills/qk-project-health/SKILL.md +20 -40
- package/skills/qk-project-memory/SKILL.md +19 -40
- package/skills/qk-system-evolution/SKILL.md +19 -40
- package/skills/qk-ui-audit/SKILL.md +19 -41
- package/skills/qk-ui-system-builder/SKILL.md +18 -39
- package/skills/qk-validation-gate/SKILL.md +20 -38
- package/specs/contracts/behavior-contract.yaml +40 -0
- package/specs/expectations/qk-bug-resolution.yaml +35 -0
- package/specs/scenarios/fix-login-nullref.yaml +3 -0
- package/tests/behavior-conformance.test.js +151 -0
- package/_template/SKILL.md +0 -58
- package/tests/spec-compliance.test.js +0 -193
|
@@ -1,56 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-production-release
|
|
3
|
-
version: 5.0.0
|
|
4
|
-
updated: 2026-07-03
|
|
5
|
-
description: Chuẩn bị codebase để phát hành lên production (Build, CI/CD, Security).
|
|
6
3
|
category: devops
|
|
7
|
-
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-production-release
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Preparing codebase for production release including Build, CI/CD, and Security checks (Plan & Govern)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Chạy kiểm tra chất lượng cuối cùng trước khi build.
|
|
20
|
-
- ❌ Do NOT tự tay deploy lên Production server mà không hỏi ý kiến.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
- ship-check
|
|
14
|
+
must:
|
|
15
|
+
- Verify that all tests pass and linters are clean
|
|
16
|
+
- Check for exposed secrets or misconfigurations
|
|
17
|
+
must_not:
|
|
18
|
+
- Deploy code that fails security audits
|
|
32
19
|
```
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
21
|
+
## Policies
|
|
37
22
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
23
|
+
prefer:
|
|
24
|
+
- Immutable artifacts and deterministic builds
|
|
40
25
|
```
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
27
|
+
## Escalation
|
|
45
28
|
```yaml
|
|
46
|
-
|
|
47
|
-
-
|
|
29
|
+
stop:
|
|
30
|
+
- Security vulnerabilities or critical test failures are detected
|
|
48
31
|
```
|
|
49
32
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## 🛫 Ship Criteria
|
|
53
|
-
```yaml
|
|
54
|
-
Rules:
|
|
55
|
-
- id: end-to-end-validation
|
|
33
|
+
## Output
|
|
34
|
+
- Release checklist and deployment readiness status
|
|
56
35
|
```
|
|
@@ -1,57 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-project-bootstrap
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description: Khởi tạo dự án mới với các best practices, linters, và cấu trúc thư mục chuẩn.
|
|
6
|
-
category: setup
|
|
7
|
-
tags: [bootstrap, scaffolding, setup, init]
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
3
|
+
category: fullstack
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-project-bootstrap
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Initializing new projects with best practices (Execute)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Setup dự án mới từ đầu.
|
|
20
|
-
- ❌ Do NOT khởi tạo với cấu hình lỏng lẻo (Linter tắt).
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
14
|
+
must:
|
|
15
|
+
- Setup linters, formatters, and standard directory structures
|
|
16
|
+
- Follow the organization's existing templates if available
|
|
17
|
+
must_not:
|
|
18
|
+
- Hardcode outdated dependency versions
|
|
19
|
+
- Skip adding basic README instructions
|
|
32
20
|
```
|
|
33
21
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
22
|
+
## Policies
|
|
37
23
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
- id: complexity-budget
|
|
24
|
+
prefer:
|
|
25
|
+
- Standard tooling over custom scripts
|
|
41
26
|
```
|
|
42
27
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
28
|
+
## Escalation
|
|
46
29
|
```yaml
|
|
47
|
-
|
|
48
|
-
-
|
|
30
|
+
ask:
|
|
31
|
+
- To clarify preferred framework/language if not specified
|
|
49
32
|
```
|
|
50
33
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## 🛫 Ship Criteria
|
|
54
|
-
```yaml
|
|
55
|
-
Rules:
|
|
56
|
-
- id: no-unnecessary-dependencies
|
|
34
|
+
## Output
|
|
35
|
+
- Bootstrapped repository structure
|
|
57
36
|
```
|
|
@@ -1,56 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-project-health
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description: Kiểm toán toàn diện về Code Smells, Tech Debt, và Architecture.
|
|
6
|
-
category: architecture
|
|
7
|
-
tags: [audit, architecture, tech-debt, code-smell]
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
3
|
+
category: maintenance
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-project-health
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Comprehensive auditing of Code Smells, Tech Debt, and Architecture (Diagnose & Evaluate)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Phân tích tech debt và code smells.
|
|
20
|
-
- ❌ Do NOT bắt lỗi thụt lề, khoảng trắng (Việc của linter).
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
14
|
+
must:
|
|
15
|
+
- Analyze dependency graphs and code complexity metrics
|
|
16
|
+
- Highlight architectural anti-patterns
|
|
17
|
+
must_not:
|
|
18
|
+
- Rewrite major components without user consent
|
|
19
|
+
- Focus purely on stylistic lints (leave that to linter)
|
|
32
20
|
```
|
|
33
21
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
22
|
+
## Policies
|
|
37
23
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
24
|
+
prefer:
|
|
25
|
+
- Structural and performance improvements over minor refactors
|
|
40
26
|
```
|
|
41
27
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
28
|
+
## Escalation
|
|
45
29
|
```yaml
|
|
46
|
-
|
|
47
|
-
-
|
|
30
|
+
stop:
|
|
31
|
+
- The project lacks basic structure making analysis impossible
|
|
48
32
|
```
|
|
49
33
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## 🛫 Ship Criteria
|
|
53
|
-
```yaml
|
|
54
|
-
Rules:
|
|
55
|
-
- id: delegation-only # (Chỉ đọc và tư vấn, cấm tự ý đổi code)
|
|
34
|
+
## Output
|
|
35
|
+
- Health report and refactoring plan
|
|
56
36
|
```
|
|
@@ -1,56 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-project-memory
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description: Lưu trữ và truy xuất ngữ cảnh dự án dài hạn qua các phiên làm việc.
|
|
6
|
-
category: utilities
|
|
7
|
-
tags: [memory, context, storage]
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
3
|
+
category: core
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-project-memory
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Storing and retrieving long-term project context across sessions (Collect)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Lưu trữ các Rule, ADR, và cấu hình bất biến vào memory.
|
|
20
|
-
- ❌ Do NOT dump toàn bộ file mã nguồn hoặc hội thoại vào memory gây phình to token.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
- ship-check
|
|
14
|
+
must:
|
|
15
|
+
- Organize context logically so it can be retrieved efficiently
|
|
16
|
+
- Update memory artifacts when major architectural decisions are made
|
|
17
|
+
must_not:
|
|
18
|
+
- Store sensitive user data or secrets in project memory
|
|
32
19
|
```
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
21
|
+
## Policies
|
|
37
22
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
23
|
+
prefer:
|
|
24
|
+
- Concise summaries over verbose logs for long-term memory
|
|
40
25
|
```
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
27
|
+
## Escalation
|
|
45
28
|
```yaml
|
|
46
|
-
|
|
47
|
-
-
|
|
29
|
+
ask:
|
|
30
|
+
- To clarify contradictory information found in the project memory
|
|
48
31
|
```
|
|
49
32
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## 🛫 Ship Criteria
|
|
53
|
-
```yaml
|
|
54
|
-
Rules:
|
|
55
|
-
- id: minimal-diff
|
|
33
|
+
## Output
|
|
34
|
+
- Updated memory artifacts
|
|
56
35
|
```
|
|
@@ -1,56 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-system-evolution
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description: Cập nhật an toàn các thư viện dependencies, di chuyển frameworks và quản lý quá trình rollback.
|
|
6
|
-
category: operations
|
|
7
|
-
tags: [upgrade, migration, devops, dependencies]
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
3
|
+
category: infrastructure
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-system-evolution
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Safely updating dependencies, migrating frameworks, and managing rollbacks (Plan & Execute)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Nâng cấp dependencies và xử lý breaking changes.
|
|
20
|
-
- ❌ Do NOT xóa file lock tuỳ tiện hoặc cập nhật `latest` mù quáng.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
- ship-check
|
|
14
|
+
must:
|
|
15
|
+
- Check compatibility matrices before upgrading dependencies
|
|
16
|
+
- Provide a rollback plan for major framework updates
|
|
17
|
+
must_not:
|
|
18
|
+
- Perform destructive migrations without a backup strategy
|
|
32
19
|
```
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
21
|
+
## Policies
|
|
37
22
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
23
|
+
prefer:
|
|
24
|
+
- Incremental updates over 'big bang' migrations
|
|
40
25
|
```
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
27
|
+
## Escalation
|
|
45
28
|
```yaml
|
|
46
|
-
|
|
47
|
-
-
|
|
29
|
+
stop:
|
|
30
|
+
- Critical dependencies are completely incompatible with the target framework version
|
|
48
31
|
```
|
|
49
32
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## 🛫 Ship Criteria
|
|
53
|
-
```yaml
|
|
54
|
-
Rules:
|
|
55
|
-
- id: end-to-end-validation
|
|
33
|
+
## Output
|
|
34
|
+
- Migration scripts, updated package files, and rollback plans
|
|
56
35
|
```
|
|
@@ -1,57 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-ui-audit
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description: Kiểm toán giao diện (UI) để đảm bảo tính nhất quán, khả năng truy cập (A11y), độ phản hồi (Responsive) và hiệu suất.
|
|
6
|
-
category: validation
|
|
7
|
-
tags: [ui, audit, frontend, a11y, responsive]
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
3
|
+
category: qa
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-ui-audit
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- UI consistency, accessibility (A11y), responsiveness, and performance auditing (Evaluate)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Audit UI/UX, rà soát Design Tokens, A11y, và Responsive.
|
|
20
|
-
- ❌ Do NOT tự tiện sửa code trừ khi user ra lệnh.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
- ship-check
|
|
14
|
+
must:
|
|
15
|
+
- Check UI against established design tokens and guidelines
|
|
16
|
+
- Verify ARIA roles and contrast ratios
|
|
17
|
+
must_not:
|
|
18
|
+
- Ignore mobile viewport constraints
|
|
32
19
|
```
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
21
|
+
## Policies
|
|
37
22
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
- id: strictness
|
|
23
|
+
prefer:
|
|
24
|
+
- Identifying systemic UI issues over isolated pixel tweaks
|
|
41
25
|
```
|
|
42
26
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
27
|
+
## Escalation
|
|
46
28
|
```yaml
|
|
47
|
-
|
|
48
|
-
-
|
|
29
|
+
stop:
|
|
30
|
+
- UI components completely lack semantic structure
|
|
49
31
|
```
|
|
50
32
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## 🛫 Ship Criteria
|
|
54
|
-
```yaml
|
|
55
|
-
Rules:
|
|
56
|
-
- id: delegation-only # (Chỉ đọc và Report)
|
|
33
|
+
## Output
|
|
34
|
+
- UI audit report with actionable fixes
|
|
57
35
|
```
|
|
@@ -1,56 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-ui-system-builder
|
|
3
|
-
version: 5.0.0
|
|
4
|
-
updated: 2026-07-03
|
|
5
|
-
description: Xây dựng và duy trì Design Systems, Token extraction, và các thư viện UI dùng chung.
|
|
6
3
|
category: frontend
|
|
7
|
-
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-ui-system-builder
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Building and maintaining Design Systems and shared UI tokens (Plan & Execute)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Xây dựng Shared Components (Dumb components).
|
|
20
|
-
- ❌ Do NOT nhét logic API hoặc Fetch data vào core component.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
- ship-check
|
|
14
|
+
must:
|
|
15
|
+
- Extract reusable design tokens (colors, spacing, typography)
|
|
16
|
+
- Ensure components are accessible (A11y)
|
|
17
|
+
must_not:
|
|
18
|
+
- Create duplicate tokens for the same visual value
|
|
32
19
|
```
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## 🎛️ Dials (Hành vi)
|
|
21
|
+
## Policies
|
|
37
22
|
```yaml
|
|
38
|
-
|
|
39
|
-
-
|
|
23
|
+
prefer:
|
|
24
|
+
- Composable components over rigid layouts
|
|
40
25
|
```
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
27
|
+
## Escalation
|
|
45
28
|
```yaml
|
|
46
|
-
|
|
47
|
-
-
|
|
29
|
+
stop:
|
|
30
|
+
- Design tokens conflict with existing design guidelines
|
|
48
31
|
```
|
|
49
32
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## 🛫 Ship Criteria
|
|
53
|
-
```yaml
|
|
54
|
-
Rules:
|
|
55
|
-
- id: end-to-end-validation
|
|
33
|
+
## Output
|
|
34
|
+
- UI component library or Design System tokens
|
|
56
35
|
```
|
|
@@ -1,54 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-validation-gate
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description: Cổng kiểm tra chất lượng bắt buộc (Test, Lint, Security).
|
|
6
|
-
category: validation
|
|
7
|
-
tags: [ci, testing, linting, security, gatekeeper]
|
|
8
|
-
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
3
|
+
category: qa
|
|
4
|
+
version: 6.0.0
|
|
9
5
|
---
|
|
10
6
|
|
|
11
|
-
#
|
|
7
|
+
# qk-validation-gate
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
## Scope
|
|
10
|
+
- Mandatory quality checks (Test, Lint, Security) before merge/commit (Evaluate)
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## 🎯 Mission (Scope)
|
|
19
|
-
- ✅ Chạy các lệnh kiểm định (Test, Lint) thực tế.
|
|
20
|
-
- ❌ Do NOT giả vờ là test đã pass mà không gọi tool CLI.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ⚙️ Capabilities (Cognitive Pipeline)
|
|
12
|
+
## Constraints
|
|
25
13
|
```yaml
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
14
|
+
must:
|
|
15
|
+
- Verify acceptance criteria and test coverage
|
|
16
|
+
- Fail early if critical errors or lint violations are found
|
|
17
|
+
must_not:
|
|
18
|
+
- Approve incomplete work or failing tests
|
|
19
|
+
- Bypass security scans
|
|
30
20
|
```
|
|
31
21
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## 🎛️ Dials (Hành vi)
|
|
22
|
+
## Policies
|
|
35
23
|
```yaml
|
|
36
|
-
|
|
37
|
-
-
|
|
24
|
+
prefer:
|
|
25
|
+
- Automated testing over manual verification
|
|
38
26
|
```
|
|
39
27
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## 🛡️ Biases (Sửa lỗi mặc định)
|
|
28
|
+
## Escalation
|
|
43
29
|
```yaml
|
|
44
|
-
|
|
45
|
-
-
|
|
30
|
+
stop:
|
|
31
|
+
- Artifact is absent or tests are failing
|
|
46
32
|
```
|
|
47
33
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## 🛫 Ship Criteria
|
|
51
|
-
```yaml
|
|
52
|
-
Rules:
|
|
53
|
-
- id: end-to-end-validation
|
|
34
|
+
## Output
|
|
35
|
+
- Pass/Fail decision and validation report
|
|
54
36
|
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Tập hợp tất cả các Behavior Contracts của hệ thống
|
|
2
|
+
# Đây là "Source of Truth" để các bài test đối chiếu.
|
|
3
|
+
|
|
4
|
+
bug-resolution:
|
|
5
|
+
must:
|
|
6
|
+
- ask_for_logs_when_missing
|
|
7
|
+
- avoid_large_refactor
|
|
8
|
+
- preserve_api
|
|
9
|
+
prefer:
|
|
10
|
+
- smallest_change
|
|
11
|
+
- deterministic_fix
|
|
12
|
+
never:
|
|
13
|
+
- invent_root_cause
|
|
14
|
+
- fabricate_test_result
|
|
15
|
+
|
|
16
|
+
feature-delivery:
|
|
17
|
+
must:
|
|
18
|
+
- minimize_scope
|
|
19
|
+
- preserve_behavior
|
|
20
|
+
- verify_regression
|
|
21
|
+
- handle_ui_states
|
|
22
|
+
prefer:
|
|
23
|
+
- clean_code
|
|
24
|
+
never:
|
|
25
|
+
- redesign_architecture
|
|
26
|
+
- rewrite_core_module
|
|
27
|
+
|
|
28
|
+
access-policy:
|
|
29
|
+
must:
|
|
30
|
+
- block_api
|
|
31
|
+
- enforce_rbac
|
|
32
|
+
never:
|
|
33
|
+
- ui_only_security
|
|
34
|
+
|
|
35
|
+
engineering-standard:
|
|
36
|
+
must:
|
|
37
|
+
- maintain_readability
|
|
38
|
+
- pass_linter
|
|
39
|
+
never:
|
|
40
|
+
- change_business_logic
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
behavior: qk-bug-resolution
|
|
2
|
+
|
|
3
|
+
must:
|
|
4
|
+
- gather_context_before_proposing
|
|
5
|
+
- require_stack_trace
|
|
6
|
+
- minimize_scope
|
|
7
|
+
- preserve_public_api
|
|
8
|
+
- evaluate_regression_risk
|
|
9
|
+
- communicate_user_intent
|
|
10
|
+
- ask_only_necessary_questions
|
|
11
|
+
- explain_decisions_in_user_language
|
|
12
|
+
|
|
13
|
+
prefer:
|
|
14
|
+
- write_reproduction_steps
|
|
15
|
+
- identify_root_cause
|
|
16
|
+
- add_regression_test
|
|
17
|
+
|
|
18
|
+
must_not:
|
|
19
|
+
- rewrite_module
|
|
20
|
+
- refactor_unrelated_code
|
|
21
|
+
- change_architecture
|
|
22
|
+
- guess_cause_without_evidence
|
|
23
|
+
- expose_internal_contract
|
|
24
|
+
- expose_internal_policy
|
|
25
|
+
- expose_internal_reasoning
|
|
26
|
+
- quote_yaml_sections
|
|
27
|
+
|
|
28
|
+
evidence:
|
|
29
|
+
- stack_trace_or_log
|
|
30
|
+
- related_source_code
|
|
31
|
+
|
|
32
|
+
completion:
|
|
33
|
+
- patch_provided
|
|
34
|
+
- risk_summary_provided
|
|
35
|
+
- verification_checklist_provided
|