ai-developer-skill-os 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/AGENTS.md +79 -46
- package/.github/workflows/ci.yml +56 -0
- package/CHANGELOG.md +53 -36
- package/README.md +97 -77
- package/bin/install.js +14 -2
- package/docs/GOVERNANCE.md +40 -0
- package/docs/SPEC.md +37 -0
- package/docs/adr/0001-intent-based-architecture.md +19 -0
- package/docs/adr/0002-kernel-freeze.md +21 -0
- package/docs/adr/0003-risk-based-verification.md +20 -0
- package/docs/adr/0004-progressive-evidence.md +19 -0
- package/docs/skill-classification.md +25 -0
- package/knowledge/backend/nodejs.md +52 -0
- package/knowledge/frontend/react.md +54 -0
- package/package.json +44 -34
- package/skills/qk-access-policy/SKILL.md +8 -1
- package/skills/qk-ai-builder/SKILL.md +8 -1
- package/skills/qk-api-lifecycle/SKILL.md +9 -1
- package/skills/qk-bug-resolution/SKILL.md +11 -2
- package/skills/qk-context-loader/SKILL.md +9 -1
- package/skills/qk-data-lifecycle/SKILL.md +9 -1
- package/skills/qk-design-to-code/SKILL.md +8 -1
- package/skills/qk-docs/SKILL.md +9 -1
- package/skills/qk-documentation-system/SKILL.md +8 -1
- package/skills/qk-engineering-standard/SKILL.md +10 -2
- package/skills/qk-feature-delivery/SKILL.md +12 -2
- package/skills/qk-help/SKILL.md +8 -1
- package/skills/qk-orchestrator/SKILL.md +9 -1
- package/skills/qk-policy-engine/SKILL.md +9 -1
- package/skills/qk-production-release/SKILL.md +9 -2
- package/skills/qk-project-bootstrap/SKILL.md +8 -1
- package/skills/qk-project-health/SKILL.md +10 -2
- package/skills/qk-project-memory/SKILL.md +8 -1
- package/skills/qk-system-evolution/SKILL.md +10 -2
- package/skills/qk-ui-audit/SKILL.md +10 -2
- package/skills/qk-ui-system-builder/SKILL.md +8 -1
- package/skills/qk-validation-gate/SKILL.md +10 -2
- package/skills.json +433 -556
- package/templates/skill-template.md +38 -0
- package/tests/install-script.test.js +38 -0
- package/tests/registry.test.js +111 -0
- package/tests/spec-compliance.test.js +193 -0
- package/vitest.config.js +11 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-engineering-standard
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Enforce SOLID, DRY, Clean Code, and Naming conventions.
|
|
6
6
|
category: standard
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: critical
|
|
8
10
|
tags: [clean-code, architecture, refactoring, solid]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, review, implement, validate, complete]
|
|
|
19
21
|
> **Goal:** Đóng vai trò là "Kiến trúc sư trưởng", rà soát và ép buộc mã nguồn phải tuân thủ chuẩn mực Clean Code, dễ đọc và dễ bảo trì.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Context Review):**
|
|
23
26
|
- Scan the target file(s) and determine their role (UI, Logic, API, Config).
|
|
24
27
|
2. **Review (Smell Detection):**
|
|
@@ -32,12 +35,14 @@ pipeline: [analyze, review, implement, validate, complete]
|
|
|
32
35
|
4. **Verify (Validation):**
|
|
33
36
|
- Ensure the refactoring did NOT change the business logic or behavior of the app (Regression check).
|
|
34
37
|
|
|
35
|
-
## 🛡️
|
|
38
|
+
## 🛡️ 3. Constraints & Rules
|
|
39
|
+
|
|
36
40
|
- **Code is for Humans:** Write code that junior developers can easily understand. Avoid overly clever or obscure syntax.
|
|
37
41
|
- **Scope Limit:** Do NOT refactor the entire project if the user only asked to review one file. Limit the scope to the current task context.
|
|
38
42
|
- **Preserve Behavior:** Refactoring must strictly preserve backward compatibility.
|
|
39
43
|
|
|
40
44
|
## 🌳 3. Decision Tree
|
|
45
|
+
|
|
41
46
|
```text
|
|
42
47
|
Is the file larger than 300 lines?
|
|
43
48
|
├── YES → Propose splitting the file into sub-components or moving logic to hooks.
|
|
@@ -49,11 +54,14 @@ Does the React Component contain `fetch()` or heavy data mapping?
|
|
|
49
54
|
```
|
|
50
55
|
|
|
51
56
|
## 🤝 4. Handoff Pipeline
|
|
57
|
+
|
|
52
58
|
1. `validate`: Run static analysis (Linters, TypeScript compiler) to ensure the refactored code has no syntax errors.
|
|
53
59
|
2. `complete`: Generate the review report.
|
|
54
60
|
|
|
55
61
|
## 📝 5. Output Format
|
|
62
|
+
|
|
56
63
|
Vui lòng trả kết quả bằng Tiếng Việt. Cấu trúc báo cáo bao gồm:
|
|
64
|
+
|
|
57
65
|
- **Tóm tắt (Summary):** File nào vừa được Refactor / Review.
|
|
58
66
|
- **Chi tiết (Changes):** Các thay đổi cụ thể về Tên biến, Cấu trúc.
|
|
59
67
|
- **Nguyên nhân (Reasoning):** Giải thích tại sao code cũ là "Bad Practice" và code mới tốt hơn thế nào.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-feature-delivery
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Develop new features end-to-end (Frontend & Backend).
|
|
6
6
|
category: engineering
|
|
7
|
+
behavior: development
|
|
8
|
+
intent: implement-feature
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [feature, development, e2e, ui, api]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
19
21
|
> **Goal:** Phát triển một tính năng mới hoàn chỉnh, từ giao diện (Frontend) đến API (Backend) và Cơ sở dữ liệu (nếu có).
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Requirements Gathering):**
|
|
23
26
|
- Read the user's requirements.
|
|
24
27
|
- Break down the feature into sub-tasks (e.g., Schema -> API -> UI Component -> Integration).
|
|
@@ -32,12 +35,14 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
32
35
|
- Check if the UI is responsive.
|
|
33
36
|
- Ensure the API handles edge cases (empty states, loading, error).
|
|
34
37
|
|
|
35
|
-
## 🛡️
|
|
38
|
+
## 🛡️ 3. Constraints & Rules
|
|
39
|
+
|
|
36
40
|
- **Contract First:** Always define the Type/Interface contract before writing the implementation logic.
|
|
37
41
|
- **Component Reusability:** Do not create a new Button or Input if a Shared Component already exists in `src/components/shared/`.
|
|
38
42
|
- **DRY (Don't Repeat Yourself):** Extract inline styles or duplicate logic into hooks/utilities.
|
|
39
43
|
|
|
40
44
|
## 🌳 3. Decision Tree
|
|
45
|
+
|
|
41
46
|
```text
|
|
42
47
|
Does the feature require Backend API changes?
|
|
43
48
|
├── YES → Start with Database Schema/Types -> API Route -> UI Integration.
|
|
@@ -47,14 +52,19 @@ Does the feature require Backend API changes?
|
|
|
47
52
|
```
|
|
48
53
|
|
|
49
54
|
## 🤝 4. Handoff Pipeline
|
|
55
|
+
|
|
50
56
|
After implementing the feature, map to the pipeline:
|
|
57
|
+
|
|
51
58
|
1. `engineering-standard`: Ensure naming conventions and file size limits are respected.
|
|
52
59
|
2. `validate`: Run tests and format the code.
|
|
53
60
|
3. `complete`: Output the final report.
|
|
54
61
|
|
|
55
62
|
## 📝 5. Output Format
|
|
63
|
+
|
|
56
64
|
Vui lòng báo cáo lại bằng Tiếng Việt với cấu trúc tương tự `templates/bug-report.md` nhưng thay đổi tiêu đề thành:
|
|
65
|
+
|
|
57
66
|
### 🚀 Báo Cáo Triển Khai Tính Năng (Feature Report)
|
|
67
|
+
|
|
58
68
|
- **Tóm tắt (Summary):** Tính năng gì đã được làm.
|
|
59
69
|
- **Chi tiết (Changes):** Liệt kê các file tạo mới / chỉnh sửa.
|
|
60
70
|
- **Kiến trúc (Reasoning):** Giải thích quyết định thiết kế State/API.
|
package/skills/qk-help/SKILL.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-help
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Display the list of available skills and pro-tips.
|
|
6
6
|
category: utilities
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: low
|
|
8
10
|
tags: [help, manual, list, tutorial]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,19 +21,24 @@ pipeline: [analyze, complete]
|
|
|
19
21
|
> **Goal:** Bản đồ hướng dẫn sử dụng Agent Skills. Giúp User tra cứu nhanh lệnh.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Scan):**
|
|
23
26
|
- Read the skills directory to list all available tools.
|
|
24
27
|
2. **Complete (Format):**
|
|
25
28
|
- Format the skills into a neat Markdown table.
|
|
26
29
|
|
|
27
30
|
## 🛡️ 2. Constraints & Rules
|
|
31
|
+
|
|
28
32
|
- **Keep it short:** Do not print the entire content of `SKILL.md`. Only print the Name and Description from the metadata.
|
|
29
33
|
|
|
30
34
|
## 🤝 3. Handoff Pipeline
|
|
35
|
+
|
|
31
36
|
1. `complete`: Output the Help table.
|
|
32
37
|
|
|
33
38
|
## 📝 4. Output Format
|
|
39
|
+
|
|
34
40
|
Vui lòng trả kết quả bằng Tiếng Việt dạng Bảng (Table).
|
|
41
|
+
|
|
35
42
|
- **Cột 1:** Tên Skill
|
|
36
43
|
- **Cột 2:** Mô tả ngắn (Tiếng Việt)
|
|
37
44
|
- **Cột 3:** Lệnh kích hoạt (Ví dụ: `@qk-bug-resolution`)
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-orchestrator
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Route user requests, parse intents, and delegate to the correct sub-skills.
|
|
6
6
|
category: orchestration
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: critical
|
|
8
10
|
tags: [router, orchestrator, delegation, ai-manager]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, plan, delegate]
|
|
|
19
21
|
> **Goal:** "Tổng tư lệnh" (Master Orchestrator). Phân tích ý đồ của người dùng và điều phối các kỹ năng (Skills) khác để giải quyết vấn đề thay vì làm mọi thứ một cách thủ công.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Intent Parsing):**
|
|
23
26
|
- Read the user's request. Determine the goal: Is it a Bug Fix, a New Feature, a Refactor, or just a Question?
|
|
24
27
|
2. **Plan (Context Gathering & Skill Selection):**
|
|
@@ -28,10 +31,12 @@ pipeline: [analyze, plan, delegate]
|
|
|
28
31
|
- Handoff the gathered context to the selected Skill.
|
|
29
32
|
|
|
30
33
|
## 🛡️ 2. Constraints & Rules
|
|
34
|
+
|
|
31
35
|
- **Delegation First:** Do not write source code directly while acting as the Orchestrator. Delegate to the correct specialized Skill.
|
|
32
36
|
- **Ambiguity Check:** If the user's intent is unclear, give them 2-3 Skill suggestions to choose from.
|
|
33
37
|
|
|
34
38
|
## 🌳 3. Decision Tree
|
|
39
|
+
|
|
35
40
|
```text
|
|
36
41
|
Is the task a massive project (e.g., "Build an Admin Dashboard")?
|
|
37
42
|
├── YES → Break it down:
|
|
@@ -43,10 +48,13 @@ Is the task a massive project (e.g., "Build an Admin Dashboard")?
|
|
|
43
48
|
```
|
|
44
49
|
|
|
45
50
|
## 🤝 4. Handoff Pipeline
|
|
51
|
+
|
|
46
52
|
1. `delegate`: Call the target Skill.
|
|
47
53
|
|
|
48
54
|
## 📝 5. Output Format
|
|
55
|
+
|
|
49
56
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
57
|
+
|
|
50
58
|
- **Tóm tắt (Summary):** Đã phân tích xong yêu cầu của User.
|
|
51
59
|
- **Quyết định điều phối (Reasoning):** Giao việc cho Skill nào.
|
|
52
60
|
- **Hành động tiếp (Next Action):** Tự động chuyển vai trò sang Skill được chọn.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-policy-engine
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Policy evaluation engine to ensure actions are authorized and safe.
|
|
6
6
|
category: security
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [security, policy, guardrails, authorization]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, evaluate, complete]
|
|
|
19
21
|
> **Goal:** Đóng vai trò là "Bộ quy tắc thép" (Policy Enforcer). Ngăn chặn các lệnh sai lầm có thể phá hoại hệ thống.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Risk Assessment):**
|
|
23
26
|
- Classify the user's request (Low, Medium, High risk).
|
|
24
27
|
- High Risk: Dropping databases, deleting multiple files, force-pushing to `main`.
|
|
@@ -29,10 +32,12 @@ pipeline: [analyze, evaluate, complete]
|
|
|
29
32
|
- Approve (Allow execution) or Deny (Block execution) with explicit reasons.
|
|
30
33
|
|
|
31
34
|
## 🛡️ 2. Constraints & Rules
|
|
35
|
+
|
|
32
36
|
- **Deny by Default:** If an action is highly destructive and no backup plan exists, DENY it.
|
|
33
37
|
- **Override:** Only allow skipping the policy if the user explicitly passes an `--override` flag in their prompt.
|
|
34
38
|
|
|
35
39
|
## 🌳 3. Decision Tree
|
|
40
|
+
|
|
36
41
|
```text
|
|
37
42
|
Does the action involve deleting data or resources in Production?
|
|
38
43
|
├── YES → Has the user provided a backup confirmation?
|
|
@@ -42,10 +47,13 @@ Does the action involve deleting data or resources in Production?
|
|
|
42
47
|
```
|
|
43
48
|
|
|
44
49
|
## 🤝 4. Handoff Pipeline
|
|
50
|
+
|
|
45
51
|
1. `complete`: Generate the Policy Decision Report.
|
|
46
52
|
|
|
47
53
|
## 📝 5. Output Format
|
|
54
|
+
|
|
48
55
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
56
|
+
|
|
49
57
|
- **Tóm tắt (Summary):** Mức độ rủi ro (Risk Level).
|
|
50
58
|
- **Phán quyết (Decision):** ✅ APPROVED hoặc ❌ DENIED.
|
|
51
59
|
- **Nguyên nhân (Reasoning):** Vi phạm chính sách nào (nếu bị Deny).
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-production-release
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Prepare the codebase for a production release (Build, CI/CD, Security).
|
|
6
6
|
category: operations
|
|
7
|
+
behavior: validation
|
|
8
|
+
intent: validate
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [deploy, release, build, production]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, review, implement, validate, complete]
|
|
|
19
21
|
> **Goal:** Chuẩn bị gói phần mềm để đẩy lên môi trường Production an toàn và tối ưu nhất (Minified, Tree-shaked).
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Pre-flight Checks):**
|
|
23
26
|
- Check if the git branch is clean.
|
|
24
27
|
- Verify environment variables are documented.
|
|
@@ -29,16 +32,20 @@ pipeline: [analyze, review, implement, validate, complete]
|
|
|
29
32
|
4. **Complete (Deployment Plan):**
|
|
30
33
|
- Provide a manual checklist for the user to execute the final deployment.
|
|
31
34
|
|
|
32
|
-
## 🛡️
|
|
35
|
+
## 🛡️ 3. Constraints & Rules
|
|
36
|
+
|
|
33
37
|
- **No Rogue Deploys:** Never run commands like `firebase deploy` or `vercel --prod` without explicit, undeniable user approval.
|
|
34
38
|
- **Secret Safety:** Never hardcode URLs. Ensure they are injected via ENV.
|
|
35
39
|
|
|
36
40
|
## 🤝 3. Handoff Pipeline
|
|
41
|
+
|
|
37
42
|
1. `validate`: Run security sweep on the build output.
|
|
38
43
|
2. `complete`: Output the Release Report.
|
|
39
44
|
|
|
40
45
|
## 📝 4. Output Format
|
|
46
|
+
|
|
41
47
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
48
|
+
|
|
42
49
|
- **Tóm tắt (Summary):** Trạng thái Build.
|
|
43
50
|
- **Chi tiết (Changes):** Dung lượng Bundle (Bundle size optimization).
|
|
44
51
|
- **Rủi ro (Risks):** Có lộ secret không.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-project-bootstrap
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Initialize a new project with best practices, linters, and folder structures.
|
|
6
6
|
category: setup
|
|
7
|
+
behavior: development
|
|
8
|
+
intent: implement-feature
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [bootstrap, scaffolding, setup, init]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
19
21
|
> **Goal:** "Thợ xây móng". Khởi tạo một dự án mới hoàn toàn với các cấu hình chuẩn mực nhất từ Day 1.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Requirements):**
|
|
23
26
|
- Ask the user for their preferred stack (e.g., Next.js, Vite, NestJS).
|
|
24
27
|
2. **Implement (Scaffolding):**
|
|
@@ -29,15 +32,19 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
29
32
|
- Run `npm run dev` in a short background task to ensure it doesn't crash.
|
|
30
33
|
|
|
31
34
|
## 🛡️ 2. Constraints & Rules
|
|
35
|
+
|
|
32
36
|
- **Strict Mode:** Always enable `strict: true` in TypeScript configurations.
|
|
33
37
|
- **Package Manager Check:** If the user uses `pnpm`, do NOT run `npm install`. Stick to one package manager.
|
|
34
38
|
|
|
35
39
|
## 🤝 3. Handoff Pipeline
|
|
40
|
+
|
|
36
41
|
1. `engineering-standard`: Verify the generated folder structure.
|
|
37
42
|
2. `complete`: Output the Bootstrap Report.
|
|
38
43
|
|
|
39
44
|
## 📝 4. Output Format
|
|
45
|
+
|
|
40
46
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
47
|
+
|
|
41
48
|
- **Tóm tắt (Summary):** Dự án đã được khởi tạo với Stack nào.
|
|
42
49
|
- **Chi tiết (Changes):** Cấu trúc thư mục mới và các file cấu hình.
|
|
43
50
|
- **Xác thực (Verification):** Cách chạy dự án.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-project-health
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Comprehensive audit of Code Smells, Tech Debt, and Architecture.
|
|
6
6
|
category: architecture
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: medium
|
|
8
10
|
tags: [audit, architecture, tech-debt, code-smell]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, review, validate, complete]
|
|
|
19
21
|
> **Goal:** "Khám sức khỏe" toàn diện cho Codebase. Tìm ra các Nợ Kỹ Thuật (Tech Debt), Mã Lỗi Thời (Code Smells), và các rủi ro cấu trúc dài hạn.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Dependency Scan):**
|
|
23
26
|
- Read `package.json` to identify outdated libraries, bloated dependencies, or unused packages.
|
|
24
27
|
2. **Review (Architecture Scan):**
|
|
@@ -30,11 +33,13 @@ pipeline: [analyze, review, validate, complete]
|
|
|
30
33
|
4. **Complete (Roadmap):**
|
|
31
34
|
- Generate a prioritized Refactor Roadmap (High, Medium, Low).
|
|
32
35
|
|
|
33
|
-
## 🛡️
|
|
36
|
+
## 🛡️ 3. Constraints & Rules
|
|
37
|
+
|
|
34
38
|
- **Audit Only - No Touch:** Do not modify any code. You are diagnosing, not performing surgery.
|
|
35
39
|
- **Evidence Based:** Provide concrete metrics (e.g., "Folder `components` has 45 files, making it hard to navigate").
|
|
36
40
|
|
|
37
41
|
## 🌳 3. Decision Tree
|
|
42
|
+
|
|
38
43
|
```text
|
|
39
44
|
Is the `src/components` folder bloated (>30 files)?
|
|
40
45
|
├── YES → Recommend migrating to a Feature-driven structure (e.g., `src/features/auth`).
|
|
@@ -46,10 +51,13 @@ Are there components exceeding 500 lines?
|
|
|
46
51
|
```
|
|
47
52
|
|
|
48
53
|
## 🤝 4. Handoff Pipeline
|
|
54
|
+
|
|
49
55
|
1. `complete`: Output the Health Audit Report.
|
|
50
56
|
|
|
51
57
|
## 📝 5. Output Format
|
|
58
|
+
|
|
52
59
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
60
|
+
|
|
53
61
|
- **Tóm tắt (Summary):** Đánh giá tổng quan Sức Khỏe Dự Án (Điểm: X/100).
|
|
54
62
|
- **Chi tiết (Changes):** Phân tích Dependencies, Architecture, Code Smells.
|
|
55
63
|
- **Xác thực (Verification):** Các bằng chứng thu thập được từ code (dòng nào, file nào phình to).
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-project-memory
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Store and retrieve long-term project context across sessions.
|
|
6
6
|
category: utilities
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: maintain
|
|
7
9
|
priority: low
|
|
8
10
|
tags: [memory, context, storage]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,17 +21,22 @@ pipeline: [analyze, implement, complete]
|
|
|
19
21
|
> **Goal:** "Bộ nhớ dài hạn". Giúp Agent nhớ lại các cấu hình, đường dẫn API hoặc luật lệ riêng của dự án mà không cần User nhắc lại.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Fact Extraction):**
|
|
23
26
|
- Extract the core facts from the conversation (e.g., "The project uses pnpm, not npm").
|
|
24
27
|
2. **Implement (Storage):**
|
|
25
28
|
- Append the fact to `.ai-memory.md` or a similar configuration file.
|
|
26
29
|
|
|
27
30
|
## 🛡️ 2. Constraints & Rules
|
|
31
|
+
|
|
28
32
|
- **Keep it small:** Do not write entire source files into memory. Only save abstract facts and rules.
|
|
29
33
|
|
|
30
34
|
## 🤝 3. Handoff Pipeline
|
|
35
|
+
|
|
31
36
|
1. `complete`: Output confirmation.
|
|
32
37
|
|
|
33
38
|
## 📝 4. Output Format
|
|
39
|
+
|
|
34
40
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
41
|
+
|
|
35
42
|
- **Tóm tắt (Summary):** Đã ghi nhớ thông tin gì.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-system-evolution
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Safely upgrade dependencies, migrate frameworks, and manage rollbacks.
|
|
6
6
|
category: operations
|
|
7
|
+
behavior: maintenance
|
|
8
|
+
intent: maintain
|
|
7
9
|
priority: high
|
|
8
10
|
tags: [upgrade, migration, devops, dependencies]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, plan, implement, validate, complete]
|
|
|
19
21
|
> **Goal:** Quản lý các thay đổi lớn cấp hệ thống (Major Updates) một cách an toàn, luôn có đường lui (Rollback) nếu xảy ra sự cố.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Impact Analysis):**
|
|
23
26
|
- Read the Changelog or Migration Guide for the new version.
|
|
24
27
|
- Identify Breaking Changes and Deprecated APIs.
|
|
@@ -33,12 +36,14 @@ pipeline: [analyze, plan, implement, validate, complete]
|
|
|
33
36
|
- Reinstall dependencies cleanly (`npm ci` or `yarn install`).
|
|
34
37
|
- Run the build process to ensure the system compiles.
|
|
35
38
|
|
|
36
|
-
## 🛡️
|
|
39
|
+
## 🛡️ 3. Constraints & Rules
|
|
40
|
+
|
|
37
41
|
- **Safety First:** Never run `npm update` blindly across all packages. Update only what was requested.
|
|
38
42
|
- **Lockfiles:** Do not delete `package-lock.json` or `yarn.lock` unless resolving extreme merge conflicts.
|
|
39
43
|
- **Always Rollback:** If the system produces >50 compilation errors after an upgrade and you cannot fix them in 1 turn, immediately trigger the Rollback Plan.
|
|
40
44
|
|
|
41
45
|
## 🌳 3. Decision Tree
|
|
46
|
+
|
|
42
47
|
```text
|
|
43
48
|
Are there Breaking Changes in the target version?
|
|
44
49
|
├── YES → Create a migration checklist based on the official docs. Update code systematically.
|
|
@@ -52,11 +57,14 @@ Did the Build fail after the update?
|
|
|
52
57
|
```
|
|
53
58
|
|
|
54
59
|
## 🤝 4. Handoff Pipeline
|
|
60
|
+
|
|
55
61
|
1. `validate`: Run the full test suite and `npm run build` via `qk-validation-gate`.
|
|
56
62
|
2. `complete`: Generate the Evolution report.
|
|
57
63
|
|
|
58
64
|
## 📝 5. Output Format
|
|
65
|
+
|
|
59
66
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
67
|
+
|
|
60
68
|
- **Tóm tắt (Summary):** Đã nâng cấp package nào, từ vX lên vY.
|
|
61
69
|
- **Chi tiết (Changes):** Số lượng file phải sửa do Breaking Changes.
|
|
62
70
|
- **Kế hoạch lùi (Reasoning/Risks):** Ghi rõ lệnh Rollback để User copy-paste nếu cần.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-ui-audit
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Audit UI for Consistency, Accessibility, Responsive, and Performance.
|
|
6
6
|
category: validation
|
|
7
|
+
behavior: static-analysis
|
|
8
|
+
intent: review-code
|
|
7
9
|
priority: medium
|
|
8
10
|
tags: [ui, audit, frontend, a11y, responsive]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, review, validate, complete]
|
|
|
19
21
|
> **Goal:** Kiểm toán chất lượng Giao diện Người dùng (UI QA). Tìm ra các lỗi hiển thị, sự thiếu đồng nhất và vi phạm Accessibility (a11y).
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Scan UI):**
|
|
23
26
|
- Read the UI component's source code.
|
|
24
27
|
- Look for inline styles (`style={{...}}`) and hardcoded magic numbers (e.g., `px`, `%` instead of standard tokens).
|
|
@@ -32,11 +35,13 @@ pipeline: [analyze, review, validate, complete]
|
|
|
32
35
|
4. **Complete (Report):**
|
|
33
36
|
- Calculate a rough score (0-100) based on violations.
|
|
34
37
|
|
|
35
|
-
## 🛡️
|
|
38
|
+
## 🛡️ 3. Constraints & Rules
|
|
39
|
+
|
|
36
40
|
- **Audit Only:** Do not modify the code automatically unless the user explicitly requests you to apply the fixes.
|
|
37
41
|
- **Evidence Based:** Point out the exact line number where the violation occurs.
|
|
38
42
|
|
|
39
43
|
## 🌳 3. Decision Tree
|
|
44
|
+
|
|
40
45
|
```text
|
|
41
46
|
Does the component contain hardcoded `#hex` colors or `px` values?
|
|
42
47
|
├── YES → Deduct Consistency score. Recommend using Design Tokens.
|
|
@@ -48,10 +53,13 @@ Does the component have clickable `<div>` elements?
|
|
|
48
53
|
```
|
|
49
54
|
|
|
50
55
|
## 🤝 4. Handoff Pipeline
|
|
56
|
+
|
|
51
57
|
1. `complete`: Generate the UI Audit Report.
|
|
52
58
|
|
|
53
59
|
## 📝 5. Output Format
|
|
60
|
+
|
|
54
61
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
62
|
+
|
|
55
63
|
- **Tóm tắt (Summary):** Chấm điểm Giao diện (Score: X/100).
|
|
56
64
|
- **Chi tiết (Changes):** Liệt kê các lỗi Consistency, A11y, Responsive (ghi rõ dòng).
|
|
57
65
|
- **Nguyên nhân (Reasoning):** Tại sao lại đánh lỗi điểm đó.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-ui-system-builder
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Build and maintain Design Systems, Token extraction, and shared UI libraries.
|
|
6
6
|
category: frontend
|
|
7
|
+
behavior: development
|
|
8
|
+
intent: implement-feature
|
|
7
9
|
priority: medium
|
|
8
10
|
tags: [design-system, tokens, shared-components, storybook]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
19
21
|
> **Goal:** Đảm bảo tính Nhất quán Giao diện (Consistency). Quản lý Design Tokens và xây dựng thư viện Shared Components.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Token Extraction):**
|
|
23
26
|
- Extract raw colors and typography into CSS Variables or Tailwind config.
|
|
24
27
|
2. **Implement (Component Factory):**
|
|
@@ -27,14 +30,18 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
|
|
|
27
30
|
- Ensure every variation (primary, secondary, disabled) is accounted for.
|
|
28
31
|
|
|
29
32
|
## 🛡️ 2. Constraints & Rules
|
|
33
|
+
|
|
30
34
|
- **Stateless:** System UI components should NEVER have their own backend logic or hardcoded strings.
|
|
31
35
|
- **Extendable:** Always allow users to pass `className` and `...props` to the base element.
|
|
32
36
|
|
|
33
37
|
## 🤝 3. Handoff Pipeline
|
|
38
|
+
|
|
34
39
|
1. `engineering-standard`: Verify naming conventions.
|
|
35
40
|
2. `complete`: Output the Design System Report.
|
|
36
41
|
|
|
37
42
|
## 📝 4. Output Format
|
|
43
|
+
|
|
38
44
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
45
|
+
|
|
39
46
|
- **Tóm tắt (Summary):** Thư viện Component vừa cập nhật.
|
|
40
47
|
- **Chi tiết (Changes):** Liệt kê các variant (màu sắc, kích cỡ).
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-validation-gate
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
updated: 2026-07-02
|
|
5
5
|
description: Mandatory Quality Gate (Test, Lint, Security).
|
|
6
6
|
category: validation
|
|
7
|
+
behavior: validation
|
|
8
|
+
intent: validate
|
|
7
9
|
priority: critical
|
|
8
10
|
tags: [ci, testing, linting, security, gatekeeper]
|
|
9
11
|
platforms: [claude-code, cursor, windsurf, gemini-cli]
|
|
@@ -19,6 +21,7 @@ pipeline: [analyze, validate, complete]
|
|
|
19
21
|
> **Goal:** Hoạt động như một "Người Gác Cổng" (Gatekeeper). Đảm bảo không có lỗi cú pháp, vi phạm bảo mật, hoặc code rác nào lọt qua trước khi báo cáo hoàn thành.
|
|
20
22
|
|
|
21
23
|
## 🔄 1. Chain of Thought (SOP)
|
|
24
|
+
|
|
22
25
|
1. **Analyze (Static Sweep):**
|
|
23
26
|
- Use `grep_search` to scan modified files for garbage code: `console.log(`, `debugger;`, `// TODO`, `@ts-ignore`.
|
|
24
27
|
- Scan for hardcoded secrets: `API_KEY=`, `Bearer ey...`.
|
|
@@ -30,12 +33,14 @@ pipeline: [analyze, validate, complete]
|
|
|
30
33
|
- If minor lint errors exist, attempt an auto-fix (`npm run lint --fix`).
|
|
31
34
|
- If tests fail, report the exact failure to the user. Do NOT pretend it passed.
|
|
32
35
|
|
|
33
|
-
## 🛡️
|
|
36
|
+
## 🛡️ 3. Constraints & Rules
|
|
37
|
+
|
|
34
38
|
- **Zero Tolerance:** A failed test or a TypeScript error means the Gate is FAILED. Do not ignore errors.
|
|
35
39
|
- **No Force:** Never use `--force` or `--no-verify` flags.
|
|
36
40
|
- **Real Execution:** You MUST run the actual CLI commands using `run_command` and wait for the output.
|
|
37
41
|
|
|
38
42
|
## 🌳 3. Decision Tree
|
|
43
|
+
|
|
39
44
|
```text
|
|
40
45
|
Did `npm run lint` return errors?
|
|
41
46
|
├── YES → Are they auto-fixable?
|
|
@@ -49,10 +54,13 @@ Did `tsc --noEmit` return errors?
|
|
|
49
54
|
```
|
|
50
55
|
|
|
51
56
|
## 🤝 4. Handoff Pipeline
|
|
57
|
+
|
|
52
58
|
1. `complete`: Once all checks pass, output the Validation Report.
|
|
53
59
|
|
|
54
60
|
## 📝 5. Output Format
|
|
61
|
+
|
|
55
62
|
Vui lòng trả kết quả bằng Tiếng Việt.
|
|
63
|
+
|
|
56
64
|
- **Tóm tắt (Summary):** 🛡️ Đã chạy các cổng kiểm định (Lint, Test, Type).
|
|
57
65
|
- **Chi tiết (Changes):** Liệt kê các lệnh đã chạy và kết quả.
|
|
58
66
|
- **Xác thực (Verification):** Ghi rõ PASS (Xanh) hoặc FAIL (Đỏ).
|