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/.agents/AGENTS.md
CHANGED
|
@@ -1,89 +1,45 @@
|
|
|
1
|
-
# Global Agent Policies
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
**Rules:**
|
|
48
|
-
- **MUST** determine if the answer can be derived from the current context before calling any tool.
|
|
49
|
-
- **MUST NOT** use shell commands merely to explore the project (e.g., `pwd`, `ls`, `tree`, `find`) when structure is known.
|
|
50
|
-
|
|
51
|
-
**Guidelines:**
|
|
52
|
-
- **Order of Preference:** Current context → `read_file` → `grep_search` → `search_code` → `run_command`.
|
|
53
|
-
- **Batch Commands:** Batch related operations (e.g., `git status && git diff`).
|
|
54
|
-
- **Command Budget:** Maximum 3 shell commands before producing an initial diagnosis.
|
|
55
|
-
|
|
56
|
-
## 6. Execution & Repair Loop
|
|
57
|
-
**Rules:**
|
|
58
|
-
- **Repair Loop:** MUST follow: `Observe` → `Hypothesis` → `Evidence` → `Fix` → `Verify` → `Done`. Do NOT jump directly from Observe to Fix.
|
|
59
|
-
- **Self-Correction (Anti-Slop):** MUST proactively self-audit code (especially UI) against design constraints before emitting. Reject any generic, lazy, or "slop" solutions.
|
|
60
|
-
- **Escalation Policy:** If 2 consecutive attempts fail (e.g., build fail, permission denied): Stop. Explain the blocker. Request user confirmation before continuing.
|
|
61
|
-
- **Stopping Criteria:** Stop immediately when: Root cause identified, task completed, required evidence collected, or sufficient confidence reached.
|
|
62
|
-
|
|
63
|
-
**Guidelines:**
|
|
64
|
-
- **Cost Policy:** Optimize for: Correctness > Minimal Changes > Minimal Context > Minimal Tool Usage > Minimal Runtime.
|
|
65
|
-
|
|
66
|
-
## 7. Verification
|
|
67
|
-
**Rules:**
|
|
68
|
-
- **MUST** use the lowest verification level sufficient for the task.
|
|
69
|
-
- **MUST NOT** run build/test unless required by the task or needed for verification.
|
|
70
|
-
|
|
71
|
-
**Guidelines:**
|
|
72
|
-
- **Risk-based Verification:**
|
|
73
|
-
- **Level 0 (Low Risk):** Comment, typo, string changes. Static analysis only.
|
|
74
|
-
- **Level 1:** Read source code.
|
|
75
|
-
- **Level 2 (Medium Risk):** Logic changes. Run targeted test.
|
|
76
|
-
- **Level 3 (High Risk):** Auth, payment, database. Run full validation.
|
|
77
|
-
|
|
78
|
-
## 8. Output Policy
|
|
79
|
-
**Rules:**
|
|
80
|
-
- **MUST** use English for: Code, reasoning, architecture terms, file names, variables, technical decisions, Git commit messages, logs, and prompt logic (Workflow, Checklist).
|
|
81
|
-
- **MUST** use Vietnamese for: User-facing explanations, questions, summaries, progress updates, and the final report.
|
|
82
|
-
- **MUST NOT** translate: Code snippets, stack traces, file paths, shell commands, config keys, environment variables.
|
|
83
|
-
- **MUST** follow the required reporting structure (Summary, Changes, Reason, Verification, Risks, Next Action).
|
|
84
|
-
|
|
85
|
-
## 9. Design Contract (Open Design)
|
|
86
|
-
**Rules:**
|
|
87
|
-
- **MUST** locate and read `DESIGN.md` in the project root before performing any UI or frontend tasks.
|
|
88
|
-
- **MUST NOT** invent design tokens, colors, or typography that contradict `DESIGN.md`.
|
|
89
|
-
- **ENFORCEMENT:** If `DESIGN.md` is missing, the agent MUST request the user to create one (or use bootstrap skill) before continuing UI work.
|
|
2
|
+
<RULE[ai_skill_os]>
|
|
3
|
+
---
|
|
4
|
+
trigger: always_on
|
|
5
|
+
---
|
|
6
|
+
[Role]
|
|
7
|
+
You are an elite AI Software Engineer. You must strictly follow the rules in this project.
|
|
8
|
+
Vui lòng tìm đọc danh sách kỹ năng tại file `.agents/skills/skills.json`.
|
|
9
|
+
|
|
10
|
+
[Trigger Mechanism]
|
|
11
|
+
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 `.agents/skills/...` (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ò.
|
|
12
|
+
|
|
13
|
+
[Autonomous Execution & Transparency]
|
|
14
|
+
Khi nhận được lệnh kỹ năng, bạn BẮT BUỘC phải:
|
|
15
|
+
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.
|
|
16
|
+
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ờ.
|
|
17
|
+
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:
|
|
18
|
+
|
|
19
|
+
```markdown
|
|
20
|
+
🔧 <Tên Kỹ Năng> Summary
|
|
21
|
+
─────────────────────────────────────────────────
|
|
22
|
+
Scope: [Tóm tắt ngắn gọn phạm vi công việc]
|
|
23
|
+
Changes: [N file modified, N extracted, N removed]
|
|
24
|
+
|
|
25
|
+
Changes applied:
|
|
26
|
+
✅ [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...]
|
|
27
|
+
✅ [Loại hành động 2]: [Chi tiết những gì đã làm]
|
|
28
|
+
|
|
29
|
+
📊 Quality improvement:
|
|
30
|
+
Before: [Mô tả ngắn tình trạng trước khi sửa/làm]
|
|
31
|
+
After: [Mô tả sự cải thiện đạt được]
|
|
32
|
+
|
|
33
|
+
✅ Verification:
|
|
34
|
+
Tests: [Trạng thái test (vd: N/A, Pass)]
|
|
35
|
+
Lint/Types:[Trạng thái kiểm tra lỗi (vd: Clean)]
|
|
36
|
+
Behavior: [Kết quả hoạt động (vd: Unchanged, Improved)]
|
|
37
|
+
|
|
38
|
+
⚠️ Notes:
|
|
39
|
+
[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]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[Command Arguments]
|
|
43
|
+
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`).
|
|
44
|
+
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.
|
|
45
|
+
</RULE[ai_skill_os]>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the **AI Developer Skill OS** project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [7.0.2] - 2026-07-15
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Frontend Integration**: Added `qk-fe-api-integration` skill to strictly enforce zero-overhead base API consumption, DTO mapping, and resilient UI states.
|
|
12
|
+
|
|
13
|
+
## [7.0.0] - 2026-07-15
|
|
14
|
+
|
|
15
|
+
### Changed (The "Anti-Slop & Zero-Trust" Architecture Upgrade)
|
|
16
|
+
- **Zero-Trust Logic**: Core logic skills (`qk-context-loader`, `qk-orchestrator`, `qk-feature-delivery`) now mandate a Topological Context Graph prior to any code generation.
|
|
17
|
+
- **Strict Design Contract**: Frontend skills (`qk-ui-system-builder`, `qk-design-to-code`, `qk-ui-audit`) now explicitly reject generic styling (slop) and enforce strict token matching against a mandated `DESIGN.md`.
|
|
18
|
+
- **Repair Loop Enforcement**: `qk-bug-resolution` updated to strictly prohibit jumping to fixes without explicitly establishing an `Observe -> Hypothesis -> Evidence` chain.
|
|
19
|
+
- **Contract-First APIs**: `qk-api-lifecycle` now requires explicit OpenAPI/Swagger definitions prior to endpoint implementation.
|
|
20
|
+
- **Upgraded Testing Framework**: Fixed regex and validation logic in `behavior-conformance.test.js` to rigorously support YAML array strings and precise V7 markdown constraints. All 22 skills bumped to `v7.0.0`.
|
|
21
|
+
- **Project Bootstrapping**: `qk-project-bootstrap` now scaffolds `DESIGN.md` explicitly upon initialization.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [4.0.0] - 2026-07-02
|
|
25
|
+
|
|
26
|
+
### Changed (Major Architecture Upgrade)
|
|
27
|
+
- **Intent-Based Agent Architecture:** Replaced rule-based individual skill exceptions with global behavioral group classifications (Static Analysis, Development, Validation, Maintenance).
|
|
28
|
+
- **OS Kernel Refactor:** Completely rewrote `AGENTS.md` (the "OS Kernel") into a strictly organized, lightweight structure under 100 lines.
|
|
29
|
+
- **Progressive Evidence Collection:** Agents now enforce an 80% Confidence Threshold and incremental Context Budget (`1 file` → `3 files`) to prevent over-fetching and hallucination loops.
|
|
30
|
+
- **Cost & Escalation Policies:** Introduced strict cost-optimization logic, Stopping Criteria, and Escalation protocols to prevent infinite `run_command` retries.
|
|
31
|
+
- **Risk-based Verification:** Dynamic test execution based on the risk level of changes (Levels 0-3).
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- **Registry Validation Suite:** Full Vitest test suite enforcing SKILL.md frontmatter compliance against `docs/SPEC.md`.
|
|
35
|
+
- **GitHub Actions CI:** Automated validation on every PR and push to main.
|
|
36
|
+
- **Idempotent Installer:** `bin/install.js` now detects and updates existing rule blocks instead of duplicating them.
|
|
37
|
+
- **Kilo Code Native Support:** First-class support for `CLAUDE.md` + `kilo.json` config generation.
|
|
38
|
+
- **Governance Docs:** `docs/GOVERNANCE.md`, ADRs, and skill classification policy for enterprise maintainability.
|
|
39
|
+
- **Engineering Standards:** `qk-engineering-standard` and `qk-validation-gate` skills enforce SOLID, DRY, Clean Code, and mandatory quality gates.
|
|
40
|
+
|
|
41
|
+
## [1.0.1] - 2026-07-01
|
|
42
|
+
### Fixed
|
|
43
|
+
- Standardized Language rule across all 23 SKILL.md files for consistency.
|
|
44
|
+
- Updated registry version to match package.json.
|
|
45
|
+
|
|
46
|
+
## [1.0.0] - 2026-07-01
|
|
47
|
+
|
|
48
|
+
### Added
|
|
49
|
+
- Released the complete AI Developer Skill OS with 23 targeted skills for coding agents.
|
|
50
|
+
- **Engineering Core (8 skills):**
|
|
51
|
+
- `agent-orchestrator` for planning and delegating tasks.
|
|
52
|
+
- `context-manager` for project context and file selection.
|
|
53
|
+
- `project-audit` for 3-mode health checks.
|
|
54
|
+
- `bug-fix` with root cause analysis.
|
|
55
|
+
- `refactor` for safe, behavior-preserving code restructuring.
|
|
56
|
+
- `migration` for dependency updates and library swapping.
|
|
57
|
+
- `api-integration` for robust API connections.
|
|
58
|
+
- `git-engineer` for commit messages and PR documentation.
|
|
59
|
+
- **Frontend Core (11 skills):**
|
|
60
|
+
- `frontend-architecture`, `design-system`, `ui-builder`, `component-generator`.
|
|
61
|
+
- `state-management`, `form-builder`, `table-crud-generator`.
|
|
62
|
+
- `frontend-debug`, `frontend-testing`, `accessibility-audit`, `frontend-performance`.
|
|
63
|
+
- **Backend Core (4 skills):**
|
|
64
|
+
- `backend-architecture`, `database-engineer`, `auth-security`, `deployment`.
|
|
65
|
+
- Added comprehensive `skills.json` registry with dependencies and trigger keywords.
|
|
66
|
+
- Added bilingual `README.md` (English/Vietnamese).
|
|
67
|
+
- Added detailed user documentation in `docs/HUONG_DAN_SU_DUNG.md` and `docs/CHI_TIET_SKILLS.md`.
|
|
68
|
+
- Translated all skill frontmatter descriptions to Vietnamese for better UX in agent terminals.
|
|
69
|
+
- Included generic English and Vietnamese usage examples in `_template/examples/`.
|
package/.agents/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Quang Khánh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# 🚀 AI Developer Skill OS (ai-developer-skill-os) v7.0.0
|
|
2
|
+
|
|
3
|
+
> **V7.0.0 "Anti-Slop & Zero-Trust Architecture"**
|
|
4
|
+
|
|
5
|
+
Hệ sinh thái AI Developer Skill OS đã được tái cấu trúc hoàn toàn. Thay vì cung cấp các "công cụ rời rạc" (Toolbox), phiên bản V7 được thiết kế như một **Hệ điều hành khép kín, hoạt động theo kỷ luật của một Kiến trúc sư Hệ thống (50 năm kinh nghiệm)**.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🏗️ Triết Lý Hoạt Động Cốt Lõi (V7 Kernel)
|
|
10
|
+
|
|
11
|
+
### 1. Zero-Trust Context (Không bao giờ đoán mò)
|
|
12
|
+
Mọi kỹ năng phân tích logic và backend (như `qk-feature-delivery`, `qk-orchestrator`) đều bị khoá chặt, không được phép hoạt động nếu chưa có **Dependency Graph** (Bản đồ cấu trúc) từ `qk-context-loader`. AI không được phép thay đổi code dựa trên trí tưởng tượng.
|
|
13
|
+
|
|
14
|
+
### 2. Contract-First (Khế ước đi đầu)
|
|
15
|
+
- **Frontend / UI**: Mọi sửa đổi giao diện đều phải dựa trên `DESIGN.md`. Nếu vi phạm (tạo ra giao diện lười biếng "slop", dùng màu mặc định sai lệch), AI sẽ tự động bị đánh trượt bài kiểm toán.
|
|
16
|
+
- **Backend / API**: Mọi API phải được viết `OpenAPI/Swagger` schema trước khi viết logic thực tế (`qk-api-lifecycle`).
|
|
17
|
+
- **Database**: Cấm truy vấn mù. Bắt buộc phải có Schema định nghĩa rõ ràng trước (`qk-data-lifecycle`).
|
|
18
|
+
|
|
19
|
+
### 3. Repair Loop (Chu trình Sửa Lỗi Khép Kín)
|
|
20
|
+
Bảo vệ mã nguồn khỏi thói quen "sửa vội" của AI. Lỗi bắt buộc phải qua chu trình điều tra nghiêm ngặt: `Observe -> Hypothesis -> Evidence -> Fix -> Verify` (`qk-bug-resolution`).
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 🧩 Danh sách 23 Master Skills
|
|
25
|
+
|
|
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-policy-engine`, `qk-access-policy`
|
|
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
|
+
- **Validation & Standards:** `qk-validation-gate`, `qk-engineering-standard`, `qk-ui-audit`, `qk-project-health`, `qk-bug-resolution`
|
|
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`
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 💻 Cách Cài Đặt (Installation)
|
|
36
|
+
|
|
37
|
+
Sử dụng npm:
|
|
38
|
+
```bash
|
|
39
|
+
npm i -g ai-developer-skill-os
|
|
40
|
+
```
|
|
41
|
+
Hoặc khởi tạo thông qua `npx`:
|
|
42
|
+
```bash
|
|
43
|
+
npx ai-developer-skill-os init
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 🧪 Testing
|
|
47
|
+
|
|
48
|
+
Hệ thống được bảo vệ bằng bộ Test Suite (Vitest) để tự động kiểm toán tính hợp lệ của toàn bộ 23 file Kỹ năng trước khi xuất bản:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm test
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 🚀 Tra Cứu (Help)
|
|
55
|
+
|
|
56
|
+
Để tra cứu danh sách các Kỹ năng và luật lệ khắt khe của hệ thống V7, hãy gọi:
|
|
57
|
+
```bash
|
|
58
|
+
./qk-help
|
|
59
|
+
```
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qk-[tên-behavior]
|
|
3
|
+
version: 6.0.0
|
|
4
|
+
updated: 2026-07-10
|
|
5
|
+
description: Behavior Specification theo chuẩn BSF v6.0.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 📜 Behavior Specification: [Tên Behavior]
|
|
9
|
+
|
|
10
|
+
## 1. Behavior (Định danh Hành vi)
|
|
11
|
+
```yaml
|
|
12
|
+
Mission: [Mục tiêu tối thượng của hành vi này]
|
|
13
|
+
Authority: [Thẩm quyền tối đa được phép]
|
|
14
|
+
Responsibility: [Trách nhiệm cốt lõi]
|
|
15
|
+
Limitation: [Giới hạn tuyệt đối không được vượt qua]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 2. Contracts (Hợp đồng)
|
|
19
|
+
|
|
20
|
+
### 2.1. Capability Contract
|
|
21
|
+
```yaml
|
|
22
|
+
Can:
|
|
23
|
+
- [Hành động được phép: VD - read_docs, execute_tests]
|
|
24
|
+
Must:
|
|
25
|
+
- [Hành động bắt buộc: VD - verify assumptions before coding]
|
|
26
|
+
Cannot:
|
|
27
|
+
- [Hành động cấm: VD - invent API, drop database]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 2.2. Output Contract
|
|
31
|
+
```yaml
|
|
32
|
+
Artifacts:
|
|
33
|
+
- [Artifact 1: VD - plan.md]
|
|
34
|
+
- [Artifact 2: VD - summary_report]
|
|
35
|
+
Completion: "Artifacts generated & Quality Gates passed."
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 3. Policies (Chính sách)
|
|
39
|
+
|
|
40
|
+
### 3.1. Context Policy
|
|
41
|
+
```yaml
|
|
42
|
+
Scope: [current_repo | whole_workspace | external_docs]
|
|
43
|
+
Priority:
|
|
44
|
+
1: Project Docs
|
|
45
|
+
2: Current Conversation
|
|
46
|
+
3: Source Code
|
|
47
|
+
Trust: "official docs > code > assumptions"
|
|
48
|
+
Fallback: ask_user
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 3.2. Reasoning Boundary
|
|
52
|
+
```yaml
|
|
53
|
+
May infer: [VD: Variable naming, Local scope logic]
|
|
54
|
+
Must verify: [VD: Business logic, Auth rules]
|
|
55
|
+
Must ask: [VD: Missing edge cases, Vague requirements]
|
|
56
|
+
Must refuse: [VD: Unsafe assumptions, Security risks]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 3.3. Decision Policy
|
|
60
|
+
```yaml
|
|
61
|
+
Priority:
|
|
62
|
+
1: correctness
|
|
63
|
+
2: safety
|
|
64
|
+
3: maintainability
|
|
65
|
+
4: performance
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 3.4. Evidence Policy
|
|
69
|
+
```yaml
|
|
70
|
+
Accept: [logs, unit tests, profiling data]
|
|
71
|
+
Prefer: [official vendor docs, architecture repo docs]
|
|
72
|
+
Reject: [guess, outdated internet search, agent memory]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 3.5. Escalation Policy
|
|
76
|
+
```yaml
|
|
77
|
+
Warning: [Cảnh báo rủi ro (VD: Rename file)]
|
|
78
|
+
Confirmation: [Cần user cho phép (VD: Override config)]
|
|
79
|
+
Stop: [Dừng ngay lập tức (VD: Đụng vào Auth, Permission Denied)]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 4. Protocol (Tùy chọn)
|
|
83
|
+
*(Chỉ sử dụng nếu behavior này yêu cầu quy trình nhiều bước (State Machine). Xóa phần này nếu không cần thiết).*
|
|
84
|
+
|
|
85
|
+
```yaml
|
|
86
|
+
States:
|
|
87
|
+
- collect_context
|
|
88
|
+
- clarify
|
|
89
|
+
- execute
|
|
90
|
+
|
|
91
|
+
Transitions:
|
|
92
|
+
collect_context:
|
|
93
|
+
if context_missing: -> clarify
|
|
94
|
+
else: -> execute
|
|
95
|
+
# ... (Các rule chuyển trạng thái khác) ...
|
|
96
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
# AI Developer Skill OS
|
|
3
|
+
# Example usage file (English)
|
|
4
|
+
# Copy this as a starting point for your skill examples
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Example: [Skill Name]
|
|
8
|
+
|
|
9
|
+
## Input
|
|
10
|
+
|
|
11
|
+
**User request:**
|
|
12
|
+
```
|
|
13
|
+
[Describe what the user said or asked]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Project context:**
|
|
17
|
+
- Framework: [React 18 / Next.js 14 / Vue 3 / etc.]
|
|
18
|
+
- Relevant files: `[path/to/file.ts]`
|
|
19
|
+
- Current state: [Brief description]
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Execution
|
|
24
|
+
|
|
25
|
+
**Skill activated:** `[skill-name]`
|
|
26
|
+
|
|
27
|
+
**Phase 1 — Analysis:**
|
|
28
|
+
> [What the AI analyzed]
|
|
29
|
+
|
|
30
|
+
**Phase 2 — Plan:**
|
|
31
|
+
> [What the AI decided to do]
|
|
32
|
+
|
|
33
|
+
**Phase 3 — Output:**
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
// [filename.ts]
|
|
37
|
+
// [Generated or modified code]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Result
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
✅ Summary: [What was done]
|
|
46
|
+
📁 Files: [List of files]
|
|
47
|
+
⚠️ Warnings: [Any notes]
|
|
48
|
+
🔗 Next steps: [Follow-up suggestion]
|
|
49
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
# AI Developer Skill OS
|
|
3
|
+
# File ví dụ sử dụng (Tiếng Việt)
|
|
4
|
+
# Sao chép file này làm điểm khởi đầu cho ví dụ của bạn
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Ví dụ: [Tên Skill]
|
|
8
|
+
|
|
9
|
+
## Input (Đầu vào)
|
|
10
|
+
|
|
11
|
+
**Yêu cầu của người dùng:**
|
|
12
|
+
```
|
|
13
|
+
[Mô tả người dùng đã nói hoặc yêu cầu gì]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Bối cảnh dự án:**
|
|
17
|
+
- Framework: [React 18 / Next.js 14 / Vue 3 / v.v.]
|
|
18
|
+
- File liên quan: `[path/to/file.ts]`
|
|
19
|
+
- Trạng thái hiện tại: [Mô tả ngắn]
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Thực thi
|
|
24
|
+
|
|
25
|
+
**Skill được kích hoạt:** `[skill-name]`
|
|
26
|
+
|
|
27
|
+
**Phase 1 — Phân tích:**
|
|
28
|
+
> [AI đã phân tích gì]
|
|
29
|
+
|
|
30
|
+
**Phase 2 — Kế hoạch:**
|
|
31
|
+
> [AI quyết định làm gì]
|
|
32
|
+
|
|
33
|
+
**Phase 3 — Kết quả:**
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
// [filename.ts]
|
|
37
|
+
// [Code được tạo hoặc chỉnh sửa]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Kết quả
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
✅ Tóm tắt: [Đã làm gì]
|
|
46
|
+
📁 Files: [Danh sách file]
|
|
47
|
+
⚠️ Lưu ý: [Ghi chú quan trọng]
|
|
48
|
+
🔗 Bước tiếp theo: [Gợi ý skill hoặc hành động tiếp theo]
|
|
49
|
+
```
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Từ Điển Chi Tiết 22 Siêu Kỹ Năng (Master Skills)
|
|
2
|
+
|
|
3
|
+
Dưới đây là danh sách chi tiết và giải thích cụ thể cho toàn bộ 22 Kỹ năng thuộc Kiến trúc AI Developer Skill OS. Các kỹ năng được phân chia khép kín theo 7 lớp kiến trúc tiêu chuẩn cấp doanh nghiệp (Enterprise Architecture).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
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 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
|
+
|
|
10
|
+
### 1. `qk-orchestrator` (Trợ Lý Điều Phối)
|
|
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).
|
|
12
|
+
- **Khi nào dùng:** Khi bạn có một yêu cầu lớn và không biết bắt đầu từ đâu.
|
|
13
|
+
|
|
14
|
+
### 2. `qk-context-loader` (Nạp Ngữ Cảnh)
|
|
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
|
+
- **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
|
+
|
|
18
|
+
### 3. `qk-access-policy` (Kiểm Soát Phân Quyền)
|
|
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).
|
|
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.
|
|
21
|
+
|
|
22
|
+
### 4. `qk-project-memory` (Trí Nhớ Dự Án)
|
|
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.
|
|
24
|
+
- **Khi nào dùng:** Khi muốn AI làm theo đúng style đã có sẵn trong dự án.
|
|
25
|
+
|
|
26
|
+
### 5. `qk-engineering-standard` (Bộ Luật Thiết Kế)
|
|
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.
|
|
28
|
+
- **Khi nào dùng:** Tự động gọi để ép AI viết code không bị rác.
|
|
29
|
+
|
|
30
|
+
### 6. `qk-project-bootstrap` (Khởi Tạo Dự Án)
|
|
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).
|
|
32
|
+
- **Khi nào dùng:** Lúc bắt đầu dự án mới.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 🎨 Lớp 1: UI System Layer (Hệ Thống Giao Diện)
|
|
37
|
+
*Nhóm chuyên biệt về vẽ giao diện và quản lý hệ thống thành phần (Components).*
|
|
38
|
+
|
|
39
|
+
### 7. `qk-ui-system-builder` (Kỹ Sư Hệ Thống UI)
|
|
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.
|
|
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.
|
|
42
|
+
|
|
43
|
+
### 8. `qk-design-to-code` (Chuyển Đổi Thiết Kế)
|
|
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.).
|
|
45
|
+
- **Khi nào dùng:** Bóc tách UI từ bản thiết kế.
|
|
46
|
+
|
|
47
|
+
### 9. `qk-ui-audit` (Kiểm Toán Giao Diện)
|
|
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).
|
|
49
|
+
- **Khi nào dùng:** Kiểm tra lỗi UI sau khi hoàn thiện giao diện.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 💻 Lớp 2: Development Layer (Phát Triển E2E)
|
|
54
|
+
*Khối thực thi mạnh mẽ nhất, đi từ A-Z một tính năng cụ thể.*
|
|
55
|
+
|
|
56
|
+
### 10. `qk-feature-delivery` (Chuyển Giao Tính Năng)
|
|
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.
|
|
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).
|
|
59
|
+
|
|
60
|
+
### 11. `qk-api-lifecycle` (Vòng Đời API)
|
|
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.
|
|
62
|
+
- **Khi nào dùng:** Xây dựng các Endpoint API.
|
|
63
|
+
|
|
64
|
+
### 12. `qk-data-lifecycle` (Vòng Đời Dữ Liệu)
|
|
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.).
|
|
66
|
+
- **Khi nào dùng:** Thay đổi cấu trúc cơ sở dữ liệu.
|
|
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
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 🛡️ Lớp 3: Quality Assurance Layer (Đảm Bảo Chất Lượng)
|
|
79
|
+
*Kiểm tra độ sạch của code và diệt bug.*
|
|
80
|
+
|
|
81
|
+
### 15. `qk-project-health` (Kiểm Toán Dự Án)
|
|
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.
|
|
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.
|
|
84
|
+
|
|
85
|
+
### 16. `qk-bug-resolution` (Giải Quyết Bug Triệt Để)
|
|
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.
|
|
87
|
+
- **Khi nào dùng:** Sửa các lỗi đứt gãy hoặc logic nghiêm trọng.
|
|
88
|
+
|
|
89
|
+
### 17. `qk-validation-gate` (Cổng Kiểm Định)
|
|
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.
|
|
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.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 🚀 Lớp 4 & 5: Evolution & Operation (Vận Hành & Tiến Hóa)
|
|
96
|
+
*Triển khai dự án lên Production và nâng cấp phiên bản lớn.*
|
|
97
|
+
|
|
98
|
+
### 18. `qk-system-evolution` (Tiến Hóa Hệ Thống)
|
|
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.
|
|
100
|
+
- **Khi nào dùng:** Update version framework/thư viện.
|
|
101
|
+
|
|
102
|
+
### 19. `qk-production-release` (Triển Khai Môi Trường)
|
|
103
|
+
- **Mô tả:** Viết Dockerfile, cấu hình CI/CD Pipelines (Github Actions), Deploy lên Cloud (AWS, Vercel).
|
|
104
|
+
- **Khi nào dùng:** Release sản phẩm cho người dùng cuối.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 🤖 Lớp 6: AI Builder Layer (Tích hợp AI)
|
|
109
|
+
|
|
110
|
+
### 20. `qk-ai-builder` (Xây Dựng AI App)
|
|
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.
|
|
112
|
+
- **Khi nào dùng:** Tích hợp LLM vào trong phần mềm của bạn.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 📚 Lớp 7: Knowledge Layer (Tri Thức & Tài Liệu)
|
|
117
|
+
*Hệ thống tự học và viết tài liệu vĩ đại của OS.*
|
|
118
|
+
|
|
119
|
+
### 21. `qk-docs` (Kỹ Sư Tài Liệu)
|
|
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`.
|
|
121
|
+
- **Khi nào dùng:** Nằm ở cuối quy trình sau khi hoàn thành tính năng.
|
|
122
|
+
|
|
123
|
+
### 22. `qk-help` (Tra Cứu Nhanh)
|
|
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
|
+
- **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.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Project Governance
|
|
2
|
+
|
|
3
|
+
This document serves as the "Constitution" for the AI Developer Skill OS. It dictates how the project evolves, when core files can be modified, and how versions are incremented.
|
|
4
|
+
|
|
5
|
+
## 1. Core Philosophy
|
|
6
|
+
**Architecture-first, features-second.**
|
|
7
|
+
Before submitting any Pull Request, ask yourself:
|
|
8
|
+
1. *Does this change require modifying the OS Kernel (`AGENTS.md`)?*
|
|
9
|
+
2. *If not, can this be solved at the Skill, Knowledge, or Template layer?*
|
|
10
|
+
|
|
11
|
+
If the problem can be solved in a Skill, Knowledge document, or Template, **do not touch the Kernel**.
|
|
12
|
+
|
|
13
|
+
## 2. When to modify `AGENTS.md` (The Kernel)
|
|
14
|
+
The Kernel is **frozen**. Modifications to `AGENTS.md` are strictly prohibited unless:
|
|
15
|
+
- The change introduces a fundamentally new paradigm for ALL agents (e.g., a completely new approach to token management).
|
|
16
|
+
- A critical, framework-breaking hallucination loop is discovered that cannot be solved via Skill guidelines.
|
|
17
|
+
- **Requirement:** Any modification to `AGENTS.md` MUST be accompanied by a new Architecture Decision Record (ADR).
|
|
18
|
+
|
|
19
|
+
## 3. When to create an ADR (Architecture Decision Record)
|
|
20
|
+
ADRs (located in `docs/adr/`) must be created when:
|
|
21
|
+
- Modifying `AGENTS.md` or `SPEC.md`.
|
|
22
|
+
- Introducing a new lifecycle phase to the pipeline.
|
|
23
|
+
- Deprecating an existing core feature or standard tool.
|
|
24
|
+
|
|
25
|
+
## 4. Definition of a "Breaking Change"
|
|
26
|
+
A change is considered **Breaking** if it:
|
|
27
|
+
- Alters the required YAML frontmatter contract in `SPEC.md`.
|
|
28
|
+
- Changes the fundamental routing logic or expected `behavior` / `intent` mappings.
|
|
29
|
+
- Removes an existing global policy that downstream agents rely on.
|
|
30
|
+
|
|
31
|
+
## 5. Versioning Strategy (Semantic Versioning)
|
|
32
|
+
We strictly adhere to SemVer based on the framework's architecture, not just content.
|
|
33
|
+
- **MAJOR (e.g., v4.0.0 to v6.0.0):** Breaking changes to the Kernel (`AGENTS.md`), Metadata Contract (`SPEC.md`), or fundamental routing.
|
|
34
|
+
- **MINOR (e.g., v4.0.0 to v4.1.0):** Adding new Capabilities, new default Skills, new Knowledge docs, or new Templates.
|
|
35
|
+
- **PATCH (e.g., v4.0.0 to v4.0.1):** Fixing typos in docs, updating README, or minor bug fixes within an individual skill's SOP.
|
|
36
|
+
|
|
37
|
+
## 6. PR Review Process
|
|
38
|
+
1. **Architecture Compliance:** Does the PR violate the Kernel Freeze? Are all skills compliant with `SPEC.md`?
|
|
39
|
+
2. **Documentation Consistency:** Are the changes reflected in `CHANGELOG.md`?
|
|
40
|
+
3. **No Redundancy:** Ensure the PR does not re-introduce tool usage rules or verification overrides into individual skills.
|