ai-developer-skill-os 8.3.0 → 9.0.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.
Files changed (115) hide show
  1. package/.agents/AGENTS.md +21 -0
  2. package/.agents/registry/capability-graph.yml +74 -21
  3. package/.agents/registry/graph.json +138 -255
  4. package/.agents/registry/index.yaml +70 -96
  5. package/.agents/registry/skills-index.yml +70 -47
  6. package/.agents/rules/anti-patterns.md +45 -0
  7. package/.agents/rules/global.md +13 -0
  8. package/.agents/skills/_template/SKILL.md +127 -2
  9. package/.agents/skills/_template/capability.yaml +34 -20
  10. package/.agents/skills/qk-access-policy/SKILL.md +132 -2
  11. package/.agents/skills/qk-access-policy/capability.yaml +23 -0
  12. package/.agents/skills/qk-access-policy/evals/scorecard.yaml +36 -0
  13. package/.agents/skills/qk-agent-observability/SKILL.md +139 -3
  14. package/.agents/skills/qk-agent-observability/capability.yaml +29 -0
  15. package/.agents/skills/qk-agent-observability/evals/scorecard.yaml +29 -0
  16. package/.agents/skills/qk-ai-builder/SKILL.md +132 -2
  17. package/.agents/skills/qk-ai-builder/capability.yaml +23 -0
  18. package/.agents/skills/qk-ai-builder/evals/scorecard.yaml +30 -0
  19. package/.agents/skills/qk-api-lifecycle/SKILL.md +132 -2
  20. package/.agents/skills/qk-api-lifecycle/capability.yaml +23 -0
  21. package/.agents/skills/qk-api-lifecycle/evals/scorecard.yaml +29 -0
  22. package/.agents/skills/qk-bug-resolution/SKILL.md +132 -2
  23. package/.agents/skills/qk-bug-resolution/capability.yaml +25 -0
  24. package/.agents/skills/qk-bug-resolution/evals/scorecard.yaml +30 -0
  25. package/.agents/skills/qk-code-review/SKILL.md +132 -2
  26. package/.agents/skills/qk-code-review/capability.yaml +23 -0
  27. package/.agents/skills/qk-code-review/evals/scorecard.yaml +29 -0
  28. package/.agents/skills/qk-context-loader/SKILL.md +135 -4
  29. package/.agents/skills/qk-context-loader/capability.yaml +23 -0
  30. package/.agents/skills/qk-context-loader/evals/scorecard.yaml +28 -0
  31. package/.agents/skills/qk-data-lifecycle/SKILL.md +132 -2
  32. package/.agents/skills/qk-data-lifecycle/capability.yaml +23 -0
  33. package/.agents/skills/qk-data-lifecycle/evals/scorecard.yaml +29 -0
  34. package/.agents/skills/qk-db-optimizer/SKILL.md +132 -2
  35. package/.agents/skills/qk-db-optimizer/capability.yaml +22 -0
  36. package/.agents/skills/qk-db-optimizer/evals/scorecard.yaml +28 -0
  37. package/.agents/skills/qk-design-system-engineering/SKILL.md +132 -2
  38. package/.agents/skills/qk-design-system-engineering/capability.yaml +25 -0
  39. package/.agents/skills/qk-design-system-engineering/evals/scorecard.yaml +27 -0
  40. package/.agents/skills/qk-devops-platform/SKILL.md +132 -2
  41. package/.agents/skills/qk-devops-platform/capability.yaml +29 -0
  42. package/.agents/skills/qk-devops-platform/evals/scorecard.yaml +28 -0
  43. package/.agents/skills/qk-docs/SKILL.md +132 -2
  44. package/.agents/skills/qk-docs/capability.yaml +23 -0
  45. package/.agents/skills/qk-docs/evals/scorecard.yaml +27 -0
  46. package/.agents/skills/qk-engineering-standard/SKILL.md +132 -2
  47. package/.agents/skills/qk-engineering-standard/capability.yaml +23 -0
  48. package/.agents/skills/qk-engineering-standard/evals/scorecard.yaml +28 -0
  49. package/.agents/skills/qk-fe-api-integration/SKILL.md +132 -2
  50. package/.agents/skills/qk-fe-api-integration/capability.yaml +21 -0
  51. package/.agents/skills/qk-fe-api-integration/evals/scorecard.yaml +29 -0
  52. package/.agents/skills/qk-feature-delivery/SKILL.md +132 -2
  53. package/.agents/skills/qk-feature-delivery/capability.yaml +24 -0
  54. package/.agents/skills/qk-feature-delivery/evals/scorecard.yaml +28 -0
  55. package/.agents/skills/qk-frontend-architecture/SKILL.md +132 -2
  56. package/.agents/skills/qk-frontend-architecture/capability.yaml +28 -0
  57. package/.agents/skills/qk-frontend-architecture/evals/scorecard.yaml +28 -0
  58. package/.agents/skills/qk-help/SKILL.md +3 -3
  59. package/.agents/skills/qk-help/capability.yaml +20 -0
  60. package/.agents/skills/qk-help/evals/scorecard.yaml +13 -0
  61. package/.agents/skills/qk-orchestrator/SKILL.md +132 -2
  62. package/.agents/skills/qk-orchestrator/capability.yaml +22 -0
  63. package/.agents/skills/qk-orchestrator/evals/scorecard.yaml +27 -0
  64. package/.agents/skills/qk-product-specification/SKILL.md +132 -2
  65. package/.agents/skills/qk-product-specification/capability.yaml +27 -0
  66. package/.agents/skills/qk-product-specification/evals/scorecard.yaml +27 -0
  67. package/.agents/skills/qk-production-release/SKILL.md +133 -3
  68. package/.agents/skills/qk-production-release/capability.yaml +27 -0
  69. package/.agents/skills/qk-production-release/evals/scorecard.yaml +28 -0
  70. package/.agents/skills/qk-project-bootstrap/SKILL.md +147 -4
  71. package/.agents/skills/qk-project-bootstrap/capability.yaml +23 -0
  72. package/.agents/skills/qk-project-bootstrap/evals/scorecard.yaml +28 -0
  73. package/.agents/skills/qk-project-health/SKILL.md +132 -2
  74. package/.agents/skills/qk-project-health/capability.yaml +23 -0
  75. package/.agents/skills/qk-project-health/evals/scorecard.yaml +27 -0
  76. package/.agents/skills/qk-project-memory/SKILL.md +252 -277
  77. package/.agents/skills/qk-project-memory/capability.yaml +23 -0
  78. package/.agents/skills/qk-project-memory/evals/scorecard.yaml +27 -0
  79. package/.agents/skills/qk-refactor/SKILL.md +247 -0
  80. package/.agents/skills/qk-refactor/capability.yaml +26 -0
  81. package/.agents/skills/qk-refactor/evals/scorecard.yaml +27 -0
  82. package/.agents/skills/qk-security-audit/SKILL.md +132 -2
  83. package/.agents/skills/qk-security-audit/capability.yaml +30 -0
  84. package/.agents/skills/qk-security-audit/evals/scorecard.yaml +27 -0
  85. package/.agents/skills/qk-system-evolution/SKILL.md +132 -2
  86. package/.agents/skills/qk-system-evolution/capability.yaml +24 -0
  87. package/.agents/skills/qk-system-evolution/evals/scorecard.yaml +26 -0
  88. package/.agents/skills/qk-test-engineering/SKILL.md +132 -2
  89. package/.agents/skills/qk-test-engineering/capability.yaml +28 -0
  90. package/.agents/skills/qk-test-engineering/evals/scorecard.yaml +26 -0
  91. package/.agents/skills/qk-ui-audit/SKILL.md +132 -2
  92. package/.agents/skills/qk-ui-audit/capability.yaml +23 -0
  93. package/.agents/skills/qk-ui-audit/evals/scorecard.yaml +26 -0
  94. package/.agents/skills/qk-ui-builder/capability.yaml +29 -0
  95. package/.agents/skills/qk-ui-builder/evals/scorecard.yaml +26 -0
  96. package/.agents/skills/qk-ui-system-builder/SKILL.md +132 -2
  97. package/.agents/skills/qk-ui-system-builder/capability.yaml +25 -0
  98. package/.agents/skills/qk-ui-system-builder/evals/scorecard.yaml +26 -0
  99. package/.agents/skills/qk-validation-gate/SKILL.md +132 -2
  100. package/.agents/skills/qk-validation-gate/capability.yaml +23 -0
  101. package/.agents/skills/qk-validation-gate/evals/scorecard.yaml +26 -0
  102. package/.agents/skills/qk-web-quality-gate/SKILL.md +132 -2
  103. package/.agents/skills/qk-web-quality-gate/capability.yaml +24 -0
  104. package/.agents/skills/qk-web-quality-gate/evals/scorecard.yaml +26 -0
  105. package/.agents/workflows/production-release.yml +173 -0
  106. package/CHANGELOG.md +35 -0
  107. package/README.md +13 -4
  108. package/bin/install.js +1 -1
  109. package/package.json +6 -3
  110. package/tooling/build-registry.js +186 -186
  111. package/tooling/fix-refactor.js +8 -0
  112. package/tooling/sync-versions.js +299 -0
  113. package/tooling/validate-graph.js +87 -87
  114. package/tooling/validate-skills.js +1 -1
  115. package/tooling/generate-registry.js +0 -157
@@ -0,0 +1,26 @@
1
+ name: qk-ui-system-builder-eval
2
+ description: Đánh giá việc khởi tạo Design System Tokens
3
+ version: 9.0.0
4
+ threshold: 85 # Đảm bảo tokens sinh ra ánh xạ 1:1 với contract
5
+
6
+ metrics:
7
+ - id: strict_token_mapping
8
+ name: Ánh xạ chuẩn xác từ Contract
9
+ description: Các token được tạo ra có khớp 1:1 với DESIGN.md không?
10
+ weight: 45
11
+ criteria:
12
+ - Tuyệt đối không tự bịa (hallucinate) các token màu sắc/kích thước ngoài hợp đồng (45đ)
13
+
14
+ - id: naming_conventions
15
+ name: Kỷ luật Đặt tên (Naming Convention)
16
+ description: Cấu trúc biến CSS có đúng chuẩn và dễ mở rộng không?
17
+ weight: 30
18
+ criteria:
19
+ - Sử dụng đúng cấu trúc `--color-role-shade` thay vì tên ngẫu nhiên (30đ)
20
+
21
+ - id: dark_mode_support
22
+ name: Hỗ trợ Giao diện Tối (Dark Mode)
23
+ description: Có xử lý cấu trúc biến để hỗ trợ Data-theme/Dark-mode không?
24
+ weight: 25
25
+ criteria:
26
+ - Thiết lập base variables có khả năng scale cho các theme khác nhau (25đ)
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  # ── Identity ───────────────────────────────────────────────
3
3
  name: qk-validation-gate
4
- version: 8.2.0
4
+ version: 9.0.0
5
5
  status: stable
6
6
  description: "Cổng kiểm tra chất lượng & Eval Pipeline bắt buộc — chạy linters, tests, và đánh giá scorecard.yaml định lượng cho AI Agent."
7
7
  platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
8
8
 
9
- # ── V8: Classification ─────────────────────────────────────
9
+ # ── V9: Classification ─────────────────────────────────────
10
10
  type: utility
11
11
 
12
12
  intent:
@@ -85,6 +85,136 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
85
85
 
86
86
  > **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
87
87
 
88
+ ## Memory Workflow
89
+
90
+ ### Pre-flight Retrieve (Trước khi thực thi)
91
+ - Trước các task có tính lặp lại, debug, refactor, kiến trúc hoặc rủi ro cao:
92
+ bắt buộc tra cứu:
93
+ - `.agents/knowledge/index.yaml` (Shared Project Knowledge)
94
+ - `.ai-local/knowledge/index.yaml` (Private Local Knowledge)
95
+
96
+ - Ưu tiên sử dụng các Knowledge đang có trạng thái `Active` thuộc:
97
+ - Architecture
98
+ - Hard Bug
99
+ - Convention
100
+ - Pattern
101
+ - Tech Debt Pattern
102
+ - 👉 *Domain Focus:* Convention / Architecture (vd: các ngưỡng scorecard, quy định zero hallucination).
103
+
104
+ - Memory chỉ đóng vai trò **Navigator (bản đồ chỉ đường)**.
105
+ Không được xem Memory là Source of Truth.
106
+ Luôn xác minh lại bằng source code, configuration và trạng thái hiện tại của dự án trước khi áp dụng.
107
+
108
+ ---
109
+
110
+ ### Learning Flow (AI tự học có kiểm soát)
111
+ - Trong quá trình làm việc, AI được phép tự phát hiện và tạo **Candidate Memory** khi nhận thấy:
112
+ - Hard Bug có khả năng tái diễn.
113
+ - Pattern làm việc lặp lại trong dự án.
114
+ - Convention hoặc quy tắc kiến trúc mới.
115
+ - Quyết định Architecture quan trọng.
116
+ - Tech Debt Pattern hoặc Code Smell có tính hệ thống.
117
+ - 👉 *Domain Harvest:* Bộ tiêu chí kiểm định mới (Scorecard metric) được tích hợp vào pipeline.
118
+
119
+ - Candidate Memory chỉ là bản nháp quan sát, chưa phải tri thức chính thức.
120
+ - Candidate Memory có thể lưu tạm tại: `.ai-local/candidates/`
121
+ - AI không được tự động Promote Candidate Memory thành Project Knowledge.
122
+
123
+ ---
124
+
125
+ ### Post-flight Harvest (Đề xuất → Phê duyệt)
126
+ Sau khi hoàn thành task:
127
+ - AI đánh giá các Candidate Memory đã tạo.
128
+ - Nếu phát hiện tri thức có giá trị tái sử dụng:
129
+ - Đề xuất người dùng xem xét.
130
+ - Gửi yêu cầu phê duyệt thông qua:
131
+ - `/learn`
132
+ - `qk-project-memory`
133
+ - Chỉ sau khi được phê duyệt, Candidate Memory mới được chuyển thành Knowledge chính thức:
134
+
135
+ ```
136
+ .ai-local/candidates/ ──(Approve)──> .agents/knowledge/index.yaml
137
+ ```
138
+
139
+ - Project Knowledge phải được xem như tài sản kỹ thuật của dự án:
140
+ - Có thể review, cập nhật, loại bỏ và có lịch sử thay đổi.
141
+
142
+ ---
143
+
144
+ ### Ignore (Không đưa vào Memory)
145
+ Không lưu:
146
+ - Trace log của một session đơn lẻ.
147
+ - Temporary debugging data.
148
+ - Output của một lần chạy test/scan.
149
+ - Report health tạm thời của một đợt kiểm tra.
150
+ - Lỗi nhỏ chỉ xảy ra một lần.
151
+ - Thông tin không có khả năng tái sử dụng.
152
+ - 👉 *Domain Ignore:* Kết quả log pass/fail tạm thời của một build con.
153
+
154
+ ---
155
+
156
+ ### Golden Rule
157
+ > **AI được phép học, nhưng không được tự quyết định tri thức chính thức.**
158
+ > **AI quan sát → Đề xuất → Con người phê duyệt → Dự án tiến hóa.**
159
+
160
+ ---
161
+ ---
162
+
163
+ ### Learning Flow (AI tự học có kiểm soát)
164
+ - Trong quá trình làm việc, AI được phép tự phát hiện và tạo **Candidate Memory** khi nhận thấy:
165
+ - Hard Bug có khả năng tái diễn.
166
+ - Pattern làm việc lặp lại trong dự án.
167
+ - Convention hoặc quy tắc kiến trúc mới.
168
+ - Quyết định Architecture quan trọng.
169
+ - Tech Debt Pattern hoặc Code Smell có tính hệ thống.
170
+ - 👉 *Domain Harvest:* Bộ tiêu chí kiểm định mới (Scorecard metric) được tích hợp vào pipeline.
171
+
172
+ - Candidate Memory chỉ là bản nháp quan sát, chưa phải tri thức chính thức.
173
+ - Candidate Memory có thể lưu tạm tại: `.ai-local/candidates/`
174
+ - AI không được tự động Promote Candidate Memory thành Project Knowledge.
175
+
176
+ ---
177
+
178
+ ### Post-flight Harvest (Đề xuất → Phê duyệt)
179
+ Sau khi hoàn thành task:
180
+ - AI đánh giá các Candidate Memory đã tạo.
181
+ - Nếu phát hiện tri thức có giá trị tái sử dụng:
182
+ - Đề xuất người dùng xem xét.
183
+ - Gửi yêu cầu phê duyệt thông qua:
184
+ - `/learn`
185
+ - `qk-project-memory`
186
+ - Chỉ sau khi được phê duyệt, Candidate Memory mới được chuyển thành Knowledge chính thức:
187
+
188
+ ```
189
+ .ai-local/candidates/ ──(Approve)──> .agents/knowledge/index.yaml
190
+ ```
191
+
192
+ - Project Knowledge phải được xem như tài sản kỹ thuật của dự án:
193
+ - Có thể review, cập nhật, loại bỏ và có lịch sử thay đổi.
194
+
195
+ ---
196
+
197
+ ### Ignore (Không đưa vào Memory)
198
+ Không lưu:
199
+ - Trace log của một session đơn lẻ.
200
+ - Temporary debugging data.
201
+ - Output của một lần chạy test/scan.
202
+ - Report health tạm thời của một đợt kiểm tra.
203
+ - Lỗi nhỏ chỉ xảy ra một lần.
204
+ - Thông tin không có khả năng tái sử dụng.
205
+ - 👉 *Domain Ignore:* Kết quả log pass/fail tạm thời của một build con.
206
+
207
+ ---
208
+
209
+ ### Golden Rule
210
+ > **AI được phép học, nhưng không được tự quyết định tri thức chính thức.**
211
+ > **AI quan sát → Đề xuất → Con người phê duyệt → Dự án tiến hóa.**
212
+
213
+ ---
214
+ ---
215
+ ---
216
+ ---
217
+
88
218
  ## Preconditions
89
219
  - [ ] Project has `package.json` with lint/test scripts (or equivalent for other runtimes)
90
220
  - [ ] Target scope is specified (specific files, or whole project)
@@ -0,0 +1,23 @@
1
+ # Auto-generated from SKILL.md frontmatter
2
+ schema_version: 1
3
+ id: "qk-validation-gate"
4
+ version: "9.0.0"
5
+ description: "Cổng kiểm tra chất lượng & Eval Pipeline bắt buộc — chạy linters, tests, và đánh giá scorecard.yaml định lượng cho AI Agent."
6
+ tools:
7
+ - "filesystem"
8
+ - "terminal"
9
+ knowledge:
10
+ owns:
11
+ - "verification"
12
+ - "quality-gates"
13
+ - "test-execution"
14
+ references:
15
+ - "coding"
16
+ - "architecture"
17
+ eval:
18
+ scorecard: "evals/scorecard.yaml"
19
+ decision_boundary:
20
+ owns:
21
+ - "qk-validation-gate"
22
+ does_not_own: []
23
+ conflicts_with: []
@@ -0,0 +1,26 @@
1
+ name: qk-validation-gate-eval
2
+ description: Đánh giá Cổng kiểm tra Chất lượng V8.2
3
+ version: 9.0.0
4
+ threshold: 100 # Phải đạt 100 điểm tuyệt đối vì đây là lưới rà soát cuối cùng trước khi Release
5
+
6
+ metrics:
7
+ - id: threshold_enforcement
8
+ name: Thi hành Threshold nghiêm ngặt
9
+ description: Agent có bỏ qua lỗi Lint, Type check hoặc Test coverage không?
10
+ weight: 40
11
+ criteria:
12
+ - Chặn đứng (FAILED) ngay lập tức nếu Lint error > 0, Type error > 0, hoặc Coverage < 80% (40đ)
13
+
14
+ - id: quantitative_eval_execution
15
+ name: Đánh giá định lượng AI (Eval Pipeline)
16
+ description: Có đọc và áp dụng scorecard.yaml để chấm điểm AI agent output không?
17
+ weight: 35
18
+ criteria:
19
+ - Áp dụng rubric để chấm điểm và từ chối kết quả nếu tổng điểm < Threshold (35đ)
20
+
21
+ - id: trace_verification
22
+ name: Xác minh Trace (Zero Hallucination)
23
+ description: Có đối chiếu kết quả với file log traces thực tế không?
24
+ weight: 25
25
+ criteria:
26
+ - Bắt buộc kiểm tra dấu vết (traces) thực thi để đảm bảo AI không tự bịa ra kết quả test (25đ)
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  # ── Identity ───────────────────────────────────────────────
3
3
  name: qk-web-quality-gate
4
- version: 8.1.0
4
+ version: 9.0.0
5
5
  status: experimental
6
6
  description: "Kiểm toán tổng thể chất lượng Web: Accessibility (A11y), SEO, Web Performance, Security, UX Heuristics."
7
7
  platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
8
8
 
9
- # ── V8: Classification ─────────────────────────────────────
9
+ # ── V9: Classification ─────────────────────────────────────
10
10
  type: capability
11
11
 
12
12
  intent:
@@ -100,6 +100,136 @@ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
100
100
 
101
101
  > **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese.
102
102
 
103
+ ## Memory Workflow
104
+
105
+ ### Pre-flight Retrieve (Trước khi thực thi)
106
+ - Trước các task có tính lặp lại, debug, refactor, kiến trúc hoặc rủi ro cao:
107
+ bắt buộc tra cứu:
108
+ - `.agents/knowledge/index.yaml` (Shared Project Knowledge)
109
+ - `.ai-local/knowledge/index.yaml` (Private Local Knowledge)
110
+
111
+ - Ưu tiên sử dụng các Knowledge đang có trạng thái `Active` thuộc:
112
+ - Architecture
113
+ - Hard Bug
114
+ - Convention
115
+ - Pattern
116
+ - Tech Debt Pattern
117
+ - 👉 *Domain Focus:* Convention / Hard Bug (vd: chỉ số Core Web Vitals LCP/CLS, rủi ro bot SEO/A11y).
118
+
119
+ - Memory chỉ đóng vai trò **Navigator (bản đồ chỉ đường)**.
120
+ Không được xem Memory là Source of Truth.
121
+ Luôn xác minh lại bằng source code, configuration và trạng thái hiện tại của dự án trước khi áp dụng.
122
+
123
+ ---
124
+
125
+ ### Learning Flow (AI tự học có kiểm soát)
126
+ - Trong quá trình làm việc, AI được phép tự phát hiện và tạo **Candidate Memory** khi nhận thấy:
127
+ - Hard Bug có khả năng tái diễn.
128
+ - Pattern làm việc lặp lại trong dự án.
129
+ - Convention hoặc quy tắc kiến trúc mới.
130
+ - Quyết định Architecture quan trọng.
131
+ - Tech Debt Pattern hoặc Code Smell có tính hệ thống.
132
+ - 👉 *Domain Harvest:* Mẫu tối ưu hiệu năng web (vd: chiến lược lazyload hình ảnh, bundle partition).
133
+
134
+ - Candidate Memory chỉ là bản nháp quan sát, chưa phải tri thức chính thức.
135
+ - Candidate Memory có thể lưu tạm tại: `.ai-local/candidates/`
136
+ - AI không được tự động Promote Candidate Memory thành Project Knowledge.
137
+
138
+ ---
139
+
140
+ ### Post-flight Harvest (Đề xuất → Phê duyệt)
141
+ Sau khi hoàn thành task:
142
+ - AI đánh giá các Candidate Memory đã tạo.
143
+ - Nếu phát hiện tri thức có giá trị tái sử dụng:
144
+ - Đề xuất người dùng xem xét.
145
+ - Gửi yêu cầu phê duyệt thông qua:
146
+ - `/learn`
147
+ - `qk-project-memory`
148
+ - Chỉ sau khi được phê duyệt, Candidate Memory mới được chuyển thành Knowledge chính thức:
149
+
150
+ ```
151
+ .ai-local/candidates/ ──(Approve)──> .agents/knowledge/index.yaml
152
+ ```
153
+
154
+ - Project Knowledge phải được xem như tài sản kỹ thuật của dự án:
155
+ - Có thể review, cập nhật, loại bỏ và có lịch sử thay đổi.
156
+
157
+ ---
158
+
159
+ ### Ignore (Không đưa vào Memory)
160
+ Không lưu:
161
+ - Trace log của một session đơn lẻ.
162
+ - Temporary debugging data.
163
+ - Output của một lần chạy test/scan.
164
+ - Report health tạm thời của một đợt kiểm tra.
165
+ - Lỗi nhỏ chỉ xảy ra một lần.
166
+ - Thông tin không có khả năng tái sử dụng.
167
+ - 👉 *Domain Ignore:* Report Lighthouse của lần đo test tạm thời.
168
+
169
+ ---
170
+
171
+ ### Golden Rule
172
+ > **AI được phép học, nhưng không được tự quyết định tri thức chính thức.**
173
+ > **AI quan sát → Đề xuất → Con người phê duyệt → Dự án tiến hóa.**
174
+
175
+ ---
176
+ ---
177
+
178
+ ### Learning Flow (AI tự học có kiểm soát)
179
+ - Trong quá trình làm việc, AI được phép tự phát hiện và tạo **Candidate Memory** khi nhận thấy:
180
+ - Hard Bug có khả năng tái diễn.
181
+ - Pattern làm việc lặp lại trong dự án.
182
+ - Convention hoặc quy tắc kiến trúc mới.
183
+ - Quyết định Architecture quan trọng.
184
+ - Tech Debt Pattern hoặc Code Smell có tính hệ thống.
185
+ - 👉 *Domain Harvest:* Mẫu tối ưu hiệu năng web (vd: chiến lược lazyload hình ảnh, bundle partition).
186
+
187
+ - Candidate Memory chỉ là bản nháp quan sát, chưa phải tri thức chính thức.
188
+ - Candidate Memory có thể lưu tạm tại: `.ai-local/candidates/`
189
+ - AI không được tự động Promote Candidate Memory thành Project Knowledge.
190
+
191
+ ---
192
+
193
+ ### Post-flight Harvest (Đề xuất → Phê duyệt)
194
+ Sau khi hoàn thành task:
195
+ - AI đánh giá các Candidate Memory đã tạo.
196
+ - Nếu phát hiện tri thức có giá trị tái sử dụng:
197
+ - Đề xuất người dùng xem xét.
198
+ - Gửi yêu cầu phê duyệt thông qua:
199
+ - `/learn`
200
+ - `qk-project-memory`
201
+ - Chỉ sau khi được phê duyệt, Candidate Memory mới được chuyển thành Knowledge chính thức:
202
+
203
+ ```
204
+ .ai-local/candidates/ ──(Approve)──> .agents/knowledge/index.yaml
205
+ ```
206
+
207
+ - Project Knowledge phải được xem như tài sản kỹ thuật của dự án:
208
+ - Có thể review, cập nhật, loại bỏ và có lịch sử thay đổi.
209
+
210
+ ---
211
+
212
+ ### Ignore (Không đưa vào Memory)
213
+ Không lưu:
214
+ - Trace log của một session đơn lẻ.
215
+ - Temporary debugging data.
216
+ - Output của một lần chạy test/scan.
217
+ - Report health tạm thời của một đợt kiểm tra.
218
+ - Lỗi nhỏ chỉ xảy ra một lần.
219
+ - Thông tin không có khả năng tái sử dụng.
220
+ - 👉 *Domain Ignore:* Report Lighthouse của lần đo test tạm thời.
221
+
222
+ ---
223
+
224
+ ### Golden Rule
225
+ > **AI được phép học, nhưng không được tự quyết định tri thức chính thức.**
226
+ > **AI quan sát → Đề xuất → Con người phê duyệt → Dự án tiến hóa.**
227
+
228
+ ---
229
+ ---
230
+ ---
231
+ ---
232
+
103
233
  ## Preconditions
104
234
  - [ ] Ứng dụng web đã có thể chạy hoặc code đã được viết một phần.
105
235
 
@@ -0,0 +1,24 @@
1
+ # Auto-generated from SKILL.md frontmatter
2
+ schema_version: 1
3
+ id: "qk-web-quality-gate"
4
+ version: "9.0.0"
5
+ description: "Kiểm toán tổng thể chất lượng Web: Accessibility (A11y), SEO, Web Performance, Security, UX Heuristics."
6
+ tools:
7
+ - "filesystem"
8
+ - "terminal"
9
+ knowledge:
10
+ owns:
11
+ - "qk-web-quality-gate"
12
+ references:
13
+ - "architecture"
14
+ eval:
15
+ scorecard: "evals/scorecard.yaml"
16
+ decision_boundary:
17
+ owns:
18
+ - "lighthouse audit"
19
+ - "accessibility review"
20
+ - "performance audit"
21
+ - "seo audit"
22
+ does_not_own:
23
+ - "ui component implementation"
24
+ conflicts_with: []
@@ -0,0 +1,26 @@
1
+ name: qk-web-quality-gate-eval
2
+ description: Đánh giá chất lượng tổng thể của Web (Performance, SEO, A11y, UX)
3
+ version: 9.0.0
4
+ threshold: 85 # Đảm bảo đo lường đầy đủ 4 trục chất lượng của ứng dụng Web
5
+
6
+ metrics:
7
+ - id: core_web_vitals_focus
8
+ name: Phân tích Core Web Vitals
9
+ description: Có đánh giá đúng các chỉ số ảnh hưởng đến trải nghiệm (LCP, CLS, INP) không?
10
+ weight: 40
11
+ criteria:
12
+ - Báo cáo rõ ràng về kích thước Bundle, chiến lược Lazy loading và tối ưu hình ảnh (40đ)
13
+
14
+ - id: seo_and_accessibility
15
+ name: Kiểm tra SEO & A11y
16
+ description: Web có thân thiện với bot tìm kiếm và người khuyết tật không?
17
+ weight: 35
18
+ criteria:
19
+ - Quét Semantic HTML, Meta tags, và các rào cản truy cập ARIA (35đ)
20
+
21
+ - id: actionable_recommendations
22
+ name: Khuyến nghị thực tiễn (Actionable)
23
+ description: Các đề xuất tối ưu có khả thi để lập trình viên thực hiện ngay không?
24
+ weight: 25
25
+ criteria:
26
+ - "Không chỉ ra lỗi chung chung mà chỉ định rõ cách fix (ví dụ: Thêm loading='lazy' vào thẻ img dòng 15) (25đ)"
@@ -0,0 +1,173 @@
1
+ name: production-release
2
+ version: 8.0.0
3
+ description: "Chuẩn bị release production với 8-gate checklist bắt buộc — không pass gate = không deploy."
4
+
5
+ owner:
6
+ type: engineering
7
+ maintained_by: qk-team
8
+
9
+ verification_profile: release-safety
10
+
11
+ triggers:
12
+ - "release production"
13
+ - "deploy production"
14
+ - "chuẩn bị release"
15
+ - "kiểm tra release"
16
+
17
+ ide_binding:
18
+ slash_command: "/release"
19
+ aliases: ["/deploy", "/prod-release"]
20
+
21
+ steps:
22
+ - id: gate_1_validation
23
+ name: "Gate 1: Validation Gate"
24
+ purpose: "Đảm bảo qk-validation-gate đã pass trước khi release"
25
+ required: true
26
+ skip_if: null
27
+ inputs: []
28
+ outputs:
29
+ - validation_result
30
+ actions:
31
+ - "Chạy npm run test:registry"
32
+ - "Chạy npm run lint"
33
+ - "Chạy npm run test:agent"
34
+ - "Chạy npm run test:graph"
35
+ exit_on_fail: FAILED
36
+ human_checkpoint:
37
+ condition: "any validation gate fails"
38
+ message: "Validation gate thất bại. Fix trước khi tiếp tục."
39
+
40
+ - id: gate_2_capability
41
+ name: "Gate 2: Capability Integrity"
42
+ purpose: "Kiểm tra tất cả capability.yaml hợp lệ và không trùng lặp"
43
+ required: true
44
+ skip_if: null
45
+ inputs: []
46
+ outputs:
47
+ - capability_check
48
+ actions:
49
+ - "Validate tất cả capability.yaml files có schema_version: 1"
50
+ - "Kiểm tra không có capability.yaml trùng id"
51
+ - "Verify mỗi skill có SKILL.md tương ứng"
52
+ - "Verify mỗi SKILL.md có capability.yaml tương ứng"
53
+ exit_on_fail: FAILED
54
+ human_checkpoint:
55
+ condition: "capability.yaml missing or invalid"
56
+ message: "Một số capability.yaml bị thiếu hoặc không hợp lệ."
57
+
58
+ - id: gate_3_registry
59
+ name: "Gate 3: Registry Consistency"
60
+ purpose: "Kiểm tra registry files nhất quán với filesystem"
61
+ required: true
62
+ skip_if: null
63
+ inputs: []
64
+ outputs:
65
+ - registry_check
66
+ actions:
67
+ - "Chạy node tooling/build-registry.js"
68
+ - "So sánh index.yaml với filesystem实际"
69
+ - "Kiểm tra graph.json không có cycles"
70
+ - "Kiểm tra không có orphan nodes"
71
+ exit_on_fail: FAILED
72
+ human_checkpoint:
73
+ condition: "registry inconsistency detected"
74
+ message: "Registry không nhất quán với filesystem."
75
+
76
+ - id: gate_4_workflows
77
+ name: "Gate 4: Workflow Validation"
78
+ purpose: "Kiểm tra tất cả workflow files hợp lệ"
79
+ required: true
80
+ skip_if: null
81
+ inputs: []
82
+ outputs:
83
+ - workflow_check
84
+ actions:
85
+ - "Validate tất cả workflow YAML files có schema hợp lệ"
86
+ - "Kiểm tra mỗi workflow có steps, triggers, exit_codes"
87
+ - "Verify mỗi skill reference workflow tồn tại"
88
+ - "Kiểm tra không có workflow reference đến internal"
89
+ exit_on_fail: FAILED
90
+ human_checkpoint:
91
+ condition: "workflow validation fails"
92
+ message: "Một hoặc nhiều workflow không hợp lệ."
93
+
94
+ - id: gate_5_security
95
+ name: "Gate 5: Security Scan"
96
+ purpose: "Quét bảo mật trước khi release"
97
+ required: true
98
+ skip_if: null
99
+ inputs: []
100
+ outputs:
101
+ - security_report
102
+ actions:
103
+ - "Chạy npm audit --production"
104
+ - "grep_search cho secrets, tokens, API keys trong code"
105
+ - "Kiểm tra không có hardcoded credentials"
106
+ - "Verify .env files không bị commit"
107
+ exit_on_fail: FAILED
108
+ human_checkpoint:
109
+ condition: "critical or high security issues found"
110
+ message: "Có vấn đề bảo mật nghiêm trọng. Cần fix trước khi release."
111
+
112
+ - id: gate_6_size
113
+ name: "Gate 6: Bundle & Size Check"
114
+ purpose: "Kiểm tra kích thước bundle và dependencies"
115
+ required: true
116
+ skip_if: null
117
+ inputs: []
118
+ outputs:
119
+ - size_report
120
+ actions:
121
+ - "Chạy npm run build (production mode)"
122
+ - "Kiểm tra bundle size trong giới hạn"
123
+ - "Kiểm tra không có devDependencies trong production"
124
+ - "Verify tree-shaking hoạt động đúng"
125
+ exit_on_fail: FAILED
126
+ human_checkpoint:
127
+ condition: "bundle size exceeds limit"
128
+ message: "Bundle size vượt hạn chế. Cần tối ưu trước khi deploy."
129
+
130
+ - id: gate_7_changelog
131
+ name: "Gate 7: Changelog & Documentation"
132
+ purpose: "Kiểm tra CHANGELOG.md và documentation đã cập nhật"
133
+ required: true
134
+ skip_if: null
135
+ inputs: []
136
+ outputs:
137
+ - docs_check
138
+ actions:
139
+ - "Kiểm tra CHANGELOG.md có entry cho version này"
140
+ - "Verify README.md phản ánh đúng capabilities hiện tại"
141
+ - "Kiểm tra SKILL.md descriptions không bị encoding issues"
142
+ - "Verify capability.yaml descriptions chính xác"
143
+ exit_on_fail: PARTIAL
144
+ human_checkpoint:
145
+ condition: "changelog missing or docs outdated"
146
+ message: "CHANGELOG hoặc documentation chưa cập nhật. Cần fix trước khi release."
147
+
148
+ - id: gate_8_report
149
+ name: "Gate 8: Release Report"
150
+ purpose: "Tạo báo cáo release có signed kết quả tất cả gates"
151
+ required: true
152
+ skip_if: null
153
+ inputs:
154
+ - validation_result
155
+ - capability_check
156
+ - registry_check
157
+ - workflow_check
158
+ - security_report
159
+ - size_report
160
+ - docs_check
161
+ outputs:
162
+ - release_report
163
+ actions:
164
+ - "Tổng hợp tất cả gate results"
165
+ - "Generate structured release report"
166
+ - "Include evidence format cho mỗi gate"
167
+ - "Record exit code và timestamp"
168
+ - "Sign report với qk-team key"
169
+ exit_on_fail: FAILED
170
+
171
+ escalation:
172
+ max_retries: 1
173
+ on_failure: "Report which gates failed and exact fix required. Do NOT deploy."
package/CHANGELOG.md CHANGED
@@ -5,6 +5,41 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5
5
 
6
6
  ---
7
7
 
8
+ ## [9.0.0] — 2026-08 — EDAOS v9.0: Universal Project Knowledge V1 & Dual-Mode Memory Architecture
9
+
10
+ ### Added
11
+ - **Universal Project Knowledge Protocol V1 (AI Skin V9)**: Core memory discipline integrated across all 32 developer skills (`qk-*`) and core OS rules.
12
+ - **Dual-Mode Memory Setup**: Fully automated support for Private Mode (`.ai-local/`, git-ignored by default) and Shared Team Mode (`.agents/`, commit/reviewable via PRs).
13
+ - **Pre-flight & Post-flight Governance**: Skills automatically check memory before performing redundant project searches (Navigator pattern) and propose structured knowledge harvesting (`Architecture`, `Convention`, `Pattern`, `Hard Bug`) subject to human confirmation (AI proposes → Human approves).
14
+ - **Zero-Overwrite & Portable References**: Mandatory 100-line limit for project `AGENTS.md`, workspace-relative symbol paths, and immutable memory history (`status: Active` → `Archived`).
15
+
16
+ ## [8.3.1] — 2026-07 — EDAOS v8.3.1: Eval Pipeline & Agentic Governance
17
+
18
+ ### Added
19
+ - **evals/runner.js**: Automated evaluation pipeline script to parse `scorecard.yaml`, run linting, verify agent traces, and calculate total scores against thresholds.
20
+ - **Eval Scripts**: Added `npm run eval` and `npm run eval:all` in `package.json` for running automated validations.
21
+ - **Scorecards**: Created comprehensive, quantitative AI-eval `evals/scorecard.yaml` for all 31 standard skills.
22
+ - **.agents/rules/anti-patterns.md (R-C-09)**: Strict global rule prohibiting AI-slop, God Files, Circular Dependencies, and poor code quality practices.
23
+
24
+ ## [8.3.0] — 2026-07 — EDAOS v8.3: Design System, IDE Config & Infrastructure Fixes
25
+
26
+ ### Added
27
+ - **DESIGN.md**: Design system contract with HSL color tokens, spacing scale, typography, border radius, shadows, animation tokens, dark mode support, and z-index layers
28
+ - **vite.config.js**: Vitest configuration with coverage (v8 provider), reporter setup, and test isolation
29
+ - **bin/lint.js**: Lint script for validating SKILL.md spec compliance, workflow structure, and rule files
30
+ - **.kilo/kilo.json**: Kilo IDE configuration with project paths, commands, agent model settings, and skin design token reference
31
+ - **.kilo/command/ and .kilo/agent/ directories**: Standardized Kilo command and agent configuration directories
32
+ - **qk-context-loader/references/**: Loading patterns document for context dependency graph construction
33
+
34
+ ### Fixed
35
+ - **.agentsignore**: Removed `schemas/` from rogue artifacts list; legitimate schema files at `.agents/docs/schemas/` are now accessible to AI agents
36
+ - **ADR-008 renamed to ADR-005**: Corrected decision sequence to remove gap between ADR-004 and ADR-005
37
+ - **qk-design-system-engineering status**: Changed from `experimental` to `stable` to reflect full V8.2 review compliance
38
+ - **Source .agentsignore**: Fixed same `schemas/` issue in root `.agentsignore` (not just worktree copy)
39
+
40
+ ### Removed
41
+ - **Legacy agent-skills dirs**: Removed obsolete `khanhmcp-server/agent-skills-eval/` and `khanhmcp-server/agent-skills-tool/` directories (pre-V8 artifacts)
42
+
8
43
  ## [8.2.1] — 2026-07 — Token Optimization Patch
9
44
 
10
45
  ### Fixed
package/README.md CHANGED
@@ -1,12 +1,21 @@
1
- # 🚀 AI Developer Skill OS (ai-developer-skill-os) v8.3.0
1
+ # 🚀 AI Developer Skill OS (ai-developer-skill-os) v9.0.0
2
2
 
3
- > **v8.3.0 "EDAOS v8.3 — Governed Capability Metadata & Eval Platform"**
3
+ > **v9.0.0 "EDAOS v9.0 — Governed Capability & Universal Project Knowledge V1 Architecture"**
4
4
 
5
- Hệ sinh thái AI Developer Skill OS tiến hóa lên phiên bản **V8.3.0 (EDAOS v8.3)** với kiến trúc **Manifest-First & Eval Platform**, giúp giảm tối đa chi phí nhận thức (cognitive load) cho các AI Agent thế hệ mới (như Antigravity) nhờ chỉ định ranh giới định lượng, đồ thị phụ thuộc O(1),các Blueprint Plugins quy chuẩn cho từng ngành nghề kỹ thuật.
5
+ Hệ sinh thái AI Developer Skill OS tiến hóa lên phiên bản **V9.0.0 (EDAOS v9.0)** với kiến trúc **Universal Project Knowledge V1 & Dual-Mode Memory Platform**, kết hợp cùng hình Manifest-First Eval Pipeline, biến AI từ trợ bị động thành phụ Lập trình (Elite AI Engineer) thấu hiểu sâu sắc codebasetri thức dự án với chi phí tra cứu gần như bằng 0.
6
6
 
7
7
  ---
8
8
 
9
- ## 🏗️ 4 Trụ Cột Kiến Trúc Cốt Lõi (EDAOS v8.2 Architecture)
9
+ ## 🧭 Kiến Trúc Trí Nhớ Dự Án (Universal Project Knowledge V1)
10
+ - **Quản trị như Source Code:** Tri thức dự án đơn giản, minh bạch, có thể xem xét (review) qua Pull Request, và **luôn có con người phê duyệt** (AI Đề xuất -> Con người Phê duyệt via `/learn` hoặc `./qk-project-memory`).
11
+ - **Hai Chế Độ (Dual-Mode):**
12
+ - *Private Mode (`.ai-local/`):* Bộ nhớ cá nhân ẩn danh, tự động được thêm vào `.gitignore` để bảo vệ sự riêng tư.
13
+ - *Shared Mode (`.agents/`):* Tri thức chung cho cả Team và hệ thống CI/CD, có thể commit và review ngang hàng như code.
14
+ - **Tối Ưu Nhảy Sọt (Navigator):** File `AGENTS.md` giới hạn siêu gọn dưới 100 dòng làm bản đồ chỉ đường, kết hợp cùng `knowledge/index.yaml` (lưu trữ đúng 4 loại: *Architecture, Convention, Pattern, Hard Bug*), triệt tiêu 80% chi phí tìm kiếm mù lòa (zero redundant searches).
15
+
16
+ ---
17
+
18
+ ## 🏗️ 4 Trụ Cột Kiến Trúc Cốt Lõi (EDAOS v9.0 Architecture)
10
19
 
11
20
  ### 1. Manifest-First & O(1) Registry Engine
12
21
  Không còn phụ thuộc vào việc đọc/scan toàn bộ markdown mệt mỏi. AI Agent tra cứu siêu dữ liệu từ `.agents/registry/index.yaml` và kiểm duyệt chu trình không lặp (acyclic validation) thông qua O(1) graph JSON (`.agents/registry/graph.json`). Tốc độ hiểu và phân công năng lực đạt ngưỡng sub-second!