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.
- package/.agents/AGENTS.md +44 -88
- package/.agents/CHANGELOG.md +69 -0
- package/.agents/LICENSE +21 -0
- package/.agents/README.md +59 -0
- package/.agents/_template/BEHAVIOR_SPEC.md +96 -0
- package/.agents/_template/examples/example-en.md +49 -0
- package/.agents/_template/examples/example-vi.md +49 -0
- package/.agents/docs/CHI_TIET_SKILLS.md +125 -0
- package/.agents/docs/GOVERNANCE.md +40 -0
- package/.agents/docs/HUONG_DAN_SU_DUNG.md +120 -0
- package/.agents/docs/SPEC.md +87 -0
- package/.agents/docs/adr/0001-intent-based-architecture.md +19 -0
- package/.agents/docs/adr/0002-kernel-freeze.md +21 -0
- package/.agents/docs/adr/0003-risk-based-verification.md +20 -0
- package/.agents/docs/adr/0004-progressive-evidence.md +19 -0
- package/.agents/docs/skill-classification.md +25 -0
- package/.agents/skills/qk-access-policy/SKILL.md +179 -0
- package/.agents/skills/qk-ai-builder/SKILL.md +215 -0
- package/.agents/skills/qk-api-lifecycle/SKILL.md +176 -0
- package/.agents/skills/qk-bug-resolution/SKILL.md +307 -0
- package/.agents/skills/qk-context-loader/SKILL.md +218 -0
- package/.agents/skills/qk-data-lifecycle/SKILL.md +192 -0
- package/.agents/skills/qk-db-optimizer/SKILL.md +196 -0
- package/.agents/skills/qk-design-to-code/SKILL.md +285 -0
- package/.agents/skills/qk-docs/SKILL.md +198 -0
- package/.agents/skills/qk-engineering-standard/SKILL.md +351 -0
- package/.agents/skills/qk-engineering-standard/rules/backend.md +122 -0
- package/.agents/skills/qk-engineering-standard/rules/database.md +3 -0
- package/.agents/skills/qk-engineering-standard/rules/frontend.md +152 -0
- package/.agents/skills/qk-engineering-standard/rules/security.md +3 -0
- package/.agents/skills/qk-engineering-standard/rules/testing.md +3 -0
- package/.agents/skills/qk-fe-api-integration/SKILL.md +326 -0
- package/.agents/skills/qk-feature-delivery/SKILL.md +305 -0
- package/.agents/skills/qk-help/SKILL.md +193 -0
- package/.agents/skills/qk-orchestrator/SKILL.md +277 -0
- package/.agents/skills/qk-orchestrator/references/routing-table.md +77 -0
- package/.agents/skills/qk-production-release/SKILL.md +284 -0
- package/.agents/skills/qk-project-bootstrap/SKILL.md +234 -0
- package/.agents/skills/qk-project-health/SKILL.md +199 -0
- package/.agents/skills/qk-project-memory/SKILL.md +172 -0
- package/.agents/skills/qk-system-evolution/SKILL.md +281 -0
- package/.agents/skills/qk-ui-audit/SKILL.md +314 -0
- package/.agents/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
- package/.agents/skills/qk-ui-system-builder/SKILL.md +221 -0
- package/.agents/skills/qk-validation-gate/SKILL.md +359 -0
- package/.agents/skills.json +819 -0
- package/.github/workflows/ci.yml +1 -1
- package/.qk-ai-skill-os/CHANGELOG.md +69 -0
- package/.qk-ai-skill-os/LICENSE +21 -0
- package/.qk-ai-skill-os/README.md +59 -0
- package/.qk-ai-skill-os/_template/BEHAVIOR_SPEC.md +96 -0
- package/.qk-ai-skill-os/_template/examples/example-en.md +49 -0
- package/.qk-ai-skill-os/_template/examples/example-vi.md +49 -0
- package/.qk-ai-skill-os/docs/CHI_TIET_SKILLS.md +125 -0
- package/.qk-ai-skill-os/docs/GOVERNANCE.md +40 -0
- package/.qk-ai-skill-os/docs/HUONG_DAN_SU_DUNG.md +120 -0
- package/.qk-ai-skill-os/docs/SPEC.md +87 -0
- package/.qk-ai-skill-os/docs/adr/0001-intent-based-architecture.md +19 -0
- package/.qk-ai-skill-os/docs/adr/0002-kernel-freeze.md +21 -0
- package/.qk-ai-skill-os/docs/adr/0003-risk-based-verification.md +20 -0
- package/.qk-ai-skill-os/docs/adr/0004-progressive-evidence.md +19 -0
- package/.qk-ai-skill-os/docs/skill-classification.md +25 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +121 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +179 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-api-integration/SKILL.md +389 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-auth-security/SKILL.md +96 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +125 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-bug-fix/SKILL.md +213 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-component-generator/SKILL.md +136 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-context-manager/SKILL.md +175 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-database-engineer/SKILL.md +104 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-deployment/SKILL.md +96 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-design-system/SKILL.md +137 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-form-builder/SKILL.md +140 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +155 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +133 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +129 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +146 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-git-engineer/SKILL.md +304 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-help/SKILL.md +68 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-migration/SKILL.md +284 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-project-audit/SKILL.md +280 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-refactor/SKILL.md +222 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-state-management/SKILL.md +140 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +127 -0
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-ui-builder/SKILL.md +152 -0
- package/.qk-ai-skill-os/skills/_template/SKILL.md +238 -0
- package/.qk-ai-skill-os/skills/qk-access-policy/SKILL.md +179 -0
- package/.qk-ai-skill-os/skills/qk-ai-builder/SKILL.md +221 -0
- package/.qk-ai-skill-os/skills/qk-api-lifecycle/SKILL.md +176 -0
- package/.qk-ai-skill-os/skills/qk-bug-resolution/SKILL.md +307 -0
- package/.qk-ai-skill-os/skills/qk-context-loader/SKILL.md +218 -0
- package/.qk-ai-skill-os/skills/qk-data-lifecycle/SKILL.md +192 -0
- package/.qk-ai-skill-os/skills/qk-db-optimizer/SKILL.md +196 -0
- package/.qk-ai-skill-os/skills/qk-design-to-code/SKILL.md +291 -0
- package/.qk-ai-skill-os/skills/qk-docs/SKILL.md +198 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/SKILL.md +351 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/backend.md +122 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/database.md +3 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/frontend.md +152 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/security.md +3 -0
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/testing.md +3 -0
- package/.qk-ai-skill-os/skills/qk-fe-api-integration/SKILL.md +326 -0
- package/.qk-ai-skill-os/skills/qk-feature-delivery/SKILL.md +305 -0
- package/.qk-ai-skill-os/skills/qk-help/SKILL.md +193 -0
- package/.qk-ai-skill-os/skills/qk-orchestrator/SKILL.md +277 -0
- package/.qk-ai-skill-os/skills/qk-orchestrator/references/routing-table.md +77 -0
- package/.qk-ai-skill-os/skills/qk-production-release/SKILL.md +290 -0
- package/.qk-ai-skill-os/skills/qk-project-bootstrap/SKILL.md +240 -0
- package/.qk-ai-skill-os/skills/qk-project-health/SKILL.md +199 -0
- package/.qk-ai-skill-os/skills/qk-project-memory/SKILL.md +172 -0
- package/.qk-ai-skill-os/skills/qk-system-evolution/SKILL.md +285 -0
- package/.qk-ai-skill-os/skills/qk-ui-audit/SKILL.md +314 -0
- package/.qk-ai-skill-os/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
- package/.qk-ai-skill-os/skills/qk-ui-system-builder/SKILL.md +225 -0
- package/.qk-ai-skill-os/skills/qk-validation-gate/SKILL.md +361 -0
- package/.qk-ai-skill-os/skills.json +819 -0
- package/CLAUDE.md +110 -0
- package/README.md +25 -3
- package/add_lang.js +21 -0
- package/add_lang.py +25 -0
- package/add_sections.py +53 -0
- package/bin/install.js +225 -170
- package/bin/lint.js +122 -0
- package/docs/CHI_TIET_SKILLS.md +26 -26
- package/docs/HUONG_DAN_SU_DUNG.md +3 -3
- package/docs/SPEC.md +70 -20
- package/framework/skill-schema.md +310 -0
- package/package.json +15 -4
- package/patch.js +15 -0
- package/patch.py +89 -0
- package/patch2.py +83 -0
- package/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-api-integration/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-auth-security/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-bug-fix/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-component-generator/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-context-manager/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-database-engineer/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-deployment/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-design-system/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-form-builder/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-git-engineer/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-help/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-migration/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-project-audit/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-refactor/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-state-management/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +1 -0
- package/skills/_archive_old_skills/qk-ui-builder/SKILL.md +1 -0
- package/skills/_template/SKILL.md +238 -0
- package/skills/qk-access-policy/SKILL.md +179 -39
- package/skills/qk-ai-builder/SKILL.md +215 -40
- package/skills/qk-api-lifecycle/SKILL.md +176 -46
- package/skills/qk-bug-resolution/SKILL.md +307 -46
- package/skills/qk-context-loader/SKILL.md +218 -43
- package/skills/qk-data-lifecycle/SKILL.md +192 -44
- package/skills/qk-db-optimizer/SKILL.md +196 -41
- package/skills/qk-design-to-code/SKILL.md +285 -46
- package/skills/qk-docs/SKILL.md +198 -40
- package/skills/qk-engineering-standard/SKILL.md +351 -42
- package/skills/qk-fe-api-integration/SKILL.md +326 -55
- package/skills/qk-feature-delivery/SKILL.md +305 -48
- package/skills/qk-help/SKILL.md +178 -23
- package/skills/qk-orchestrator/SKILL.md +277 -42
- package/skills/qk-orchestrator/references/routing-table.md +77 -0
- package/skills/qk-production-release/SKILL.md +284 -41
- package/skills/qk-project-bootstrap/SKILL.md +234 -38
- package/skills/qk-project-health/SKILL.md +199 -40
- package/skills/qk-project-memory/SKILL.md +172 -40
- package/skills/qk-system-evolution/SKILL.md +281 -40
- package/skills/qk-ui-audit/SKILL.md +314 -42
- package/skills/qk-ui-audit/references/anti-slop-checklist.md +136 -0
- package/skills/qk-ui-system-builder/SKILL.md +221 -43
- package/skills/qk-validation-gate/SKILL.md +359 -40
- package/skills.json +813 -824
- package/specs/fixtures/user-payload.json +12 -0
- package/specs/regressions/api-integration-null-fields.yaml +19 -0
- package/temp_fix.js +61 -0
- package/tests/registry.test.js +1 -1
- package/update_template.js +28 -0
- package/skills/qk-policy-engine/SKILL.md +0 -39
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
[Role]
|
|
2
|
+
You are an elite AI Software Engineer. You must strictly follow the rules in this project.
|
|
3
|
+
Vui lòng tìm đọc danh sách kỹ năng tại file `./.qk-ai-skill-os/skills.json`.
|
|
4
|
+
|
|
5
|
+
[Trigger Mechanism]
|
|
6
|
+
Bất cứ khi nào người dùng gõ lệnh bắt đầu bằng `./qk-[tên-skill]`, bạn BẮT BUỘC phải đọc file `SKILL.md` tương ứng trong thư mục `./.qk-ai-skill-os/...` (hoặc dùng tool view_file để đọc file đó) trước khi làm bất cứ việc gì. Đừng bao giờ đoán mò.
|
|
7
|
+
|
|
8
|
+
[Autonomous Execution & Transparency]
|
|
9
|
+
Khi nhận được lệnh kỹ năng, bạn BẮT BUỘC phải:
|
|
10
|
+
1. Thông báo rõ ràng: "[🚀 AI Developer Skin: Đã kích hoạt kỹ năng <tên-skill>]" ngay dòng đầu tiên.
|
|
11
|
+
2. TỰ ĐỘNG THỰC THI (End-to-End): Dùng các tools của bạn (đọc file, sửa code, chạy lệnh) để tự động hoàn thành 100% mục tiêu được giao. KHÔNG ĐƯỢC dừng lại để hỏi ý kiến trừ khi gặp lỗi chí mạng hoặc requirement quá mập mờ.
|
|
12
|
+
3. BÁO CÁO KẾT QUẢ: Sau khi hoàn tất sửa code, LUÔN trả về báo cáo theo đúng format markdown dưới đây:
|
|
13
|
+
|
|
14
|
+
```markdown
|
|
15
|
+
🔧 <Tên Kỹ Năng> Summary
|
|
16
|
+
─────────────────────────────────────────────────
|
|
17
|
+
Scope: [Tóm tắt ngắn gọn phạm vi công việc]
|
|
18
|
+
Changes: [N file modified, N extracted, N removed]
|
|
19
|
+
|
|
20
|
+
Changes applied:
|
|
21
|
+
✅ [Loại hành động 1]: [Chi tiết những gì đã làm, ví dụ: Ngăn chặn lỗi lặp vô hạn...]
|
|
22
|
+
✅ [Loại hành động 2]: [Chi tiết những gì đã làm]
|
|
23
|
+
|
|
24
|
+
📊 Quality improvement:
|
|
25
|
+
Before: [Mô tả ngắn tình trạng trước khi sửa/làm]
|
|
26
|
+
After: [Mô tả sự cải thiện đạt được]
|
|
27
|
+
|
|
28
|
+
✅ Verification:
|
|
29
|
+
Tests: [Trạng thái test (vd: N/A, Pass)]
|
|
30
|
+
Lint/Types:[Trạng thái kiểm tra lỗi (vd: Clean)]
|
|
31
|
+
Behavior: [Kết quả hoạt động (vd: Unchanged, Improved)]
|
|
32
|
+
|
|
33
|
+
⚠️ Notes:
|
|
34
|
+
[Các lưu ý đặc biệt, rủi ro tiềm ẩn hoặc cách người dùng có thể test lại tính năng này]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[Command Arguments]
|
|
38
|
+
Người dùng có thể truyền thêm tham số vào lệnh (ví dụ: `./qk-ui-builder --fw=react --css=tailwind`).
|
|
39
|
+
Nếu người dùng sử dụng tham số (argument), bạn BẮT BUỘC phải tuân thủ tuyệt đối các công nghệ/yêu cầu được chỉ định trong tham số đó thay vì dùng mặc định.
|
|
40
|
+
]
|
|
41
|
+
Bất cứ khi nào người dùng gõ lệnh bắt đầu bằng `./qk-[tên-skill]`, bạn BẮT BUỘC phải đọc file `SKILL.md` tương ứng trong thư mục `./.qk-ai-skill-os/...` (hoặc dùng tool view_file để đọc file đó) trước khi làm bất cứ việc gì. Đừng bao giờ đoán mò.
|
|
42
|
+
|
|
43
|
+
[Autonomous Execution & Transparency]
|
|
44
|
+
Khi nhận được lệnh kỹ năng, bạn BẮT BUỘC phải:
|
|
45
|
+
1. Thông báo rõ ràng: "[🚀 AI Developer Skin: Đã kích hoạt kỹ năng <tên-skill>]" ngay dòng đầu tiên.
|
|
46
|
+
2. TỰ ĐỘNG THỰC THI (End-to-End): Dùng các tools của bạn (đọc file, sửa code, chạy lệnh) để tự động hoàn thành 100% mục tiêu được giao. KHÔNG ĐƯỢC dừng lại để hỏi ý kiến trừ khi gặp lỗi chí mạng hoặc requirement quá mập mờ.
|
|
47
|
+
3. BÁO CÁO KẾT QUẢ: Sau khi hoàn tất sửa code, LUÔN trả về báo cáo theo đúng format markdown dưới đây:
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
🔧 <Tên Kỹ Năng> Summary
|
|
51
|
+
─────────────────────────────────────────────────
|
|
52
|
+
Scope: [Tóm tắt ngắn gọn phạm vi công việc]
|
|
53
|
+
Changes: [N file modified, N extracted, N removed]
|
|
54
|
+
|
|
55
|
+
Changes applied:
|
|
56
|
+
✅ [Loại hành động 1]: [Chi tiết những gì đã làm, ví dụ: Ngăn chặn lỗi lặp vô hạn...]
|
|
57
|
+
✅ [Loại hành động 2]: [Chi tiết những gì đã làm]
|
|
58
|
+
|
|
59
|
+
📊 Quality improvement:
|
|
60
|
+
Before: [Mô tả ngắn tình trạng trước khi sửa/làm]
|
|
61
|
+
After: [Mô tả sự cải thiện đạt được]
|
|
62
|
+
|
|
63
|
+
✅ Verification:
|
|
64
|
+
Tests: [Trạng thái test (vd: N/A, Pass)]
|
|
65
|
+
Lint/Types:[Trạng thái kiểm tra lỗi (vd: Clean)]
|
|
66
|
+
Behavior: [Kết quả hoạt động (vd: Unchanged, Improved)]
|
|
67
|
+
|
|
68
|
+
⚠️ Notes:
|
|
69
|
+
[Các lưu ý đặc biệt, rủi ro tiềm ẩn hoặc cách người dùng có thể test lại tính năng này]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
[Command Arguments]
|
|
73
|
+
Người dùng có thể truyền thêm tham số vào lệnh (ví dụ: `./qk-ui-builder --fw=react --css=tailwind`).
|
|
74
|
+
Nếu người dùng sử dụng tham số (argument), bạn BẮT BUỘC phải tuân thủ tuyệt đối các công nghệ/yêu cầu được chỉ định trong tham số đó thay vì dùng mặc định.
|
|
75
|
+
]
|
|
76
|
+
Bất cứ khi nào người dùng gõ lệnh bắt đầu bằng `./qk-[tên-skill]`, bạn BẮT BUỘC phải đọc file `SKILL.md` tương ứng trong thư mục `./.qk-ai-skill-os/...` (hoặc dùng tool view_file để đọc file đó) trước khi làm bất cứ việc gì. Đừng bao giờ đoán mò.
|
|
77
|
+
|
|
78
|
+
[Autonomous Execution & Transparency]
|
|
79
|
+
Khi nhận được lệnh kỹ năng, bạn BẮT BUỘC phải:
|
|
80
|
+
1. Thông báo rõ ràng: "[🚀 AI Developer Skin: Đã kích hoạt kỹ năng <tên-skill>]" ngay dòng đầu tiên.
|
|
81
|
+
2. TỰ ĐỘNG THỰC THI (End-to-End): Dùng các tools của bạn (đọc file, sửa code, chạy lệnh) để tự động hoàn thành 100% mục tiêu được giao. KHÔNG ĐƯỢC dừng lại để hỏi ý kiến trừ khi gặp lỗi chí mạng hoặc requirement quá mập mờ.
|
|
82
|
+
3. BÁO CÁO KẾT QUẢ: Sau khi hoàn tất sửa code, LUÔN trả về báo cáo theo đúng format markdown dưới đây:
|
|
83
|
+
|
|
84
|
+
```markdown
|
|
85
|
+
🔧 <Tên Kỹ Năng> Summary
|
|
86
|
+
─────────────────────────────────────────────────
|
|
87
|
+
Scope: [Tóm tắt ngắn gọn phạm vi công việc]
|
|
88
|
+
Changes: [N file modified, N extracted, N removed]
|
|
89
|
+
|
|
90
|
+
Changes applied:
|
|
91
|
+
✅ [Loại hành động 1]: [Chi tiết những gì đã làm, ví dụ: Ngăn chặn lỗi lặp vô hạn...]
|
|
92
|
+
✅ [Loại hành động 2]: [Chi tiết những gì đã làm]
|
|
93
|
+
|
|
94
|
+
📊 Quality improvement:
|
|
95
|
+
Before: [Mô tả ngắn tình trạng trước khi sửa/làm]
|
|
96
|
+
After: [Mô tả sự cải thiện đạt được]
|
|
97
|
+
|
|
98
|
+
✅ Verification:
|
|
99
|
+
Tests: [Trạng thái test (vd: N/A, Pass)]
|
|
100
|
+
Lint/Types:[Trạng thái kiểm tra lỗi (vd: Clean)]
|
|
101
|
+
Behavior: [Kết quả hoạt động (vd: Unchanged, Improved)]
|
|
102
|
+
|
|
103
|
+
⚠️ Notes:
|
|
104
|
+
[Các lưu ý đặc biệt, rủi ro tiềm ẩn hoặc cách người dùng có thể test lại tính năng này]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
[Command Arguments]
|
|
108
|
+
Người dùng có thể truyền thêm tham số vào lệnh (ví dụ: `./qk-ui-builder --fw=react --css=tailwind`).
|
|
109
|
+
Nếu người dùng sử dụng tham số (argument), bạn BẮT BUỘC phải tuân thủ tuyệt đối các công nghệ/yêu cầu được chỉ định trong tham số đó thay vì dùng mặc định.
|
|
110
|
+
|
package/README.md
CHANGED
|
@@ -21,14 +21,14 @@ Bảo vệ mã nguồn khỏi thói quen "sửa vội" của AI. Lỗi bắt bu
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
## 🧩 Danh sách
|
|
24
|
+
## 🧩 Danh sách 22 Master Skills
|
|
25
25
|
|
|
26
26
|
Các kỹ năng được quản lý cực kỳ chặt chẽ với bài kiểm tra tự động (Vitest) để đảm bảo tính nhất quán của luật lệ:
|
|
27
|
-
- **Orchestration:** `qk-orchestrator`, `qk-context-loader`, `qk-
|
|
27
|
+
- **Orchestration:** `qk-orchestrator`, `qk-context-loader`, `qk-access-policy`
|
|
28
28
|
- **Engineering / Dev:** `qk-feature-delivery`, `qk-api-lifecycle`, `qk-fe-api-integration`, `qk-data-lifecycle`, `qk-design-to-code`, `qk-ui-system-builder`
|
|
29
29
|
- **Validation & Standards:** `qk-validation-gate`, `qk-engineering-standard`, `qk-ui-audit`, `qk-project-health`, `qk-bug-resolution`
|
|
30
30
|
- **Ops & AI:** `qk-system-evolution`, `qk-production-release`, `qk-ai-builder`, `qk-project-bootstrap`
|
|
31
|
-
- **Docs & Utils:** `qk-docs`, `qk-project-memory`, `qk-help`
|
|
31
|
+
- **Docs & Utils:** `qk-docs`, `qk-project-memory`, `qk-help`, `qk-db-optimizer`
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
@@ -38,6 +38,28 @@ Sử dụng npm:
|
|
|
38
38
|
```bash
|
|
39
39
|
npm i -g ai-developer-skill-os
|
|
40
40
|
```
|
|
41
|
+
|
|
42
|
+
### Antigravity (Global)
|
|
43
|
+
Cài 1 lần, áp dụng cho mọi dự án trên máy:
|
|
44
|
+
```bash
|
|
45
|
+
npm run install:antigravity
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Antigravity (Local — per project)
|
|
49
|
+
Cài riêng cho dự án hiện tại, override global:
|
|
50
|
+
```bash
|
|
51
|
+
npm run install:antigravity:local
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Các IDE khác
|
|
55
|
+
```bash
|
|
56
|
+
npm run install:cursor # Global Cursor
|
|
57
|
+
npm run install:windsurf # Global Windsurf
|
|
58
|
+
npm run install:claude # Global Claude Code
|
|
59
|
+
npm run install:kilo # Global Kilo Code
|
|
60
|
+
npm run install:multi # Multi-IDE (CLAUDE.md + .qk-ai-skill-os)
|
|
61
|
+
```
|
|
62
|
+
|
|
41
63
|
Hoặc khởi tạo thông qua `npx`:
|
|
42
64
|
```bash
|
|
43
65
|
npx ai-developer-skill-os init
|
package/add_lang.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const skillsDir = path.join(__dirname, 'skills');
|
|
5
|
+
const items = fs.readdirSync(skillsDir);
|
|
6
|
+
|
|
7
|
+
for (const item of items) {
|
|
8
|
+
if (item === '_template' || item === 'qk-policy-engine') continue;
|
|
9
|
+
|
|
10
|
+
const skillDir = path.join(skillsDir, item);
|
|
11
|
+
if (fs.statSync(skillDir).isDirectory() && item.startsWith('qk-')) {
|
|
12
|
+
const skillMdPath = path.join(skillDir, 'SKILL.md');
|
|
13
|
+
if (fs.existsSync(skillMdPath)) {
|
|
14
|
+
let content = fs.readFileSync(skillMdPath, 'utf8');
|
|
15
|
+
if (!content.includes('> **Language rule:**')) {
|
|
16
|
+
content = content.replace(/^# (.*)/m, '# \n\n> **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.');
|
|
17
|
+
fs.writeFileSync(skillMdPath, content);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
package/add_lang.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
skills_dir = 'skills'
|
|
4
|
+
|
|
5
|
+
for item in os.listdir(skills_dir):
|
|
6
|
+
if item == '_template' or item == 'qk-policy-engine':
|
|
7
|
+
continue
|
|
8
|
+
|
|
9
|
+
skill_path = os.path.join(skills_dir, item, 'SKILL.md')
|
|
10
|
+
if os.path.isfile(skill_path):
|
|
11
|
+
with open(skill_path, 'r', encoding='utf-8') as f:
|
|
12
|
+
content = f.read()
|
|
13
|
+
|
|
14
|
+
if "> **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese." not in content:
|
|
15
|
+
# Look for "> **Language rule:**"
|
|
16
|
+
if "> **Language rule:**" in content:
|
|
17
|
+
import re
|
|
18
|
+
content = re.sub(r'> \*\*Language rule:\*\*.*', '> **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.', content)
|
|
19
|
+
else:
|
|
20
|
+
# Add it after the first # header
|
|
21
|
+
import re
|
|
22
|
+
content = re.sub(r'(# .*?\n)', r'\1\n> **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.\n', content, count=1)
|
|
23
|
+
|
|
24
|
+
with open(skill_path, 'w', encoding='utf-8') as f:
|
|
25
|
+
f.write(content)
|
package/add_sections.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
skills_dir = 'skills'
|
|
4
|
+
required_sections = [
|
|
5
|
+
'Goal',
|
|
6
|
+
'Context',
|
|
7
|
+
'Inputs',
|
|
8
|
+
'Chain of Thought',
|
|
9
|
+
'Constraints',
|
|
10
|
+
'Policies',
|
|
11
|
+
'Exit Codes',
|
|
12
|
+
'Confidence Model',
|
|
13
|
+
'Severity',
|
|
14
|
+
'Retry Policy',
|
|
15
|
+
'Escalation Rules'
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
for item in os.listdir(skills_dir):
|
|
19
|
+
if item == '_template' or item == 'qk-policy-engine':
|
|
20
|
+
continue
|
|
21
|
+
|
|
22
|
+
skill_path = os.path.join(skills_dir, item, 'SKILL.md')
|
|
23
|
+
if os.path.isfile(skill_path):
|
|
24
|
+
with open(skill_path, 'r', encoding='utf-8') as f:
|
|
25
|
+
content = f.read()
|
|
26
|
+
|
|
27
|
+
missing_sections = []
|
|
28
|
+
for section in required_sections:
|
|
29
|
+
if f"## {section}" not in content:
|
|
30
|
+
missing_sections.append(section)
|
|
31
|
+
|
|
32
|
+
if missing_sections:
|
|
33
|
+
appends = "\n\n" + "\n\n".join([f"## {section}\n[Placeholder for {section}]" for section in missing_sections])
|
|
34
|
+
|
|
35
|
+
# Insert before ## Compliance if it exists
|
|
36
|
+
if "## Compliance" in content:
|
|
37
|
+
content = content.replace("## Compliance", appends.lstrip() + "\n\n## Compliance")
|
|
38
|
+
else:
|
|
39
|
+
content += appends
|
|
40
|
+
|
|
41
|
+
with open(skill_path, 'w', encoding='utf-8') as f:
|
|
42
|
+
f.write(content)
|
|
43
|
+
|
|
44
|
+
# Add ## Scope for the vitest if missing
|
|
45
|
+
if "## Scope" not in content:
|
|
46
|
+
with open(skill_path, 'r', encoding='utf-8') as f:
|
|
47
|
+
content = f.read()
|
|
48
|
+
if "## Compliance" in content:
|
|
49
|
+
content = content.replace("## Compliance", "## Scope\nAll.\n\n## Compliance")
|
|
50
|
+
else:
|
|
51
|
+
content += "\n\n## Scope\nAll."
|
|
52
|
+
with open(skill_path, 'w', encoding='utf-8') as f:
|
|
53
|
+
f.write(content)
|