ai-developer-skill-os 8.2.1 → 8.3.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.
Files changed (151) hide show
  1. package/.agents/LICENSE +21 -21
  2. package/.agents/README.md +90 -90
  3. package/.agents/docs/CHI_TIET_SKILLS.md +125 -125
  4. package/.agents/docs/MIGRATION-CLEANUP-V8.1.3.md +36 -36
  5. package/.agents/docs/MIGRATION-STATUS.md +35 -35
  6. package/.agents/docs/MIGRATION-V8.md +10 -10
  7. package/.agents/docs/V8-CERTIFICATION.md +27 -27
  8. package/.agents/docs/decisions/ADR-001-v8-migration.md +58 -58
  9. package/.agents/docs/decisions/ADR-002-workflow-separation.md +50 -50
  10. package/.agents/docs/decisions/ADR-003-registry-generated.md +54 -54
  11. package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +27 -27
  12. package/.agents/registry/capability-graph.yml +67 -25
  13. package/.agents/registry/graph.json +135 -256
  14. package/.agents/registry/index.yaml +68 -95
  15. package/.agents/registry/skills-index.yml +548 -525
  16. package/.agents/rules/anti-patterns.md +45 -0
  17. package/.agents/rules/coding.md +10 -0
  18. package/.agents/rules/command-safety.md +37 -14
  19. package/.agents/rules/priorities.yml +13 -2
  20. package/.agents/rules/security.md +47 -7
  21. package/.agents/rules/skill-quality.md +32 -8
  22. package/.agents/skills/_template/SKILL.md +133 -132
  23. package/.agents/skills/_template/capability.yaml +22 -8
  24. package/.agents/skills/_template/evals/scorecard.yaml +19 -19
  25. package/.agents/skills/qk-access-policy/SKILL.md +5 -2
  26. package/.agents/skills/qk-access-policy/capability.yaml +23 -0
  27. package/.agents/skills/qk-access-policy/evals/scorecard.yaml +36 -0
  28. package/.agents/skills/qk-agent-observability/SKILL.md +112 -1
  29. package/.agents/skills/qk-agent-observability/capability.yaml +29 -0
  30. package/.agents/skills/qk-agent-observability/evals/scorecard.yaml +29 -0
  31. package/.agents/skills/qk-agent-observability/references/scorecard.yaml +80 -0
  32. package/.agents/skills/qk-ai-builder/SKILL.md +75 -6
  33. package/.agents/skills/qk-ai-builder/capability.yaml +23 -0
  34. package/.agents/skills/qk-ai-builder/evals/scorecard.yaml +30 -0
  35. package/.agents/skills/qk-api-lifecycle/SKILL.md +5 -3
  36. package/.agents/skills/qk-api-lifecycle/capability.yaml +23 -0
  37. package/.agents/skills/qk-api-lifecycle/evals/scorecard.yaml +29 -0
  38. package/.agents/skills/qk-bug-resolution/SKILL.md +4 -22
  39. package/.agents/skills/qk-bug-resolution/capability.yaml +25 -0
  40. package/.agents/skills/qk-bug-resolution/evals/scorecard.yaml +30 -0
  41. package/.agents/skills/qk-code-review/SKILL.md +188 -186
  42. package/.agents/skills/qk-code-review/capability.yaml +23 -0
  43. package/.agents/skills/qk-code-review/evals/scorecard.yaml +29 -0
  44. package/.agents/skills/qk-context-loader/SKILL.md +4 -12
  45. package/.agents/skills/qk-context-loader/capability.yaml +23 -0
  46. package/.agents/skills/qk-context-loader/evals/scorecard.yaml +28 -0
  47. package/.agents/skills/qk-data-lifecycle/SKILL.md +7 -2
  48. package/.agents/skills/qk-data-lifecycle/capability.yaml +23 -0
  49. package/.agents/skills/qk-data-lifecycle/evals/scorecard.yaml +29 -0
  50. package/.agents/skills/qk-db-optimizer/SKILL.md +4 -3
  51. package/.agents/skills/qk-db-optimizer/capability.yaml +22 -0
  52. package/.agents/skills/qk-db-optimizer/evals/scorecard.yaml +28 -0
  53. package/.agents/skills/qk-design-system-engineering/SKILL.md +235 -112
  54. package/.agents/skills/qk-design-system-engineering/capability.yaml +25 -0
  55. package/.agents/skills/qk-design-system-engineering/evals/scorecard.yaml +27 -0
  56. package/.agents/skills/qk-devops-platform/SKILL.md +241 -117
  57. package/.agents/skills/qk-devops-platform/capability.yaml +29 -0
  58. package/.agents/skills/qk-devops-platform/evals/scorecard.yaml +28 -0
  59. package/.agents/skills/qk-docs/SKILL.md +4 -2
  60. package/.agents/skills/qk-docs/capability.yaml +23 -0
  61. package/.agents/skills/qk-docs/evals/scorecard.yaml +27 -0
  62. package/.agents/skills/qk-engineering-standard/SKILL.md +5 -76
  63. package/.agents/skills/qk-engineering-standard/capability.yaml +23 -0
  64. package/.agents/skills/qk-engineering-standard/evals/scorecard.yaml +28 -0
  65. package/.agents/skills/qk-engineering-standard/references/anti-patterns.md +121 -0
  66. package/.agents/skills/qk-engineering-standard/rules/frontend.md +1 -1
  67. package/.agents/skills/qk-fe-api-integration/SKILL.md +14 -33
  68. package/.agents/skills/qk-fe-api-integration/capability.yaml +21 -0
  69. package/.agents/skills/qk-fe-api-integration/evals/scorecard.yaml +29 -0
  70. package/.agents/skills/qk-feature-delivery/SKILL.md +54 -222
  71. package/.agents/skills/qk-feature-delivery/capability.yaml +24 -0
  72. package/.agents/skills/qk-feature-delivery/evals/scorecard.yaml +28 -0
  73. package/.agents/skills/qk-frontend-architecture/SKILL.md +258 -134
  74. package/.agents/skills/qk-frontend-architecture/capability.yaml +28 -0
  75. package/.agents/skills/qk-frontend-architecture/evals/scorecard.yaml +28 -0
  76. package/.agents/skills/qk-help/SKILL.md +23 -161
  77. package/.agents/skills/qk-help/capability.yaml +20 -0
  78. package/.agents/skills/qk-help/evals/scorecard.yaml +13 -0
  79. package/.agents/skills/qk-orchestrator/SKILL.md +3 -35
  80. package/.agents/skills/qk-orchestrator/capability.yaml +22 -0
  81. package/.agents/skills/qk-orchestrator/evals/scorecard.yaml +27 -0
  82. package/.agents/skills/qk-orchestrator/references/routing-table.md +15 -3
  83. package/.agents/skills/qk-product-specification/SKILL.md +253 -130
  84. package/.agents/skills/qk-product-specification/capability.yaml +27 -0
  85. package/.agents/skills/qk-product-specification/evals/scorecard.yaml +27 -0
  86. package/.agents/skills/qk-production-release/SKILL.md +33 -68
  87. package/.agents/skills/qk-production-release/capability.yaml +27 -0
  88. package/.agents/skills/qk-production-release/evals/scorecard.yaml +28 -0
  89. package/.agents/skills/qk-project-bootstrap/SKILL.md +59 -8
  90. package/.agents/skills/qk-project-bootstrap/capability.yaml +23 -0
  91. package/.agents/skills/qk-project-bootstrap/evals/scorecard.yaml +28 -0
  92. package/.agents/skills/qk-project-health/SKILL.md +5 -3
  93. package/.agents/skills/qk-project-health/capability.yaml +23 -0
  94. package/.agents/skills/qk-project-health/evals/scorecard.yaml +27 -0
  95. package/.agents/skills/qk-project-memory/SKILL.md +4 -2
  96. package/.agents/skills/qk-project-memory/capability.yaml +23 -0
  97. package/.agents/skills/qk-project-memory/evals/scorecard.yaml +27 -0
  98. package/.agents/skills/qk-refactor/SKILL.md +117 -0
  99. package/.agents/skills/qk-refactor/capability.yaml +26 -0
  100. package/.agents/skills/qk-refactor/evals/scorecard.yaml +27 -0
  101. package/.agents/skills/qk-security-audit/SKILL.md +259 -135
  102. package/.agents/skills/qk-security-audit/capability.yaml +30 -0
  103. package/.agents/skills/qk-security-audit/evals/scorecard.yaml +27 -0
  104. package/.agents/skills/qk-system-evolution/SKILL.md +18 -68
  105. package/.agents/skills/qk-system-evolution/capability.yaml +24 -0
  106. package/.agents/skills/qk-system-evolution/evals/scorecard.yaml +26 -0
  107. package/.agents/skills/qk-test-engineering/SKILL.md +262 -139
  108. package/.agents/skills/qk-test-engineering/capability.yaml +28 -0
  109. package/.agents/skills/qk-test-engineering/evals/scorecard.yaml +26 -0
  110. package/.agents/skills/qk-ui-audit/SKILL.md +17 -90
  111. package/.agents/skills/qk-ui-audit/capability.yaml +23 -0
  112. package/.agents/skills/qk-ui-audit/evals/scorecard.yaml +26 -0
  113. package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +2 -2
  114. package/.agents/skills/qk-ui-builder/SKILL.md +482 -509
  115. package/.agents/skills/qk-ui-builder/capability.yaml +29 -0
  116. package/.agents/skills/qk-ui-builder/references/component-cookbook.md +455 -1191
  117. package/.agents/skills/qk-ui-system-builder/SKILL.md +2 -6
  118. package/.agents/skills/qk-ui-system-builder/capability.yaml +25 -0
  119. package/.agents/skills/qk-ui-system-builder/evals/scorecard.yaml +26 -0
  120. package/.agents/skills/qk-validation-gate/SKILL.md +1 -75
  121. package/.agents/skills/qk-validation-gate/capability.yaml +23 -0
  122. package/.agents/skills/qk-validation-gate/evals/scorecard.yaml +26 -0
  123. package/.agents/skills/qk-web-quality-gate/SKILL.md +232 -114
  124. package/.agents/skills/qk-web-quality-gate/capability.yaml +24 -0
  125. package/.agents/skills/qk-web-quality-gate/evals/scorecard.yaml +26 -0
  126. package/.agents/workflows/_schema.yml +146 -109
  127. package/.agents/workflows/bug-resolution.yml +121 -101
  128. package/.agents/workflows/code-review.yml +93 -77
  129. package/.agents/workflows/documentation.yml +90 -75
  130. package/.agents/workflows/feature-delivery.yml +120 -103
  131. package/.agents/workflows/production-release.yml +173 -0
  132. package/.agents/workflows/refactor.yml +99 -81
  133. package/.agents/workflows/research.yml +75 -60
  134. package/.agents/workflows/security-audit.yml +115 -72
  135. package/.agents/workflows/skill-evolution.yml +97 -65
  136. package/.agents/workflows/spec-driven-development.yml +87 -57
  137. package/CHANGELOG.md +27 -0
  138. package/README.md +90 -90
  139. package/bin/install.js +329 -179
  140. package/package.json +4 -2
  141. package/tooling/build-registry.js +186 -186
  142. package/tooling/fix-refactor.js +8 -0
  143. package/tooling/sync-versions.js +49 -0
  144. package/tooling/validate-graph.js +87 -87
  145. package/.agents/CHANGELOG.md +0 -131
  146. package/.agents/learnings/draft/README.md +0 -37
  147. package/.agents/reports/RELEASE-CHECKLIST.md +0 -29
  148. package/.agents/reports/architecture-audit.md +0 -13
  149. package/.agents/reports/graph-health.md +0 -20
  150. package/.agents/reports/skill-audit.md +0 -215
  151. package/tooling/generate-registry.js +0 -157
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  # ── Identity ───────────────────────────────────────────────
3
3
  name: qk-production-release
4
- version: 8.0.0
4
+ version: 8.3.1
5
5
  status: stable
6
6
  description: "Chuẩn bị release production với 8-gate checklist bắt buộc — không pass gate = không deploy."
7
7
  platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
@@ -28,7 +28,7 @@ triggers:
28
28
  - "kiểm tra release"
29
29
 
30
30
  # ── V8: References ─────────────────────────────────────────
31
- workflow: internal
31
+ workflow: production-release
32
32
 
33
33
  rules:
34
34
  - global
@@ -47,6 +47,18 @@ knowledge_scope:
47
47
  - deployment-gate
48
48
  references:
49
49
  - architecture
50
+ - security
51
+ - anti-patterns
52
+
53
+ decision_boundary:
54
+ owns:
55
+ - release-gate-checklist
56
+ - deployment-readiness-verdict
57
+ does_not_own:
58
+ - ci-cd-pipeline-design
59
+ - infrastructure-provisioning
60
+ conflicts_with:
61
+ - qk-devops-platform
50
62
 
51
63
  # ── V8: Verification ───────────────────────────────────────
52
64
  verification:
@@ -80,12 +92,7 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
80
92
 
81
93
  # qk-production-release — Release Gate
82
94
 
83
- > **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.
84
-
85
- skill_version: 7.5.0
86
- runtime_version: 1
87
- schema_version: 2
88
- ---
95
+ > **Language rule:** Code, identifiers, file names English. Explanations, summaries Vietnamese.
89
96
 
90
97
  ## Preconditions
91
98
  - [ ] `qk-validation-gate` has been run and returned SUCCESS or PARTIAL
@@ -98,11 +105,6 @@ On missing precondition:
98
105
  Message: "qk-validation-gate must pass before release. Run it first."
99
106
  ```
100
107
 
101
- skill_version: 7.5.0
102
- runtime_version: 1
103
- schema_version: 2
104
- ---
105
-
106
108
  ## Scope
107
109
  - ✅ Run 8-gate release checklist
108
110
  - ✅ Verify no dev artifacts in production build
@@ -113,11 +115,6 @@ schema_version: 2
113
115
  - ❌ Deploy to infrastructure — that's DevOps/CI system
114
116
  - ❌ Skip any gate unless user explicitly overrides
115
117
 
116
- skill_version: 7.5.0
117
- runtime_version: 1
118
- schema_version: 2
119
- ---
120
-
121
118
  ## Priority Order
122
119
 
123
120
  | Priority | Gate | Block Release? |
@@ -128,14 +125,9 @@ schema_version: 2
128
125
  | P4 | .env.production exists (not .env.development) | YES — hard block |
129
126
  | P5 | Build succeeds in production mode | YES — hard block |
130
127
  | P6 | Bundle size within limit (< 500KB gzipped) | WARN only |
131
- | P7 | No dev dependencies in production build | YES — hard block |
128
+ | P7 | No dev dependencies in production build. Check vulnerabilities (`npm audit`) | YES — hard block (Nếu có CRITICAL, báo gọi `qk-security-audit`) |
132
129
  | P8 | CHANGELOG.md updated with release notes | WARN only |
133
130
 
134
- skill_version: 7.5.0
135
- runtime_version: 1
136
- schema_version: 2
137
- ---
138
-
139
131
  ## Release Checklist (Mandatory)
140
132
 
141
133
  ```
@@ -149,11 +141,6 @@ schema_version: 2
149
141
  [ ] P8: CHANGELOG.md has entry for this release
150
142
  ```
151
143
 
152
- skill_version: 7.5.0
153
- runtime_version: 1
154
- schema_version: 2
155
- ---
156
-
157
144
  ## Workflow
158
145
 
159
146
  ### Phase 1 — Pre-flight Checks (P1–P4)
@@ -173,11 +160,6 @@ IF all P1–P4 pass
173
160
  → go to Phase 2
174
161
  ```
175
162
 
176
- skill_version: 7.5.0
177
- runtime_version: 1
178
- schema_version: 2
179
- ---
180
-
181
163
  ### Phase 2 — Build & Size Gate (P5–P7)
182
164
 
183
165
  **Steps:**
@@ -197,11 +179,6 @@ IF production audit has critical/high
197
179
  → EXIT: FAILED
198
180
  ```
199
181
 
200
- skill_version: 7.5.0
201
- runtime_version: 1
202
- schema_version: 2
203
- ---
204
-
205
182
  ### Phase 3 — Release Report
206
183
 
207
184
  Generate signed release report with all gate results.
@@ -218,11 +195,6 @@ IF any hard-block gate failed
218
195
  → EXIT: FAILED — do NOT deploy
219
196
  ```
220
197
 
221
- skill_version: 7.5.0
222
- runtime_version: 1
223
- schema_version: 2
224
- ---
225
-
226
198
  ## Evidence Format
227
199
 
228
200
  ```
@@ -234,11 +206,6 @@ Actual: [what was found]
234
206
  Fix: [what must be done before release]
235
207
  ```
236
208
 
237
- skill_version: 7.5.0
238
- runtime_version: 1
239
- schema_version: 2
240
- ---
241
-
242
209
  ## Escalation Rules
243
210
 
244
211
  ```
@@ -250,11 +217,6 @@ Questions:
250
217
  2. Có bug nào HIGH/CRITICAL chưa fix không?
251
218
  ```
252
219
 
253
- skill_version: 7.5.0
254
- runtime_version: 1
255
- schema_version: 2
256
- ---
257
-
258
220
  ## Handoff Contract
259
221
 
260
222
  ### Consumes
@@ -274,11 +236,6 @@ schema_version: 2
274
236
  }
275
237
  ```
276
238
 
277
- skill_version: 7.5.0
278
- runtime_version: 1
279
- schema_version: 2
280
- ---
281
-
282
239
  ## Output Format
283
240
 
284
241
  ```
@@ -301,28 +258,37 @@ Verdict: [✅ SAFE TO DEPLOY | ❌ DO NOT DEPLOY — fix: list]
301
258
  Exit Code: [SUCCESS | PARTIAL | BLOCKED | FAILED]
302
259
  ```
303
260
 
304
- skill_version: 7.5.0
305
- runtime_version: 1
306
- schema_version: 2
307
- ---
308
-
309
-
310
261
  ---
311
262
 
312
263
  ## Confidence Model
313
264
 
265
+ | Level | Condition | Action |
266
+ |-------|-----------|--------|
267
+ | HIGH | validation-gate result confirmed + all 8 gates checked directly | Deploy approved |
268
+ | MEDIUM | some gates inferred from partial CI output | Deploy with caution |
269
+ | LOW | validation-gate not run / gate results stale | EXIT: BLOCKED |
314
270
 
315
271
  ---
316
272
 
317
273
  ## Severity
318
274
 
275
+ | Level | Definition |
276
+ |-------|-----------|
277
+ | CRITICAL | deploying with unresolved P1–P5 hard-block gate failure |
278
+ | HIGH | P6/P7 warning ignored without user override |
279
+ | MEDIUM | CHANGELOG missing |
280
+ | LOW | minor formatting in release report |
319
281
 
320
282
  ---
321
283
 
322
284
  ## Retry Policy
323
285
 
324
-
325
- ---
286
+ ```
287
+ Build fails during Phase 2
288
+ └─ check syntax vs. environment error
289
+ ├─ fix and retry once
290
+ └─ do not retry more than 1 time (risk of masking a real failure)
291
+ ```
326
292
  ## Exit Codes
327
293
 
328
294
  | Code | Meaning | When |
@@ -334,4 +300,3 @@ schema_version: 2
334
300
 
335
301
  ---
336
302
 
337
-
@@ -0,0 +1,27 @@
1
+ # Auto-generated from SKILL.md frontmatter
2
+ schema_version: 1
3
+ id: "qk-production-release"
4
+ version: "8.3.1"
5
+ description: "Chuẩn bị release production với 8-gate checklist bắt buộc — không pass gate = không deploy."
6
+ tools:
7
+ - "filesystem"
8
+ - "terminal"
9
+ knowledge:
10
+ owns:
11
+ - "release-checklist"
12
+ - "deployment-gate"
13
+ references:
14
+ - "architecture"
15
+ - "security"
16
+ - "anti-patterns"
17
+ eval:
18
+ scorecard: "evals/scorecard.yaml"
19
+ decision_boundary:
20
+ owns:
21
+ - "release-gate-checklist"
22
+ - "deployment-readiness-verdict"
23
+ does_not_own:
24
+ - "ci-cd-pipeline-design"
25
+ - "infrastructure-provisioning"
26
+ conflicts_with:
27
+ - "qk-devops-platform"
@@ -0,0 +1,28 @@
1
+ name: qk-production-release-eval
2
+ description: Đánh giá quá trình kiểm duyệt phát hành (Release Gate)
3
+ version: 8.3.1
4
+ threshold: 100 # Phải đạt 100 điểm vì lỗi ở Gate này có thể gây sập Production
5
+
6
+ metrics:
7
+ - id: strict_gate_enforcement
8
+ name: Kỷ luật thi hành Checklist 8-Gate
9
+ description: Agent có nghiêm túc chặn việc release nếu phát hiện lỗi Hard-block không?
10
+ weight: 40
11
+ criteria:
12
+ - BẮT BUỘC chặn đứng (EXIT: FAILED) nếu các cổng P1–P5 hoặc P7 (CRITICAL security) thất bại (40đ)
13
+
14
+ - id: pre_flight_checks
15
+ name: Kiểm tra rác mã và Cấu hình (Pre-flight)
16
+ description: Agent có phát hiện được log rác và nhầm lẫn file môi trường không?
17
+ weight: 30
18
+ criteria:
19
+ - Rà soát thành công các tàn dư debug (console.log, debugger) trong mã nguồn (15đ)
20
+ - Xác minh chắc chắn biến môi trường đang trỏ về Production (.env.production) (15đ)
21
+
22
+ - id: build_and_security
23
+ name: Kiểm thử Build và Bảo mật
24
+ description: Phân tích Build Bundle và Dependency Audit có được chạy không?
25
+ weight: 30
26
+ criteria:
27
+ - Chạy lệnh build để đảm bảo source code không bị gãy (15đ)
28
+ - Chạy npm audit/yarn audit để chặn mã độc/vulnerabilities lên server (15đ)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  # ── Identity ───────────────────────────────────────────────
3
3
  name: qk-project-bootstrap
4
- version: 8.2.0
4
+ version: 8.3.1
5
5
  status: stable
6
6
  description: "Khởi tạo dự án mới theo chuẩn V8.2 Blueprint Plugin Generator (project.yaml, 4-folder AI RAG hoặc Coding) với cấu trúc kiên cường."
7
7
  platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
@@ -49,6 +49,8 @@ knowledge_scope:
49
49
  - initial-setup
50
50
  references:
51
51
  - architecture
52
+ - security
53
+ - anti-patterns
52
54
 
53
55
  # ── V8: Verification ───────────────────────────────────────
54
56
  verification:
@@ -67,9 +69,7 @@ execution_mode: deterministic
67
69
  cost: high
68
70
  latency: slow
69
71
  risk: low
70
- side_effects:
71
- - create_files
72
- - create_structure
72
+ side_effects: edit_files
73
73
  produces: [code, schema, plan]
74
74
  consumes: [user-description]
75
75
 
@@ -84,7 +84,7 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
84
84
 
85
85
  # qk-project-bootstrap — Project Foundation Builder
86
86
 
87
- > **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.
87
+ > **Language rule:** Code, identifiers, file names English. Explanations, summaries Vietnamese.
88
88
 
89
89
  ---
90
90
 
@@ -173,6 +173,8 @@ evals/ # Traceability logs
173
173
  [ ] README.md — project description + setup instructions
174
174
  [ ] DESIGN.md — (UI projects) brand contract with color/font/spacing tokens
175
175
  [ ] evals/scorecard.yaml — (AI/RAG/Workflow projects) eval standard
176
+ [ ] .agents/rules/anti-patterns.md — Bắt buộc phải có (chuẩn V8.3 R-C-09)
177
+ [ ] .agents/rules/security.md — Bắt buộc phải có (chuẩn V8.3 R-SEC-04)
176
178
  ```
177
179
  -----
178
180
 
@@ -204,21 +206,72 @@ evals/ # Traceability logs
204
206
 
205
207
  ---
206
208
 
207
-
208
209
  ---
209
210
 
210
211
  ## Workflow
211
212
 
213
+ ### Phase 1 — Blueprint Selection
214
+ **Steps:**
215
+ 1. Assess Preconditions to determine framework/purpose.
216
+ 2. Select appropriate blueprint (coding, rag, workflow, enterprise).
217
+
218
+ **Decision:**
219
+ ```
220
+ IF framework/purpose is clear
221
+ → Confidence: HIGH → go to Phase 2
222
+ ELSE
223
+ → EXIT: BLOCKED — ask user
224
+ ```
225
+
226
+ ### Phase 2 — Scaffold Generation
227
+ **Steps:**
228
+ 1. Generate `project.yaml` manifest.
229
+ 2. Create directory tree structure based on blueprint.
230
+ 3. Configure tooling and generate `DESIGN.md` if UI project.
231
+
232
+ **Decision:**
233
+ ```
234
+ IF directories and files are generated
235
+ → Confidence: HIGH → go to Phase 3
236
+ ELSE
237
+ → EXIT: FAILED
238
+ ```
239
+
240
+ ### Phase 3 — Verification
241
+ **Steps:**
242
+ 1. Check Required Files Checklist against what was actually created.
243
+ 2. Ensure no mandatory files are missing.
244
+
245
+ **Decision:**
246
+ ```
247
+ IF all required files exist
248
+ → EXIT: SUCCESS
249
+ ELSE
250
+ → EXIT: PARTIAL
251
+ ```
212
252
 
213
253
  ---
214
254
 
215
255
  ## Evidence Format
216
256
 
257
+ ```
258
+ [SEVERITY] path/to/expected-file
259
+ Issue: [MISSING_MANIFEST | MISSING_DESIGN_MD | WRONG_STRUCTURE]
260
+ Confidence: HIGH
261
+ Fix: [specific file to create]
262
+ ```
217
263
 
218
264
  ---
219
265
 
220
266
  ## Priority Order
221
267
 
268
+ | Priority | Task | Skip Threshold |
269
+ |----------|------|----------------|
270
+ | P1 | project.yaml manifest created | Never |
271
+ | P2 | Core scaffolding per blueprint type | Never |
272
+ | P3 | Tooling config | Budget < 40% |
273
+ | P4 | DESIGN.md for UI projects | Never for UI |
274
+ | P5 | README | Budget < 60% |
222
275
 
223
276
  ---
224
277
  ## Exit Codes
@@ -295,5 +348,3 @@ Recommended Assumptions (if proceeding):
295
348
 
296
349
  ---
297
350
 
298
-
299
-
@@ -0,0 +1,23 @@
1
+ # Auto-generated from SKILL.md frontmatter
2
+ schema_version: 1
3
+ id: "qk-project-bootstrap"
4
+ version: "8.3.1"
5
+ description: "Khởi tạo dự án mới theo chuẩn V8.2 Blueprint Plugin Generator (project.yaml, 4-folder AI RAG hoặc Coding) với cấu trúc kiên cường."
6
+ tools:
7
+ - "filesystem"
8
+ - "terminal"
9
+ knowledge:
10
+ owns:
11
+ - "project-structure"
12
+ - "initial-setup"
13
+ references:
14
+ - "architecture"
15
+ - "security"
16
+ - "anti-patterns"
17
+ eval:
18
+ scorecard: "evals/scorecard.yaml"
19
+ decision_boundary:
20
+ owns:
21
+ - "qk-project-bootstrap"
22
+ does_not_own: []
23
+ conflicts_with: []
@@ -0,0 +1,28 @@
1
+ name: qk-project-bootstrap-eval
2
+ description: Đánh giá chất lượng khởi tạo dự án V8.2 Blueprint
3
+ version: 8.3.1
4
+ threshold: 85 # Đảm bảo cấu trúc kiến trúc được thiết lập chuẩn xác ngay từ đầu
5
+
6
+ metrics:
7
+ - id: blueprint_selection
8
+ name: Lựa chọn Blueprint phù hợp
9
+ description: Chọn đúng Blueprint và Manifest project.yaml tương ứng chưa?
10
+ weight: 35
11
+ criteria:
12
+ - Nhận diện đúng loại hình dự án (Coding, RAG/AI, Workflow) và áp dụng Blueprint cấu trúc thư mục phù hợp (15đ)
13
+ - Tạo ra file project.yaml chứa manifest của workspace (20đ)
14
+
15
+ - id: mandatory_files_scaffolding
16
+ name: Cấu trúc thư mục và File bắt buộc
17
+ description: Cây thư mục có thiếu các file quản lý chất lượng lõi không?
18
+ weight: 40
19
+ criteria:
20
+ - Sinh đúng kiến trúc (Ví dụ: 4-folder architecture cho AI RAG) (20đ)
21
+ - Đảm bảo đầy đủ các files chống thoái hóa: DESIGN.md, security.md, anti-patterns.md, scorecard.yaml (20đ)
22
+
23
+ - id: tooling_configuration
24
+ name: Cấu hình Công cụ (Tooling)
25
+ description: Môi trường có được thiết lập strict type và linter chưa?
26
+ weight: 25
27
+ criteria:
28
+ - Các cấu hình (tsconfig, eslint, prettier) được thiết lập chặt chẽ, không dễ dãi (25đ)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  # ── Identity ───────────────────────────────────────────────
3
3
  name: qk-project-health
4
- version: 8.0.0
4
+ version: 8.3.1
5
5
  status: stable
6
6
  description: "Kiểm toán toàn diện Code Smells, Tech Debt, Architecture — health score 0–100 với actionable roadmap."
7
7
  platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
@@ -48,6 +48,8 @@ knowledge_scope:
48
48
  - codebase-health
49
49
  references:
50
50
  - architecture
51
+ - security
52
+ - anti-patterns
51
53
 
52
54
  # ── V8: Verification ───────────────────────────────────────
53
55
  verification:
@@ -105,8 +107,8 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
105
107
 
106
108
  | Dimension | Max Points | Key Checks |
107
109
  |-----------|-----------|------------|
108
- | Security | 20 | 0 critical CVEs, no hardcoded secrets, auth guards present |
109
- | Code Quality | 20 | Functions ≤ 30L, complexity ≤ 10, no God Files |
110
+ | Security | 20 | 0 critical CVEs, no hardcoded secrets, auth guards present, **tuân thủ Zero-Trust (R-SEC-04)** |
111
+ | Code Quality | 20 | Functions ≤ 30L, complexity ≤ 10, no God Files, **sạch bóng Anti-patterns (R-C-09)** |
110
112
  | Architecture | 20 | Clean layers (UI/Logic/Data separated), no circular imports |
111
113
  | Dependencies | 20 | No deprecated packages, no unused deps, versions pinned |
112
114
  | Documentation | 20 | README complete, public APIs documented, DESIGN.md exists |
@@ -0,0 +1,23 @@
1
+ # Auto-generated from SKILL.md frontmatter
2
+ schema_version: 1
3
+ id: "qk-project-health"
4
+ version: "8.3.1"
5
+ description: "Kiểm toán toàn diện Code Smells, Tech Debt, Architecture — health score 0–100 với actionable roadmap."
6
+ tools:
7
+ - "filesystem"
8
+ - "terminal"
9
+ knowledge:
10
+ owns:
11
+ - "tech-debt"
12
+ - "codebase-health"
13
+ references:
14
+ - "architecture"
15
+ - "security"
16
+ - "anti-patterns"
17
+ eval:
18
+ scorecard: "evals/scorecard.yaml"
19
+ decision_boundary:
20
+ owns:
21
+ - "qk-project-health"
22
+ does_not_own: []
23
+ conflicts_with: []
@@ -0,0 +1,27 @@
1
+ name: qk-project-health-eval
2
+ description: Đánh giá năng lực Kiểm toán toàn diện sức khỏe Codebase
3
+ version: 8.3.1
4
+ threshold: 85 # Đảm bảo chấm điểm công tâm và vạch ra Roadmap cải thiện rõ ràng
5
+
6
+ metrics:
7
+ - id: five_dimensions_scoring
8
+ name: Chấm điểm 5 Phương diện (5 Dimensions)
9
+ description: Đánh giá toàn diện 5 yếu tố cốt lõi của codebase chưa?
10
+ weight: 40
11
+ criteria:
12
+ - Quét và tính điểm đầy đủ 5 phương diện: Security, Code Quality, Architecture, Dependencies, Documentation (20đ)
13
+ - Có bằng chứng (Evidence) cho các vi phạm bị trừ điểm (20đ)
14
+
15
+ - id: security_and_antipatterns
16
+ name: Quét Bảo mật (R-SEC-04) và Anti-patterns (R-C-09)
17
+ description: Agent có tìm ra các lỗ hổng bảo mật hoặc rác mã nghiêm trọng không?
18
+ weight: 30
19
+ criteria:
20
+ - Tìm thấy hardcoded secrets, eval(), hoặc vi phạm kiến trúc (God files, circular deps) nếu có (30đ)
21
+
22
+ - id: actionable_roadmap
23
+ name: Roadmap Tái cấu trúc thực tiễn
24
+ description: Báo cáo có vạch ra con đường sửa chữa rõ ràng không?
25
+ weight: 30
26
+ criteria:
27
+ - Output không chỉ chê bai mà còn sắp xếp các vấn đề theo độ ưu tiên (CRITICAL sửa trước) để team fix (30đ)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  # ── Identity ───────────────────────────────────────────────
3
3
  name: qk-project-memory
4
- version: 8.0.0
4
+ version: 8.3.1
5
5
  status: stable
6
6
  description: "Lưu trữ và truy xuất ngữ cảnh dự án dài hạn — chỉ lưu fact đã xác minh, không lưu giả thuyết."
7
7
  platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
@@ -48,6 +48,8 @@ knowledge_scope:
48
48
  - verified-context
49
49
  references:
50
50
  - architecture
51
+ - security
52
+ - anti-patterns
51
53
 
52
54
  # ── V8: Verification ───────────────────────────────────────
53
55
  verification:
@@ -98,7 +100,7 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
98
100
  ## Non-Goals
99
101
  - ❌ Store assumptions or unverified hypotheses
100
102
  - ❌ Overwrite architectural rules without explicit user consent
101
- - ❌ Store sensitive data (env vars, secrets)
103
+ - ❌ Store sensitive data (env vars, secrets). **Tuyệt đối cấm lưu trữ PII, API Keys, raw JWTs, hoặc các bad practices vi phạm R-C-09 vào bộ nhớ dài hạn.**
102
104
 
103
105
  ---
104
106
 
@@ -0,0 +1,23 @@
1
+ # Auto-generated from SKILL.md frontmatter
2
+ schema_version: 1
3
+ id: "qk-project-memory"
4
+ version: "8.3.1"
5
+ description: "Lưu trữ và truy xuất ngữ cảnh dự án dài hạn — chỉ lưu fact đã xác minh, không lưu giả thuyết."
6
+ tools:
7
+ - "filesystem"
8
+ - "terminal"
9
+ knowledge:
10
+ owns:
11
+ - "project-facts"
12
+ - "verified-context"
13
+ references:
14
+ - "architecture"
15
+ - "security"
16
+ - "anti-patterns"
17
+ eval:
18
+ scorecard: "evals/scorecard.yaml"
19
+ decision_boundary:
20
+ owns:
21
+ - "qk-project-memory"
22
+ does_not_own: []
23
+ conflicts_with: []
@@ -0,0 +1,27 @@
1
+ name: qk-project-memory-eval
2
+ description: Đánh giá quá trình lưu trữ và truy xuất ngữ cảnh dài hạn (Project Memory)
3
+ version: 8.3.1
4
+ threshold: 85 # Yêu cầu độ chính xác cao khi ghi đè hoặc lưu trữ để tránh ảo giác
5
+
6
+ metrics:
7
+ - id: fact_verification
8
+ name: Chỉ lưu trữ Sự thật (Fact), không lưu Giả thuyết
9
+ description: Agent có kiểm chứng thông tin qua source code trước khi lưu vào Memory không?
10
+ weight: 40
11
+ criteria:
12
+ - Tuyệt đối không lưu các giả định (assumptions) hoặc fact có Confidence LOW (20đ)
13
+ - Có bằng chứng (file:line) đính kèm khi ghi dữ liệu (20đ)
14
+
15
+ - id: zero_trust_memory
16
+ name: An toàn dữ liệu trong Memory (Zero Trust)
17
+ description: Agent có vô tình lưu thông tin nhạy cảm vào Memory không?
18
+ weight: 35
19
+ criteria:
20
+ - KHÔNG lưu trữ PII, API Keys, raw JWTs hay credentials dưới dạng clear text (35đ)
21
+
22
+ - id: ui_diversification
23
+ name: Áp dụng UI Diversification
24
+ description: Có lưu và kiểm tra lịch sử thiết kế để tránh UI lặp lại nhàm chán không?
25
+ weight: 25
26
+ criteria:
27
+ - Đọc và ghi đúng vào file `ui-diversification.json` để ngăn chặn trùng lặp theme/macrostructure (25đ)