ai-developer-skill-os 7.0.2 → 7.5.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 (188) hide show
  1. package/.agents/AGENTS.md +44 -88
  2. package/.agents/CHANGELOG.md +69 -0
  3. package/.agents/LICENSE +21 -0
  4. package/.agents/README.md +59 -0
  5. package/.agents/_template/BEHAVIOR_SPEC.md +96 -0
  6. package/.agents/_template/examples/example-en.md +49 -0
  7. package/.agents/_template/examples/example-vi.md +49 -0
  8. package/.agents/docs/CHI_TIET_SKILLS.md +125 -0
  9. package/.agents/docs/GOVERNANCE.md +40 -0
  10. package/.agents/docs/HUONG_DAN_SU_DUNG.md +120 -0
  11. package/.agents/docs/SPEC.md +87 -0
  12. package/.agents/docs/adr/0001-intent-based-architecture.md +19 -0
  13. package/.agents/docs/adr/0002-kernel-freeze.md +21 -0
  14. package/.agents/docs/adr/0003-risk-based-verification.md +20 -0
  15. package/.agents/docs/adr/0004-progressive-evidence.md +19 -0
  16. package/.agents/docs/skill-classification.md +25 -0
  17. package/.agents/skills/qk-access-policy/SKILL.md +179 -0
  18. package/.agents/skills/qk-ai-builder/SKILL.md +215 -0
  19. package/.agents/skills/qk-api-lifecycle/SKILL.md +176 -0
  20. package/.agents/skills/qk-bug-resolution/SKILL.md +307 -0
  21. package/.agents/skills/qk-context-loader/SKILL.md +218 -0
  22. package/.agents/skills/qk-data-lifecycle/SKILL.md +192 -0
  23. package/.agents/skills/qk-db-optimizer/SKILL.md +196 -0
  24. package/.agents/skills/qk-design-to-code/SKILL.md +285 -0
  25. package/.agents/skills/qk-docs/SKILL.md +198 -0
  26. package/.agents/skills/qk-engineering-standard/SKILL.md +351 -0
  27. package/.agents/skills/qk-engineering-standard/rules/backend.md +122 -0
  28. package/.agents/skills/qk-engineering-standard/rules/database.md +3 -0
  29. package/.agents/skills/qk-engineering-standard/rules/frontend.md +152 -0
  30. package/.agents/skills/qk-engineering-standard/rules/security.md +3 -0
  31. package/.agents/skills/qk-engineering-standard/rules/testing.md +3 -0
  32. package/.agents/skills/qk-fe-api-integration/SKILL.md +326 -0
  33. package/.agents/skills/qk-feature-delivery/SKILL.md +305 -0
  34. package/.agents/skills/qk-help/SKILL.md +193 -0
  35. package/.agents/skills/qk-orchestrator/SKILL.md +277 -0
  36. package/.agents/skills/qk-orchestrator/references/routing-table.md +77 -0
  37. package/.agents/skills/qk-production-release/SKILL.md +284 -0
  38. package/.agents/skills/qk-project-bootstrap/SKILL.md +234 -0
  39. package/.agents/skills/qk-project-health/SKILL.md +199 -0
  40. package/.agents/skills/qk-project-memory/SKILL.md +172 -0
  41. package/.agents/skills/qk-system-evolution/SKILL.md +281 -0
  42. package/.agents/skills/qk-ui-audit/SKILL.md +314 -0
  43. package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
  44. package/.agents/skills/qk-ui-system-builder/SKILL.md +221 -0
  45. package/.agents/skills/qk-validation-gate/SKILL.md +359 -0
  46. package/.agents/skills.json +819 -0
  47. package/.github/workflows/ci.yml +1 -1
  48. package/.qk-ai-skill-os/CHANGELOG.md +69 -0
  49. package/.qk-ai-skill-os/LICENSE +21 -0
  50. package/.qk-ai-skill-os/README.md +59 -0
  51. package/.qk-ai-skill-os/_template/BEHAVIOR_SPEC.md +96 -0
  52. package/.qk-ai-skill-os/_template/examples/example-en.md +49 -0
  53. package/.qk-ai-skill-os/_template/examples/example-vi.md +49 -0
  54. package/.qk-ai-skill-os/docs/CHI_TIET_SKILLS.md +125 -0
  55. package/.qk-ai-skill-os/docs/GOVERNANCE.md +40 -0
  56. package/.qk-ai-skill-os/docs/HUONG_DAN_SU_DUNG.md +120 -0
  57. package/.qk-ai-skill-os/docs/SPEC.md +87 -0
  58. package/.qk-ai-skill-os/docs/adr/0001-intent-based-architecture.md +19 -0
  59. package/.qk-ai-skill-os/docs/adr/0002-kernel-freeze.md +21 -0
  60. package/.qk-ai-skill-os/docs/adr/0003-risk-based-verification.md +20 -0
  61. package/.qk-ai-skill-os/docs/adr/0004-progressive-evidence.md +19 -0
  62. package/.qk-ai-skill-os/docs/skill-classification.md +25 -0
  63. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +121 -0
  64. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +179 -0
  65. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-api-integration/SKILL.md +389 -0
  66. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-auth-security/SKILL.md +96 -0
  67. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +125 -0
  68. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-bug-fix/SKILL.md +213 -0
  69. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-component-generator/SKILL.md +136 -0
  70. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-context-manager/SKILL.md +175 -0
  71. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-database-engineer/SKILL.md +104 -0
  72. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-deployment/SKILL.md +96 -0
  73. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-design-system/SKILL.md +137 -0
  74. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-form-builder/SKILL.md +140 -0
  75. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +155 -0
  76. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +133 -0
  77. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +129 -0
  78. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +146 -0
  79. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-git-engineer/SKILL.md +304 -0
  80. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-help/SKILL.md +68 -0
  81. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-migration/SKILL.md +284 -0
  82. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-project-audit/SKILL.md +280 -0
  83. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-refactor/SKILL.md +222 -0
  84. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-state-management/SKILL.md +140 -0
  85. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +127 -0
  86. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-ui-builder/SKILL.md +152 -0
  87. package/.qk-ai-skill-os/skills/_template/SKILL.md +238 -0
  88. package/.qk-ai-skill-os/skills/qk-access-policy/SKILL.md +179 -0
  89. package/.qk-ai-skill-os/skills/qk-ai-builder/SKILL.md +221 -0
  90. package/.qk-ai-skill-os/skills/qk-api-lifecycle/SKILL.md +176 -0
  91. package/.qk-ai-skill-os/skills/qk-bug-resolution/SKILL.md +307 -0
  92. package/.qk-ai-skill-os/skills/qk-context-loader/SKILL.md +218 -0
  93. package/.qk-ai-skill-os/skills/qk-data-lifecycle/SKILL.md +192 -0
  94. package/.qk-ai-skill-os/skills/qk-db-optimizer/SKILL.md +196 -0
  95. package/.qk-ai-skill-os/skills/qk-design-to-code/SKILL.md +291 -0
  96. package/.qk-ai-skill-os/skills/qk-docs/SKILL.md +198 -0
  97. package/.qk-ai-skill-os/skills/qk-engineering-standard/SKILL.md +351 -0
  98. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/backend.md +122 -0
  99. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/database.md +3 -0
  100. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/frontend.md +152 -0
  101. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/security.md +3 -0
  102. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/testing.md +3 -0
  103. package/.qk-ai-skill-os/skills/qk-fe-api-integration/SKILL.md +326 -0
  104. package/.qk-ai-skill-os/skills/qk-feature-delivery/SKILL.md +305 -0
  105. package/.qk-ai-skill-os/skills/qk-help/SKILL.md +193 -0
  106. package/.qk-ai-skill-os/skills/qk-orchestrator/SKILL.md +277 -0
  107. package/.qk-ai-skill-os/skills/qk-orchestrator/references/routing-table.md +77 -0
  108. package/.qk-ai-skill-os/skills/qk-production-release/SKILL.md +290 -0
  109. package/.qk-ai-skill-os/skills/qk-project-bootstrap/SKILL.md +240 -0
  110. package/.qk-ai-skill-os/skills/qk-project-health/SKILL.md +199 -0
  111. package/.qk-ai-skill-os/skills/qk-project-memory/SKILL.md +172 -0
  112. package/.qk-ai-skill-os/skills/qk-system-evolution/SKILL.md +285 -0
  113. package/.qk-ai-skill-os/skills/qk-ui-audit/SKILL.md +314 -0
  114. package/.qk-ai-skill-os/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
  115. package/.qk-ai-skill-os/skills/qk-ui-system-builder/SKILL.md +225 -0
  116. package/.qk-ai-skill-os/skills/qk-validation-gate/SKILL.md +361 -0
  117. package/.qk-ai-skill-os/skills.json +819 -0
  118. package/CLAUDE.md +110 -0
  119. package/README.md +25 -3
  120. package/add_lang.js +21 -0
  121. package/add_lang.py +25 -0
  122. package/add_sections.py +53 -0
  123. package/bin/install.js +225 -170
  124. package/bin/lint.js +122 -0
  125. package/docs/CHI_TIET_SKILLS.md +26 -26
  126. package/docs/HUONG_DAN_SU_DUNG.md +3 -3
  127. package/docs/SPEC.md +70 -20
  128. package/framework/skill-schema.md +310 -0
  129. package/package.json +15 -4
  130. package/patch.js +15 -0
  131. package/patch.py +89 -0
  132. package/patch2.py +83 -0
  133. package/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +1 -0
  134. package/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +1 -0
  135. package/skills/_archive_old_skills/qk-api-integration/SKILL.md +1 -0
  136. package/skills/_archive_old_skills/qk-auth-security/SKILL.md +1 -0
  137. package/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +1 -0
  138. package/skills/_archive_old_skills/qk-bug-fix/SKILL.md +1 -0
  139. package/skills/_archive_old_skills/qk-component-generator/SKILL.md +1 -0
  140. package/skills/_archive_old_skills/qk-context-manager/SKILL.md +1 -0
  141. package/skills/_archive_old_skills/qk-database-engineer/SKILL.md +1 -0
  142. package/skills/_archive_old_skills/qk-deployment/SKILL.md +1 -0
  143. package/skills/_archive_old_skills/qk-design-system/SKILL.md +1 -0
  144. package/skills/_archive_old_skills/qk-form-builder/SKILL.md +1 -0
  145. package/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +1 -0
  146. package/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +1 -0
  147. package/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +1 -0
  148. package/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +1 -0
  149. package/skills/_archive_old_skills/qk-git-engineer/SKILL.md +1 -0
  150. package/skills/_archive_old_skills/qk-help/SKILL.md +1 -0
  151. package/skills/_archive_old_skills/qk-migration/SKILL.md +1 -0
  152. package/skills/_archive_old_skills/qk-project-audit/SKILL.md +1 -0
  153. package/skills/_archive_old_skills/qk-refactor/SKILL.md +1 -0
  154. package/skills/_archive_old_skills/qk-state-management/SKILL.md +1 -0
  155. package/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +1 -0
  156. package/skills/_archive_old_skills/qk-ui-builder/SKILL.md +1 -0
  157. package/skills/_template/SKILL.md +238 -0
  158. package/skills/qk-access-policy/SKILL.md +179 -39
  159. package/skills/qk-ai-builder/SKILL.md +215 -40
  160. package/skills/qk-api-lifecycle/SKILL.md +176 -46
  161. package/skills/qk-bug-resolution/SKILL.md +307 -46
  162. package/skills/qk-context-loader/SKILL.md +218 -43
  163. package/skills/qk-data-lifecycle/SKILL.md +192 -44
  164. package/skills/qk-db-optimizer/SKILL.md +196 -41
  165. package/skills/qk-design-to-code/SKILL.md +285 -46
  166. package/skills/qk-docs/SKILL.md +198 -40
  167. package/skills/qk-engineering-standard/SKILL.md +351 -42
  168. package/skills/qk-fe-api-integration/SKILL.md +326 -55
  169. package/skills/qk-feature-delivery/SKILL.md +305 -48
  170. package/skills/qk-help/SKILL.md +178 -23
  171. package/skills/qk-orchestrator/SKILL.md +277 -42
  172. package/skills/qk-orchestrator/references/routing-table.md +77 -0
  173. package/skills/qk-production-release/SKILL.md +284 -41
  174. package/skills/qk-project-bootstrap/SKILL.md +234 -38
  175. package/skills/qk-project-health/SKILL.md +199 -40
  176. package/skills/qk-project-memory/SKILL.md +172 -40
  177. package/skills/qk-system-evolution/SKILL.md +281 -40
  178. package/skills/qk-ui-audit/SKILL.md +314 -42
  179. package/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
  180. package/skills/qk-ui-system-builder/SKILL.md +221 -43
  181. package/skills/qk-validation-gate/SKILL.md +359 -40
  182. package/skills.json +813 -824
  183. package/specs/fixtures/user-payload.json +12 -0
  184. package/specs/regressions/api-integration-null-fields.yaml +19 -0
  185. package/temp_fix.js +61 -0
  186. package/tests/registry.test.js +1 -1
  187. package/update_template.js +28 -0
  188. package/skills/qk-policy-engine/SKILL.md +0 -39
@@ -5,7 +5,7 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
5
5
  ---
6
6
 
7
7
  ## 🏗️ Lớp 0: Foundation Layer (Nền Tảng Cốt Lõi)
8
- *Lớp này đóng vai trò như "Não bộ trung ương", chuyên nhận lệnh, cấp quyền, cung cấp luật lệ và chuẩn bị môi trường trước khi bất kỳ dòng code nào được viết ra.*
8
+ *Lớp này đóng vai trò như "Não bộ trung tâm", chuyên nhận lệnh, cấp quyền, cung cấp luật lệ và chuẩn bị môi trường trước khi bất kỳ dòng code nào được viết ra.*
9
9
 
10
10
  ### 1. `qk-orchestrator` (Trợ Lý Điều Phối)
11
11
  - **Mô tả:** Nhận lệnh chung chung từ người dùng, tự động phân tích ý đồ và định hướng luồng công việc (chọn gọi các kỹ năng nào tiếp theo).
@@ -15,23 +15,19 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
15
15
  - **Mô tả:** Có khả năng đọc lướt dự án để gom chính xác các file liên quan đến task hiện tại (chống tràn bộ nhớ token của AI).
16
16
  - **Khi nào dùng:** Khi code dự án quá lớn, cần khoanh vùng các file cần sửa.
17
17
 
18
- ### 3. `qk-policy-engine` (Động Chính Sách)
19
- - **Mô tả:** Xét duyệt xem yêu cầu của người dùng hoặc hành động của AI có vi phạm các nguyên tắc cốt lõi của dự án không.
20
- - **Khi nào dùng:** Được AI tự động gọi trước khi thực thi để đảm bảo tính hợp lệ.
21
-
22
- ### 4. `qk-access-policy` (Kiểm Soát Phân Quyền)
18
+ ### 3. `qk-access-policy` (Kiểm Soát Phân Quyền)
23
19
  - **Mô tả:** Xử lý và cung cấp các quy tắc về bảo mật (Security), phân quyền (RBAC), Authentication (JWT/OAuth).
24
20
  - **Khi nào dùng:** Khi tính năng liên quan đến việc bảo mật, ai được quyền truy cập vào đâu.
25
21
 
26
- ### 5. `qk-project-memory` (Trí Nhớ Dự Án)
22
+ ### 4. `qk-project-memory` (Trí Nhớ Dự Án)
27
23
  - **Mô tả:** Lưu trữ DNA của dự án, các quyết định kiến trúc, UI pattern và các convention đã được thống nhất từ trước.
28
24
  - **Khi nào dùng:** Khi muốn AI làm theo đúng style đã có sẵn trong dự án.
29
25
 
30
- ### 6. `qk-engineering-standard` (Bộ Luật Thiết Kế)
26
+ ### 5. `qk-engineering-standard` (Bộ Luật Thiết Kế)
31
27
  - **Mô tả:** Bơm các "luật thép" (về Frontend, Backend, Database) vào ngữ cảnh để bắt AI tuân thủ cấu trúc thư mục và naming.
32
28
  - **Khi nào dùng:** Tự động gọi để ép AI viết code không bị rác.
33
29
 
34
- ### 7. `qk-project-bootstrap` (Khởi Tạo Dự Án)
30
+ ### 6. `qk-project-bootstrap` (Khởi Tạo Dự Án)
35
31
  - **Mô tả:** Setup toàn bộ khung sườn của một dự án mới tinh từ con số 0 (Cấu hình lint, format, folder structure).
36
32
  - **Khi nào dùng:** Lúc bắt đầu dự án mới.
37
33
 
@@ -40,15 +36,15 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
40
36
  ## 🎨 Lớp 1: UI System Layer (Hệ Thống Giao Diện)
41
37
  *Nhóm chuyên biệt về vẽ giao diện và quản lý hệ thống thành phần (Components).*
42
38
 
43
- ### 8. `qk-ui-system-builder` (Kỹ Sư Hệ Thống UI)
39
+ ### 7. `qk-ui-system-builder` (Kỹ Sư Hệ Thống UI)
44
40
  - **Mô tả:** Quản lý Design Token, tạo ra các Component có thể tái sử dụng (Button, Table, Form) đảm bảo tính nhất quán toàn dự án.
45
41
  - **Khi nào dùng:** Xây dựng thư viện giao diện, tránh viết CSS lộn xộn.
46
42
 
47
- ### 9. `qk-design-to-code` (Chuyển Đổi Thiết Kế)
43
+ ### 8. `qk-design-to-code` (Chuyển Đổi Thiết Kế)
48
44
  - **Mô tả:** Đọc hiểu hình ảnh/Figma để tự động chuyển thành mã nguồn giao diện (React, Tailwind, v.v.).
49
45
  - **Khi nào dùng:** Bóc tách UI từ bản thiết kế.
50
46
 
51
- ### 10. `qk-ui-audit` (Kiểm Toán Giao Diện)
47
+ ### 9. `qk-ui-audit` (Kiểm Toán Giao Diện)
52
48
  - **Mô tả:** Kiểm tra độ nhất quán UI/UX, hỗ trợ Responsive trên điện thoại và tối ưu khả năng tiếp cận (Accessibility - a11y).
53
49
  - **Khi nào dùng:** Kiểm tra lỗi UI sau khi hoàn thiện giao diện.
54
50
 
@@ -57,32 +53,40 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
57
53
  ## 💻 Lớp 2: Development Layer (Phát Triển E2E)
58
54
  *Khối thực thi mạnh mẽ nhất, đi từ A-Z một tính năng cụ thể.*
59
55
 
60
- ### 11. `qk-feature-delivery` (Chuyển Giao Tính Năng)
56
+ ### 10. `qk-feature-delivery` (Chuyển Giao Tính Năng)
61
57
  - **Mô tả:** Kỹ năng toàn năng, tự động phân tích thiết kế Database -> Viết API -> Xây UI -> Viết Unit Test cho một tính năng trọn vẹn.
62
58
  - **Khi nào dùng:** Xây dựng tính năng hoàn chỉnh (Ví dụ: Chức năng Thanh Toán).
63
59
 
64
- ### 12. `qk-api-lifecycle` (Vòng Đời API)
60
+ ### 11. `qk-api-lifecycle` (Vòng Đời API)
65
61
  - **Mô tả:** Chuyên biệt cho Backend: Viết spec, tạo Service, định nghĩa Type, viết Test và sinh tài liệu cho API.
66
62
  - **Khi nào dùng:** Xây dựng các Endpoint API.
67
63
 
68
- ### 13. `qk-data-lifecycle` (Vòng Đời Dữ Liệu)
64
+ ### 12. `qk-data-lifecycle` (Vòng Đời Dữ Liệu)
69
65
  - **Mô tả:** Quản lý Schema, tạo file Migration, tối ưu câu lệnh truy vấn (SQL, Prisma, v.v.).
70
66
  - **Khi nào dùng:** Thay đổi cấu trúc cơ sở dữ liệu.
71
67
 
68
+ ### 13. `qk-db-optimizer` (Tối Ưu Database)
69
+ - **Mô tả:** Phân tích EXPLAIN plan, tìm N+1 queries, đề xuất index và tối ưu query performance.
70
+ - **Khi nào dùng:** Truy vấn chậm, performance DB issue.
71
+
72
+ ### 14. `qk-fe-api-integration` (Tích Hợp API Frontend)
73
+ - **Mô tả:** Consume API Backend, quản lý State, bind vào UI — tuân thủ kiến trúc Base dự án.
74
+ - **Khi nào dùng:** Khi cần gọi API từ frontend, map DTO, xử lý Loading/Error states.
75
+
72
76
  ---
73
77
 
74
78
  ## 🛡️ Lớp 3: Quality Assurance Layer (Đảm Bảo Chất Lượng)
75
79
  *Kiểm tra độ sạch của code và diệt bug.*
76
80
 
77
- ### 14. `qk-project-health` (Kiểm Toán Dự Án)
81
+ ### 15. `qk-project-health` (Kiểm Toán Dự Án)
78
82
  - **Mô tả:** Quét toàn bộ dự án để tìm Code Smell, Nợ kỹ thuật (Tech Debt), và các vi phạm kiến trúc.
79
83
  - **Khi nào dùng:** Định kỳ kiểm tra chất lượng mã nguồn hoặc tối ưu hiệu năng.
80
84
 
81
- ### 15. `qk-bug-resolution` (Giải Quyết Bug Triệt Để)
85
+ ### 16. `qk-bug-resolution` (Giải Quyết Bug Triệt Để)
82
86
  - **Mô tả:** Tái hiện lỗi, đào sâu tìm Root Cause, cung cấp giải pháp an toàn và viết Regression Test để chống lỗi lặp lại.
83
87
  - **Khi nào dùng:** Sửa các lỗi đứt gãy hoặc logic nghiêm trọng.
84
88
 
85
- ### 16. `qk-validation-gate` (Cổng Kiểm Định)
89
+ ### 17. `qk-validation-gate` (Cổng Kiểm Định)
86
90
  - **Mô tả:** Kỹ năng chặn cửa. Bắt buộc chạy Test, Linting và Scan Security. Chỉ khi "PASS" mới cho phép kết thúc task.
87
91
  - **Khi nào dùng:** Nằm cuối quy trình code của bất kỳ tính năng nào.
88
92
 
@@ -91,11 +95,11 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
91
95
  ## 🚀 Lớp 4 & 5: Evolution & Operation (Vận Hành & Tiến Hóa)
92
96
  *Triển khai dự án lên Production và nâng cấp phiên bản lớn.*
93
97
 
94
- ### 17. `qk-system-evolution` (Tiến Hóa Hệ Thống)
98
+ ### 18. `qk-system-evolution` (Tiến Hóa Hệ Thống)
95
99
  - **Mô tả:** Nâng cấp dependency (VD: Next 14 lên 15), phân tích rủi ro ảnh hưởng và thực thi nâng cấp an toàn không downtime.
96
100
  - **Khi nào dùng:** Update version framework/thư viện.
97
101
 
98
- ### 18. `qk-production-release` (Triển Khai Môi Trường)
102
+ ### 19. `qk-production-release` (Triển Khai Môi Trường)
99
103
  - **Mô tả:** Viết Dockerfile, cấu hình CI/CD Pipelines (Github Actions), Deploy lên Cloud (AWS, Vercel).
100
104
  - **Khi nào dùng:** Release sản phẩm cho người dùng cuối.
101
105
 
@@ -103,7 +107,7 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
103
107
 
104
108
  ## 🤖 Lớp 6: AI Builder Layer (Tích hợp AI)
105
109
 
106
- ### 19. `qk-ai-builder` (Xây Dựng AI App)
110
+ ### 20. `qk-ai-builder` (Xây Dựng AI App)
107
111
  - **Mô tả:** Chuyên thiết kế và code các ứng dụng AI như RAG (Retrieval-Augmented Generation), Agent logic và Prompt Engineering.
108
112
  - **Khi nào dùng:** Tích hợp LLM vào trong phần mềm của bạn.
109
113
 
@@ -112,14 +116,10 @@ Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn b
112
116
  ## 📚 Lớp 7: Knowledge Layer (Tri Thức & Tài Liệu)
113
117
  *Hệ thống tự học và viết tài liệu vĩ đại của OS.*
114
118
 
115
- ### 20. `qk-docs` (Kỹ Sư Tài Liệu)
119
+ ### 21. `qk-docs` (Kỹ Sư Tài Liệu)
116
120
  - **Mô tả:** Tự động sinh hoặc cập nhật tài liệu cho con người đọc: `README.md`, `CHANGELOG.md`, `API Docs`.
117
121
  - **Khi nào dùng:** Nằm ở cuối quy trình sau khi hoàn thành tính năng.
118
122
 
119
- ### 21. `qk-documentation-system` (Hệ Thống Trí Nhớ)
120
- - **Mô tả:** Quản trị Tri thức máy. Tự động rút trích các Quyết định Kỹ thuật (ADR) hoặc Pattern mới xuất hiện trong code, và nạp ngược lại vào `qk-project-memory`.
121
- - **Khi nào dùng:** Hệ thống "tự học" để Agent trở nên thông minh hơn qua từng ngày.
122
-
123
123
  ### 22. `qk-help` (Tra Cứu Nhanh)
124
124
  - **Mô tả:** Cuốn từ điển sống. Cung cấp thông tin và hướng dẫn chi tiết (Pro-tips) về cách sử dụng toàn bộ hệ thống.
125
125
  - **Khi nào dùng:** Bất kỳ khi nào người dùng cần hỗ trợ sử dụng hệ điều hành.
@@ -1,7 +1,7 @@
1
1
  # Hướng Dẫn Sử Dụng — AI Developer Skill OS
2
2
 
3
3
  **Tác giả:** Quang Khánh
4
- **Phiên bản:** v2.0.0 (Master OS Architecture)
4
+ **Phiên bản:** v7.5.0 (Anti-Slop & Zero-Trust Architecture)
5
5
 
6
6
  Chào mừng bạn đến với **AI Developer Skill OS**, hệ điều hành kỹ năng (Skill Framework) biến các trợ lý AI (Gemini, Antigravity, Claude Code, Cursor, Windsurf) từ một "cỗ máy sinh code" thành một **Senior Software Engineer / Chief Architect** thực thụ với khả năng tự học, tự kiểm toán và tự viết tài liệu.
7
7
 
@@ -13,10 +13,10 @@ Thông thường, khi bạn yêu cầu AI "Làm cho tôi tính năng X", AI sẽ
13
13
 
14
14
  Với hệ điều hành 22 Master Skills này:
15
15
  1. Bạn đưa ra yêu cầu thông qua **`qk-orchestrator`**.
16
- 2. Hệ thống sẽ tự động gọi **`qk-context-loader`** để gom đúng file (tránh tràn ngữ cảnh) và **`qk-policy-engine`** để kiểm tra quyền.
16
+ 2. Hệ thống sẽ tự động gọi **`qk-context-loader`** để gom đúng file (tránh tràn ngữ cảnh).
17
17
  3. Kế tiếp, **`qk-engineering-standard`** sẽ gắn các "luật thép" (rules) của dự án vào ngữ cảnh.
18
18
  4. AI kích hoạt kỹ năng thực thi E2E như **`qk-feature-delivery`** để code và test trọn vẹn.
19
- 5. Cuối cùng, **`qk-validation-gate`** chặn lại kiểm tra lỗi, trước khi giao cho **`qk-docs`** và **`qk-documentation-system`** tự động cập nhật tài liệu và bộ nhớ hệ thống.
19
+ 5. Cuối cùng, **`qk-validation-gate`** chặn lại kiểm tra lỗi, trước khi giao cho **`qk-docs`** tự động cập nhật tài liệu.
20
20
 
21
21
  ---
22
22
 
package/docs/SPEC.md CHANGED
@@ -1,6 +1,6 @@
1
- # AI Developer Skill OS - Specification (v4)
1
+ # AI Developer Skill OS - Specification (v7.5)
2
2
 
3
- This document defines the strict contract and schema for developing Custom Skills in the AI Developer Skill OS. The metadata frontmatter is frozen to ensure cross-platform compatibility (Cursor, Claude Code, Windsurf, Gemini).
3
+ This document defines the strict contract and schema for all `SKILL.md` files in the AI Developer Skill OS. Every active skill MUST comply with this specification. The frontmatter is frozen to ensure cross-platform compatibility and deterministic agent behavior.
4
4
 
5
5
  ## 1. Frontmatter Contract (YAML)
6
6
 
@@ -9,29 +9,79 @@ Every `SKILL.md` must begin with this exact YAML structure. Do not add, remove,
9
9
  ```yaml
10
10
  ---
11
11
  name: qk-[skill-name]
12
+ category: [core|frontend|backend|fullstack|security|qa|maintenance|devops|utilities]
12
13
  version: X.Y.Z
13
- updated: YYYY-MM-DD
14
- description: Brief summary of what this skill accomplishes.
15
- behavior: static-analysis | development | validation | maintenance
16
- intent: review-code | fix-bug | implement-feature | validate | maintain
17
- priority: low | medium | high | critical
18
- tags: [tag1, tag2]
19
- platforms: [claude-code, cursor, windsurf, gemini-cli]
20
- trigger: Natural language phrase that activates this skill.
21
- inputs: [Required inputs]
22
- outputs: [Expected outputs]
23
- allowed_tools: [Tool1, Tool2]
24
- pipeline: [analyze, plan, implement, validate, complete]
14
+ description: "[One sentence — what this skill does]"
15
+ platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
16
+ execution_mode: deterministic
17
+
18
+ # Orchestrator routing metadata
19
+ cost: [low|medium|high]
20
+ latency: [fast|medium|slow]
21
+ risk: [low|medium|high]
22
+ side_effects: [edit_files|run_commands|read_only|none]
23
+ produces: [report|code|schema|plan|tokens]
24
+ consumes: [context-graph|design-md|stack-trace|json-payload|none]
25
+
26
+ token_budget:
27
+ max_files_read: 3
28
+ max_lines_per_read: 150
29
+ max_shell_commands: 2
30
+ stop_early: true
31
+
32
+ exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
25
33
  ---
26
34
  ```
27
35
 
36
+ ### Field Definitions
37
+
38
+ | Field | Type | Required | Description |
39
+ |-------|------|----------|-------------|
40
+ | `name` | string | YES | Skill identifier, must start with `qk-` |
41
+ | `category` | enum | YES | Primary domain: `core`, `frontend`, `backend`, `fullstack`, `security`, `qa`, `maintenance`, `devops`, `utilities` |
42
+ | `version` | semver | YES | Semantic version of this skill |
43
+ | `description` | string | YES | One-sentence summary of the skill's purpose |
44
+ | `platforms` | array | YES | Supported AI platforms. Valid values: `antigravity`, `claude-code`, `cursor`, `windsurf`, `kilo-code` |
45
+ | `execution_mode` | string | YES | Must be `deterministic` for all v7.5 skills |
46
+ | `cost` | enum | YES | Token/compute cost: `low`, `medium`, `high` |
47
+ | `latency` | enum | YES | Expected execution speed: `fast`, `medium`, `slow` |
48
+ | `risk` | enum | YES | Risk level of side effects: `low`, `medium`, `high` |
49
+ | `side_effects` | enum | YES | What the skill modifies: `edit_files`, `run_commands`, `read_only`, `none` |
50
+ | `produces` | array | YES | Output artifacts: `report`, `code`, `schema`, `plan`, `tokens` |
51
+ | `consumes` | array | YES | Required inputs: `context-graph`, `design-md`, `stack-trace`, `json-payload`, `none` |
52
+ | `token_budget.max_files_read` | int | YES | Maximum files to read before stopping |
53
+ | `token_budget.max_lines_per_read` | int | YES | Maximum lines per file read operation |
54
+ | `token_budget.max_shell_commands` | int | YES | Maximum shell commands allowed |
55
+ | `token_budget.stop_early` | bool | YES | Whether to stop when confidence threshold is reached |
56
+ | `exit_codes` | array | YES | Valid exit codes for this skill |
57
+
28
58
  ## 2. Skill Body Structure (Markdown)
29
59
 
30
- The body of the `SKILL.md` file MUST contain the following sections:
60
+ The body of the `SKILL.md` file MUST contain the following sections in order:
61
+
62
+ 1. **Header:** Skill title and language rule
63
+ 2. **Preconditions:** Checklist of required inputs/state before execution
64
+ 3. **Scope:** What the skill explicitly does (✅) and does not do (❌)
65
+ 4. **Priority Order:** P1–P4 checks with skip thresholds for token budget management
66
+ 5. **Workflow:** Phased execution steps with explicit decision trees and exit conditions
67
+ 6. **Confidence Model:** HIGH/MEDIUM/LOW confidence levels with actions
68
+ 7. **Severity:** CRITICAL/HIGH/MEDIUM/LOW severity definitions with examples
69
+ 8. **Evidence Format:** Mandatory template for all findings
70
+ 9. **Retry Policy:** Retry logic with maximum attempt limits
71
+ 10. **Escalation Rules:** Structured BLOCKED response format
72
+ 11. **Handoff Contract:** JSON schema for `Consumes` and `Produces`
73
+ 12. **Output Format:** Mandatory output template
74
+ 13. **Exit Codes:** Table mapping codes to meanings
75
+
76
+ ## 3. Naming Conventions
77
+
78
+ - Skill files: `skills/qk-[skill-name]/SKILL.md`
79
+ - Registry entry: `qk-[skill-name]`
80
+ - All code, identifiers, and file names: English only
81
+ - Explanations and reports: Vietnamese (match user language)
31
82
 
32
- 1. **Goal:** The core objective of the skill.
33
- 2. **Chain of Thought (SOP):** The exact step-by-step reasoning the agent must follow.
34
- 3. **Constraints & Rules:** Hard boundaries and limits for this specific skill.
35
- 4. **Handoff Pipeline (Optional):** How this skill transitions to the next phase (e.g. passing to validation).
83
+ ## 4. Compliance Enforcement
36
84
 
37
- *Note: Skill documents MUST NOT declare Verification Levels or override Tool Efficiency policies. Those are exclusively managed by the Global Kernel (`AGENTS.md`).*
85
+ - All skills MUST pass `npm run lint` (which validates frontmatter against this spec)
86
+ - The `## Compliance` table at the bottom of each `SKILL.md` is deprecated and MUST be removed
87
+ - CI pipeline enforces schema compliance automatically
@@ -0,0 +1,310 @@
1
+ # Skill Schema V7.5 — Runtime Standard Specification
2
+
3
+ > **Mục đích:** Đây là "lint rules" chính thức cho mọi skill trong bộ V7.5.
4
+ > Bất kỳ skill nào không pass spec này đều **phải được fix trước khi publish**.
5
+
6
+ ---
7
+
8
+ ## Frontmatter Required Fields
9
+
10
+ ```yaml
11
+ # REQUIRED — tất cả fields sau đây bắt buộc phải có
12
+ name: string # qk-[skill-name]
13
+ category: enum # core|frontend|backend|fullstack|security|qa|maintenance|devops|utilities
14
+ version: semver # 7.5.x
15
+ description: string # one sentence, ends without period
16
+ platforms: array # [antigravity, claude-code, cursor, windsurf, kilo-code]
17
+ execution_mode: string # deterministic | exploratory
18
+ skill_version: semver # same as version
19
+ runtime_version: integer # 1 (current runtime contract version)
20
+ schema_version: integer # 2 (current schema version)
21
+ cost: enum # low | medium | high
22
+ latency: enum # fast | medium | slow
23
+ risk: enum # low | medium | high
24
+ side_effects: enum # edit_files | run_commands | read_only | none
25
+ produces: array # [code, report, schema, plan, tokens]
26
+ consumes: array # [context-graph, design-md, stack-trace, json-payload, none]
27
+ token_budget:
28
+ max_files_read: integer # 1–10
29
+ max_lines_per_read: integer # 50–200
30
+ max_shell_commands: integer # 0–5
31
+ stop_early: boolean
32
+ exit_codes: array # must include: [SUCCESS, BLOCKED, FAILED, PARTIAL]
33
+ ```
34
+
35
+ **Lint Rule:** Bất kỳ field nào thiếu → FAIL frontmatter check.
36
+
37
+ ---
38
+
39
+ ## 11 Required Body Sections
40
+
41
+ Dưới đây là 11 sections bắt buộc trong body mỗi SKILL.md, theo thứ tự.
42
+ **Special skills** (redirect, help) được miễn một số section — xem `special_skill_exemptions` cuối file.
43
+
44
+ ### Section 1: Language Rule Header
45
+ ```
46
+ > **Language rule:** Code, identifiers, file names → English. Explanations, summaries → Vietnamese (match user language).
47
+ ```
48
+ **Lint Rule:** Phải có ngay sau heading `# qk-[name]`.
49
+
50
+ ---
51
+
52
+ ### Section 2: Preconditions
53
+ ```markdown
54
+ ## Preconditions
55
+ - [ ] [Condition 1]
56
+ - [ ] [Condition N]
57
+
58
+ \`\`\`
59
+ On missing precondition:
60
+ EXIT: BLOCKED
61
+ Message: "[specific message]"
62
+ \`\`\`
63
+ ```
64
+ **Lint Rules:**
65
+ - Phải có ít nhất 1 precondition
66
+ - Phải có code block với `EXIT: BLOCKED` và `Message:`
67
+ - Không được chỉ có "Repository accessible" — phải specific
68
+
69
+ ---
70
+
71
+ ### Section 3: Scope + Non-Goals
72
+ ```markdown
73
+ ## Scope
74
+ - ✅ [What it DOES]
75
+
76
+ ## Non-Goals
77
+ - ❌ [Anti-pattern — with reason]
78
+ ```
79
+ **Lint Rules:**
80
+ - Scope: ≥ 2 items
81
+ - Non-Goals: ≥ 3 items
82
+ - At least one Non-Goal must be about tool usage (never create scripts / never read entire files)
83
+
84
+ ---
85
+
86
+ ### Section 4: Priority Order
87
+ ```markdown
88
+ ## Priority Order
89
+ | Priority | Task | Skip Threshold |
90
+ |----------|------|----------------|
91
+ | P1 | ... | Never |
92
+ ```
93
+ **Lint Rules:**
94
+ - Minimum 3 priorities
95
+ - P1 must have "Never" skip threshold
96
+ - At least one Px must have a percentage threshold (e.g., "Budget < 50%")
97
+
98
+ ---
99
+
100
+ ### Section 5: Workflow with Decision Trees
101
+ ```markdown
102
+ ## Workflow
103
+
104
+ ### Phase N — [Name]
105
+ **Steps:**
106
+ 1. [step]
107
+
108
+ **Decision:**
109
+ \`\`\`
110
+ IF [condition] → [action]
111
+ ELSE → [action]
112
+ \`\`\`
113
+
114
+ **Exit When:**
115
+ - [condition] → go to Phase N+1 | EXIT: [code]
116
+ ```
117
+ **Lint Rules:**
118
+ - Minimum 2 phases
119
+ - Each phase MUST have at least one `Decision:` block
120
+ - Each phase MUST have `Exit When:` conditions
121
+ - No phase can have only "steps" without decisions
122
+
123
+ ---
124
+
125
+ ### Section 6: Confidence Model
126
+ ```markdown
127
+ ## Confidence Model
128
+ | Level | Condition | Action |
129
+ |--------|-----------|--------|
130
+ | HIGH | ... | ... |
131
+ | MEDIUM | ... | ... |
132
+ | LOW | ... | EXIT: BLOCKED |
133
+ ```
134
+ **Lint Rules:**
135
+ - Must have all 3 levels: HIGH, MEDIUM, LOW
136
+ - LOW must always lead to either BLOCKED or user confirmation
137
+
138
+ ---
139
+
140
+ ### Section 7: Severity
141
+ ```markdown
142
+ ## Severity
143
+ | Level | Definition | Example |
144
+ |----------|-----------|---------|
145
+ | CRITICAL | ... | ... |
146
+ | HIGH | ... | ... |
147
+ | MEDIUM | ... | ... |
148
+ | LOW | ... | ... |
149
+ ```
150
+ **Lint Rules:**
151
+ - Must have all 4 levels: CRITICAL, HIGH, MEDIUM, LOW
152
+ - Each level must have a concrete Example column
153
+
154
+ ---
155
+
156
+ ### Section 8: Evidence Format
157
+ ```markdown
158
+ ## Evidence Format
159
+ \`\`\`
160
+ [SEVERITY] path/to/file.ts:LINE
161
+ [Field]: [value]
162
+ Confidence: [HIGH|MEDIUM|LOW]
163
+ Fix: [suggestion]
164
+ \`\`\`
165
+ ```
166
+ **Lint Rules:**
167
+ - Must include `[SEVERITY]` tag with file:LINE format
168
+ - Must include `Confidence:` field
169
+ - Must include `Fix:` field
170
+ - Must include a filled example below the template
171
+
172
+ ---
173
+
174
+ ### Section 9: Retry Policy
175
+ ```markdown
176
+ ## Retry Policy
177
+ \`\`\`
178
+ [trigger]
179
+ └─ [action]
180
+ ├─ [outcome A]
181
+ └─ [outcome B] → [escalation]
182
+ └─ Do NOT retry more than N times
183
+ \`\`\`
184
+ ```
185
+ **Lint Rules:**
186
+ - Must have explicit max retry count (≤ 3)
187
+ - Must specify what happens after max retries (ESCALATE or FAILED)
188
+ - Read-only skills may have simplified retry: "Audit is read-only — no retry needed."
189
+
190
+ ---
191
+
192
+ ### Section 10: Escalation Rules
193
+ ```markdown
194
+ ## Escalation Rules
195
+ \`\`\`
196
+ BLOCKED: [specific reason]
197
+ Missing:
198
+ - [artifact or info needed]
199
+ Questions:
200
+ 1. [specific question]
201
+ Recommended Assumptions (if proceeding):
202
+ - [assumption]
203
+ \`\`\`
204
+ ```
205
+ **Lint Rules:**
206
+ - Must have structured format: BLOCKED, Missing, Questions, Recommended Assumptions
207
+ - Cannot be just "ask user" or "STOP"
208
+ - Must have at least 1 specific question
209
+
210
+ ---
211
+
212
+ ### Section 11: Handoff Contract
213
+ ```markdown
214
+ ## Handoff Contract
215
+ ### Consumes
216
+ \`\`\`json
217
+ { "from": "...", "required_fields": [...], "optional_fields": [...] }
218
+ \`\`\`
219
+ ### Produces
220
+ \`\`\`json
221
+ { "to": "...", "output_fields": [...] }
222
+ \`\`\`
223
+ ```
224
+ **Lint Rules:**
225
+ - Both Consumes and Produces must be present
226
+ - `required_fields` must be a non-empty array
227
+ - `to` in Produces must reference a real skill name or "user"
228
+
229
+ ---
230
+
231
+ ### Section 12: Exit Codes Table
232
+ ```markdown
233
+ ## Exit Codes
234
+ | Code | Meaning | When |
235
+ |---------|---------|------|
236
+ | SUCCESS | ... | ... |
237
+ | PARTIAL | ... | ... |
238
+ | BLOCKED | ... | ... |
239
+ | FAILED | ... | ... |
240
+ ```
241
+ **Lint Rules:**
242
+ - Must have all 4 codes: SUCCESS, PARTIAL, BLOCKED, FAILED
243
+ - Each must have "When" column with specific trigger condition
244
+
245
+ ---
246
+
247
+ ### Section 13: Compliance Block (NEW — End of File)
248
+ ```markdown
249
+ ## Compliance
250
+ | Check | Status |
251
+ |----------------------|--------|
252
+ | Runtime Standard | 11/11 |
253
+ | Frontmatter Complete | ✅ |
254
+ | References Valid | ✅ |
255
+ | Decision Trees | PASS |
256
+ | Thresholds Defined | PASS |
257
+ | schema_version | 2 |
258
+ | runtime_version | 1 |
259
+ ```
260
+ **Lint Rules:**
261
+ - Must be the LAST section in every skill
262
+ - Must be auto-generated or manually updated on each change
263
+ - "References Valid" = all `references/*.md` files actually exist
264
+
265
+ ---
266
+
267
+ ## Reference Files Rule
268
+
269
+ If a SKILL.md mentions `references/[file].md`, that file MUST exist.
270
+
271
+ ```
272
+ LINT ERROR: qk-ui-audit references "references/anti-slop-checklist.md" — FILE NOT FOUND
273
+ ```
274
+
275
+ ---
276
+
277
+ ## Special Skill Exemptions
278
+
279
+ Some skills have reduced requirements:
280
+
281
+ | Skill Type | Exempted Sections |
282
+ |-----------|-------------------|
283
+ | Redirect skill (`qk-policy-engine`) | Sections 2-12 optional — must have redirect target |
284
+ | Help/Discovery skill (`qk-help`) | Sections 5-11 optional — must have skill list |
285
+
286
+ ---
287
+
288
+ ## Lint Scoring
289
+
290
+ ```
291
+ Total sections: 13 (including Compliance block)
292
+ Frontmatter: Pass/Fail (binary)
293
+
294
+ Score = (sections_present / 13) × 100
295
+
296
+ Grade:
297
+ 100% → COMPLIANT ✅
298
+ 90%+ → MINOR ISSUES ⚠️
299
+ 70%+ → NEEDS WORK ❌
300
+ <70% → NON-COMPLIANT 🔴
301
+ ```
302
+
303
+ ---
304
+
305
+ ## Version History
306
+
307
+ | schema_version | runtime_version | Changes |
308
+ |---------------|-----------------|---------|
309
+ | 1 | 1 | Initial V7.0 (YAML constraints only) |
310
+ | 2 | 1 | V7.5 Runtime Standard (11 sections + metadata) |
package/package.json CHANGED
@@ -1,22 +1,33 @@
1
1
  {
2
2
  "name": "ai-developer-skill-os",
3
- "version": "7.0.2",
4
- "description": "Behavior Specification Format Framework, AI coding agents (Claude, Cursor, Windsurf, Antigravity) với 23 skills chuyên nghiệp.",
3
+ "version": "7.5.0",
4
+ "description": "Behavior Specification Format Framework, AI coding agents (Claude, Cursor, Windsurf, Antigravity) với 22 skills chuyên nghiệp.",
5
5
  "main": "bin/install.js",
6
6
  "bin": {
7
7
  "ai-developer-skill-os": "bin/install.js",
8
8
  "ai-skill": "bin/install.js"
9
9
  },
10
10
  "type": "module",
11
+ "engines": {
12
+ "node": ">=18.0.0"
13
+ },
11
14
  "scripts": {
12
15
  "test": "vitest run",
13
16
  "test:watch": "vitest",
14
17
  "test:registry": "vitest run --config vitest.config.js",
15
- "lint": "echo \"No linter configured\" && exit 0"
18
+ "lint": "node bin/lint.js",
19
+ "install:antigravity": "node bin/install.js --ide=antigravity --scope=2",
20
+ "install:antigravity:local": "node bin/install.js --ide=antigravity --scope=1",
21
+ "install:cursor": "node bin/install.js --ide=cursor --scope=2",
22
+ "install:cursor:local": "node bin/install.js --ide=cursor --scope=1",
23
+ "install:windsurf": "node bin/install.js --ide=windsurf --scope=2",
24
+ "install:claude": "node bin/install.js --ide=claude --scope=2",
25
+ "install:kilo": "node bin/install.js --ide=kilo --scope=2",
26
+ "install:multi": "node bin/install.js --ide=multi-ide --scope=2"
16
27
  },
17
28
  "repository": {
18
29
  "type": "git",
19
- "url": "git+https://github.com/phamquangkhanh2999/ai-developer-skill-os.git"
30
+ "url": "https://github.com/phamquangkhanh2999/ai-developer-skill-os.git"
20
31
  },
21
32
  "keywords": [
22
33
  "ai",
package/patch.js ADDED
@@ -0,0 +1,15 @@
1
+ const fs = require('fs');
2
+ let content = fs.readFileSync('bin/install.js', 'utf8');
3
+
4
+ // Fix kiloConfig bug
5
+ content = content.replace(
6
+ "if (!Array.isArray(kiloConfig.skills) || typeof kiloConfig.skills !== 'object' || !kiloConfig.skills.paths) {",
7
+ "if (!kiloConfig.skills || typeof kiloConfig.skills !== 'object' || Array.isArray(kiloConfig.skills) || !kiloConfig.skills.paths) {"
8
+ );
9
+
10
+ // Replace interactive prompt
11
+ const startMarker = "rl.question(questionIde, (answerIde) => {";
12
+ const endMarker = "} catch (error) {\\n console.error('? C� l?i x?y ra trong qu� tr�nh c�i d?t:', error.message);\\n } finally {\\n rl.close();\\n }\\n });\\n});";
13
+
14
+ const startIdx = content.indexOf(startMarker);
15
+ // Actually simpler regex