ai-developer-skill-os 3.1.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.
@@ -0,0 +1,56 @@
1
+ name: CI / Spec Compliance & Registry Validation
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - 'skills/**'
7
+ - 'skills.json'
8
+ - 'docs/SPEC.md'
9
+ - 'bin/install.js'
10
+ push:
11
+ branches: [ main ]
12
+ paths:
13
+ - 'skills/**'
14
+ - 'skills.json'
15
+ - 'docs/SPEC.md'
16
+ - 'bin/install.js'
17
+
18
+ jobs:
19
+ lint-and-validate:
20
+ runs-on: windows-latest
21
+ steps:
22
+ - name: Checkout
23
+ uses: actions/checkout@v4
24
+
25
+ - name: Setup Node.js
26
+ uses: actions/setup-node@v4
27
+ with:
28
+ node-version: '20.x'
29
+
30
+ - name: Install dependencies
31
+ run: npm install
32
+
33
+ - name: Validate Skills Registry vs Filesystem
34
+ run: npm run test:registry
35
+
36
+ - name: Validate SKILL.md Spec Compliance
37
+ run: npm run test
38
+
39
+ snapshot:
40
+ runs-on: windows-latest
41
+ needs: lint-and-validate
42
+ if: github.ref == 'refs/heads/main'
43
+ steps:
44
+ - name: Checkout
45
+ uses: actions/checkout@v4
46
+
47
+ - name: Setup Node.js
48
+ uses: actions/setup-node@v4
49
+ with:
50
+ node-version: '20.x'
51
+
52
+ - name: Install dependencies
53
+ run: npm install
54
+
55
+ - name: Generate Registry Snapshot
56
+ run: node bin/install.js --ide=7 --scope=2
package/CHANGELOG.md CHANGED
@@ -1,50 +1,53 @@
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
- ## [3.0.1] - 2026-07-02
9
-
10
- ### Changed
11
- - Updated skills.json version từ 1.0.1 3.0.1 để phản án version skills chính
12
- - Thay đổi status các skill từ `planned` `ready`
13
- - Cập nhật `qk-bug-fix` → `qk-bug-resolution` với version 3.0.0
14
-
15
- ### Added
16
- - Thêm `knowledge/backend/nodejs.md` - tài liệu kiến trúc backend Node.js
17
- - Thêm categories registry cho dễ phân loại skills
18
-
19
- ### Fixed
20
- - Sửa lỗi `qk-projects-bootstrap` `qk-project-bootstrap` typo trong categories
21
-
22
- ## [1.0.1] - 2026-07-01
23
- ### Fixed
24
- - Standardized Language rule across all 23 SKILL.md files for consistency.
25
- - Updated registry version to match package.json.
26
-
27
- ## [1.0.0] - 2026-07-01
28
-
29
- ### Added
30
- - Released the complete AI Developer Skill OS with 23 targeted skills for coding agents.
31
- - **Engineering Core (8 skills):**
32
- - `agent-orchestrator` for planning and delegating tasks.
33
- - `context-manager` for project context and file selection.
34
- - `project-audit` for 3-mode health checks.
35
- - `bug-fix` with root cause analysis.
36
- - `refactor` for safe, behavior-preserving code restructuring.
37
- - `migration` for dependency updates and library swapping.
38
- - `api-integration` for robust API connections.
39
- - `git-engineer` for commit messages and PR documentation.
40
- - **Frontend Core (11 skills):**
41
- - `frontend-architecture`, `design-system`, `ui-builder`, `component-generator`.
42
- - `state-management`, `form-builder`, `table-crud-generator`.
43
- - `frontend-debug`, `frontend-testing`, `accessibility-audit`, `frontend-performance`.
44
- - **Backend Core (4 skills):**
45
- - `backend-architecture`, `database-engineer`, `auth-security`, `deployment`.
46
- - Added comprehensive `skills.json` registry with dependencies and trigger keywords.
47
- - Added bilingual `README.md` (English/Vietnamese).
48
- - Added detailed user documentation in `docs/HUONG_DAN_SU_DUNG.md` and `docs/CHI_TIET_SKILLS.md`.
49
- - Translated all skill frontmatter descriptions to Vietnamese for better UX in agent terminals.
50
- - Included generic English and Vietnamese usage examples in `_template/examples/`.
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
+ ## [4.0.0] - 2026-07-02
9
+
10
+ ### Changed (Major Architecture Upgrade)
11
+ - **Intent-Based Agent Architecture:** Replaced rule-based individual skill exceptions with global behavioral group classifications (Static Analysis, Development, Validation, Maintenance).
12
+ - **OS Kernel Refactor:** Completely rewrote `AGENTS.md` (the "OS Kernel") into a strictly organized, lightweight structure under 100 lines.
13
+ - **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.
14
+ - **Cost & Escalation Policies:** Introduced strict cost-optimization logic, Stopping Criteria, and Escalation protocols to prevent infinite `run_command` retries.
15
+ - **Risk-based Verification:** Dynamic test execution based on the risk level of changes (Levels 0-3).
16
+
17
+ ### Added
18
+ - **Registry Validation Suite:** Full Vitest test suite enforcing SKILL.md frontmatter compliance against `docs/SPEC.md`.
19
+ - **GitHub Actions CI:** Automated validation on every PR and push to main.
20
+ - **Idempotent Installer:** `bin/install.js` now detects and updates existing rule blocks instead of duplicating them.
21
+ - **Kilo Code Native Support:** First-class support for `CLAUDE.md` + `kilo.json` config generation.
22
+ - **Governance Docs:** `docs/GOVERNANCE.md`, ADRs, and skill classification policy for enterprise maintainability.
23
+ - **Engineering Standards:** `qk-engineering-standard` and `qk-validation-gate` skills enforce SOLID, DRY, Clean Code, and mandatory quality gates.
24
+
25
+ ## [1.0.1] - 2026-07-01
26
+ ### Fixed
27
+ - Standardized Language rule across all 23 SKILL.md files for consistency.
28
+ - Updated registry version to match package.json.
29
+
30
+ ## [1.0.0] - 2026-07-01
31
+
32
+ ### Added
33
+ - Released the complete AI Developer Skill OS with 23 targeted skills for coding agents.
34
+ - **Engineering Core (8 skills):**
35
+ - `agent-orchestrator` for planning and delegating tasks.
36
+ - `context-manager` for project context and file selection.
37
+ - `project-audit` for 3-mode health checks.
38
+ - `bug-fix` with root cause analysis.
39
+ - `refactor` for safe, behavior-preserving code restructuring.
40
+ - `migration` for dependency updates and library swapping.
41
+ - `api-integration` for robust API connections.
42
+ - `git-engineer` for commit messages and PR documentation.
43
+ - **Frontend Core (11 skills):**
44
+ - `frontend-architecture`, `design-system`, `ui-builder`, `component-generator`.
45
+ - `state-management`, `form-builder`, `table-crud-generator`.
46
+ - `frontend-debug`, `frontend-testing`, `accessibility-audit`, `frontend-performance`.
47
+ - **Backend Core (4 skills):**
48
+ - `backend-architecture`, `database-engineer`, `auth-security`, `deployment`.
49
+ - Added comprehensive `skills.json` registry with dependencies and trigger keywords.
50
+ - Added bilingual `README.md` (English/Vietnamese).
51
+ - Added detailed user documentation in `docs/HUONG_DAN_SU_DUNG.md` and `docs/CHI_TIET_SKILLS.md`.
52
+ - Translated all skill frontmatter descriptions to Vietnamese for better UX in agent terminals.
53
+ - Included generic English and Vietnamese usage examples in `_template/examples/`.
package/README.md CHANGED
@@ -1,84 +1,97 @@
1
- # 🚀 AI Developer Skill OS (ai-developer-skill-os) v3.0
2
-
3
- > Một hệ điều hành (AI-OS) và Nền tảng Kiến trúc Kỹ thuật (Engineering Platform) tối thượng dành cho AI Coding Agents (Claude Code, Cursor, Windsurf, Gemini, Kilo).
4
-
5
- Thay vì cung cấp các "công cụ rời rạc" (Toolbox) hoặc những prompt cồng kềnh, **AI Developer Skill OS v3.0** được thiết kế lại hoàn toàn theo chuẩn **Enterprise-ready Agentic Framework**. Nó biến Agent của bạn thành một **Senior Engineer / Chief Architect** thực thụ với khả năng tự suy luận bằng Tiếng Anh, nhưng lại báo cáo thân thiện bằng Tiếng Việt.
6
-
7
- ---
8
-
9
- ## Tính năng chính
10
- - **23 Skills chuẩn Enterprise** cho Frontend, Backend, Engineering
11
- - **Kiến trúc 5 tầng** giúp tối ưu Context Window
12
- - **Pipeline tự động**: analyze → implement → validate → complete
13
- - **Decision Tree** cho từng skill, đưa ra quyết định chuẩn xác
14
- - **Knowledge RAG on-demand** - chỉ tải kiến thức khi cần thiết
15
-
16
- ## 🏗️ Kiến Trúc 5 Tầng (The 5-Tier Architecture)
17
-
18
- Hệ thống được thiết kế decoupled (phân tách) hoàn hảo để chống tràn Context Window và tối ưu khả năng suy luận của LLM:
19
-
20
- ### 1. OS Kernel (`.agents/AGENTS.md`)
21
- The core of the system is a lightweight, heavily optimized OS Kernel that dictates agent behavior across all tasks.
22
- - **Intent-Based Policies:** Skills are classified into 4 groups (Static Analysis, Development, Validation, Maintenance) rather than micromanaged with individual exceptions.
23
- - **Progressive Evidence Collection:** Agents collect context incrementally (1 file 3 files) and stop at a 80% Confidence Threshold, eliminating "hallucination loops".
24
- - **Risk-based Verification:** Tests and builds are only run based on the risk level of the change, strictly guided by the Cost and Escalation policies.
25
-
26
- ### 2. Core Templates (`templates/`)
27
- Chứa các format báo cáo chuẩn (như `bug-report.md`, `feature-report.md`, `review-report.md`). AI không cần "học lại" cách viết báo cáo, giúp đầu ra luôn nhất quán 100%.
28
-
29
- ### 3. Skill Definition (`skills/`)
30
- Bộ 20+ kỹ năng (Skills) cốt lõi được cấu trúc siêu chuẩn xác với **Metadata 12 trường** (Version, Category, Pipeline, Allowed Tools...). Toàn bộ SOP (Standard Operating Procedure), Decision Tree và Constraints được viết 100% bằng Tiếng Anh để tối ưu hóa khả năng hiểu kỹ thuật của AI.
31
-
32
- ### 4. Knowledge Library (`knowledge/`)
33
- Tri thức chuyên sâu được tách rời hoàn toàn khỏi Prompt. Ví dụ: Kiến thức về React (`knowledge/frontend/react.md`) chỉ được gọi (On-demand RAG) khi AI thực sự làm việc với React.
34
-
35
- ### 5. Output Format (Vietnamese Report)
36
- Toàn bộ kết quả trả về cho bạn đều tuân thủ Output Policy: Báo cáo bằng Tiếng Việt, chia mục rõ ràng (Summary, Changes, Root Cause, Risks, Next Actions).
37
-
38
- ---
39
-
40
- ## 🧩 Danh sách 20+ Master Skills
41
-
42
- Các skill được chia thành các nhóm (Category) rõ ràng:
43
- - **Orchestration:** `qk-orchestrator`, `qk-context-loader`, `qk-policy-engine`, `qk-access-policy`
44
- - **Engineering / Dev:** `qk-feature-delivery`, `qk-api-lifecycle`, `qk-data-lifecycle`, `qk-design-to-code`, `qk-ui-system-builder`
45
- - **Validation & Standards:** `qk-validation-gate`, `qk-engineering-standard`, `qk-ui-audit`, `qk-project-health`, `qk-bug-resolution`
46
- - **Ops & AI:** `qk-system-evolution`, `qk-production-release`, `qk-ai-builder`, `qk-project-bootstrap`
47
- - **Docs & Utils:** `qk-docs`, `qk-documentation-system`, `qk-project-memory`, `qk-help`
48
-
49
- ---
50
-
51
- ## 🔄 Luồng Handoff Pipeline Khép Kín
52
-
53
- Bất cứ một tính năng hay lỗi nào cũng được đi qua một đường ống khép kín (Abstract Pipeline):
54
- ```text
55
- analyze
56
-
57
- implement
58
-
59
- engineering-standard (Ép chuẩn Code, Naming, SOLID)
60
-
61
- validate (Chạy Linter, Tests, Security Check)
62
-
63
- complete (Tạo báo cáo bằng tiếng Việt)
64
- ```
65
-
66
- ---
67
-
68
- ## 💻 Cách Cài Đặt (Installation)
69
-
70
- Sử dụng npm:
71
- ```bash
72
- npm i -g ai-developer-skill-os
73
- ```
74
- Hoặc sử dụng qua `npx`:
75
- ```bash
76
- npx ai-developer-skill-os init
77
- ```
78
-
79
- ## 🚀 Tra Cứu (Help)
80
-
81
- Để tra cứu danh sách toàn bộ 20+ Kỹ năng và các mẹo sử dụng, hãy gọi:
82
- ```bash
83
- ./qk-help "Hiển thị tất cả các skill"
84
- ```
1
+ # 🚀 AI Developer Skill OS (ai-developer-skill-os) v4.0
2
+
3
+ > Một hệ điều hành (AI-OS) và Nền tảng Kiến trúc Kỹ thuật (Engineering Platform) tối thượng dành cho AI Coding Agents (Claude Code, Cursor, Windsurf, Gemini, Kilo).
4
+
5
+ Thay vì cung cấp các "công cụ rời rạc" (Toolbox) hoặc những prompt cồng kềnh, **AI Developer Skill OS v4.0** được thiết kế lại hoàn toàn theo chuẩn **Enterprise-ready Agentic Framework**. Nó biến Agent của bạn thành một **Senior Engineer / Chief Architect** thực thụ với khả năng tự suy luận bằng Tiếng Anh, nhưng lại báo cáo thân thiện bằng Tiếng Việt.
6
+
7
+ ---
8
+
9
+ ## 🏗️ Kiến Trúc 5 Tầng (The 5-Tier Architecture)
10
+
11
+ Hệ thống được thiết kế decoupled (phân tách) hoàn hảo để chống tràn Context Window và tối ưu khả năng suy luận của LLM:
12
+
13
+ ### 1. OS Kernel (`.agents/AGENTS.md`)
14
+ The core of the system is a lightweight, heavily optimized OS Kernel that dictates agent behavior across all tasks.
15
+ - **Intent-Based Policies:** Skills are classified into 4 groups (Static Analysis, Development, Validation, Maintenance) rather than micromanaged with individual exceptions.
16
+ - **Progressive Evidence Collection:** Agents collect context incrementally (1 file → 3 files) and stop at a 80% Confidence Threshold, eliminating "hallucination loops".
17
+ - **Risk-based Verification:** Tests and builds are only run based on the risk level of the change, strictly guided by the Cost and Escalation policies.
18
+
19
+ ### 2. Core Templates (`templates/`)
20
+ Chứa các format báo cáo chuẩn (như `bug-report.md`, `feature-report.md`, `review-report.md`). AI không cần "học lại" cách viết báo cáo, giúp đầu ra luôn nhất quán 100%.
21
+
22
+ ### 3. Skill Definition (`skills/`)
23
+ Bộ 20+ kỹ năng (Skills) cốt lõi được cấu trúc siêu chuẩn xác với **Metadata 12 trường** (Version, Category, Pipeline, Allowed Tools...). Toàn bộ SOP (Standard Operating Procedure), Decision Tree và Constraints được viết 100% bằng Tiếng Anh để tối ưu hóa khả năng hiểu kỹ thuật của AI.
24
+
25
+ ### 4. Knowledge Library (`knowledge/`)
26
+ Tri thức chuyên sâu được tách rời hoàn toàn khỏi Prompt. dụ: Kiến thức về React (`knowledge/frontend/react.md`) chỉ được gọi (On-demand RAG) khi AI thực sự làm việc với React.
27
+
28
+ ### 5. Output Format (Vietnamese Report)
29
+ Toàn bộ kết quả trả về cho bạn đều tuân thủ Output Policy: Báo cáo bằng Tiếng Việt, chia mục rõ ràng (Summary, Changes, Root Cause, Risks, Next Actions).
30
+
31
+ ---
32
+
33
+ ## 🧩 Danh sách 20+ Master Skills
34
+
35
+ Các skill được chia thành các nhóm (Category) rõ ràng:
36
+ - **Orchestration:** `qk-orchestrator`, `qk-context-loader`, `qk-policy-engine`, `qk-access-policy`
37
+ - **Engineering / Dev:** `qk-feature-delivery`, `qk-api-lifecycle`, `qk-data-lifecycle`, `qk-design-to-code`, `qk-ui-system-builder`
38
+ - **Validation & Standards:** `qk-validation-gate`, `qk-engineering-standard`, `qk-ui-audit`, `qk-project-health`, `qk-bug-resolution`
39
+ - **Ops & AI:** `qk-system-evolution`, `qk-production-release`, `qk-ai-builder`, `qk-project-bootstrap`
40
+ - **Docs & Utils:** `qk-docs`, `qk-documentation-system`, `qk-project-memory`, `qk-help`
41
+
42
+ ---
43
+
44
+ ## 🔄 Luồng Handoff Pipeline Khép Kín
45
+
46
+ Bất cứ một tính năng hay lỗi nào cũng được đi qua một đường ống khép kín (Abstract Pipeline):
47
+ ```text
48
+ analyze
49
+
50
+ implement
51
+
52
+ engineering-standard (Ép chuẩn Code, Naming, SOLID)
53
+
54
+ validate (Chạy Linter, Tests, Security Check)
55
+
56
+ complete (Tạo báo cáo bằng tiếng Việt)
57
+ ```
58
+
59
+ ---
60
+
61
+ ## 💻 Cách Cài Đặt (Installation)
62
+
63
+ Sử dụng npm:
64
+ ```bash
65
+ npm i -g ai-developer-skill-os
66
+ ```
67
+ Hoặc sử dụng qua `npx`:
68
+ ```bash
69
+ npx ai-developer-skill-os init
70
+ ```
71
+
72
+ ## 🧪 Testing
73
+
74
+ This project includes a full test suite to ensure registry integrity and SKILL.md spec compliance:
75
+
76
+ ```bash
77
+ npm test
78
+ ```
79
+
80
+ CI runs automatically on every PR via GitHub Actions, enforcing:
81
+ - Registry matches filesystem
82
+ - All SKILL.md frontmatters comply with `docs/SPEC.md`
83
+ - Install script idempotency
84
+
85
+ ## 🗑️ Cách Gỡ Cài Đặt (Uninstallation)
86
+
87
+ Nếu bạn đã cài đặt thông qua npm global, bạn có thể gỡ bỏ bằng lệnh:
88
+ ```bash
89
+ npm uninstall -g ai-developer-skill-os
90
+ ```
91
+
92
+ ## 🚀 Tra Cứu (Help)
93
+
94
+ Để tra cứu danh sách toàn bộ 20+ Kỹ năng và các mẹo sử dụng, hãy gọi:
95
+ ```bash
96
+ ./qk-help "Hiển thị tất cả các skill"
97
+ ```
package/bin/install.js CHANGED
@@ -237,8 +237,20 @@ Nếu người dùng sử dụng tham số (argument), bạn BẮT BUỘC phải
237
237
  }
238
238
 
239
239
  if (fs.existsSync(ruleFilePath)) {
240
- fs.appendFileSync(ruleFilePath, "\n\n" + writeContent);
241
- console.log(`✅ Đã GHI THÊM cấu hình tự động vào file: ${ruleFilePath}`);
240
+ const existingContent = fs.readFileSync(ruleFilePath, 'utf8');
241
+ const marker = isGemini ? '<RULE[ai_skill_os]>' : '[Role]\nYou are an elite AI Software Engineer.';
242
+ const markerIndex = existingContent.indexOf(marker);
243
+ if (markerIndex !== -1) {
244
+ const before = existingContent.substring(0, markerIndex);
245
+ const after = existingContent.substring(markerIndex).split('\n').slice(isGemini ? 2 : 1).join('\n');
246
+ const lastMarkerEnd = after.indexOf(isGemini ? '</RULE[ai_skill_os]>' : '[Trigger Mechanism]');
247
+ const actualAfter = lastMarkerEnd !== -1 ? after.substring(lastMarkerEnd + (isGemini ? 19 : 18)).trimStart() : after;
248
+ fs.writeFileSync(ruleFilePath, before + writeContent.trimStart() + (actualAfter ? '\n' + actualAfter : '') + '\n');
249
+ console.log(`✅ Đã CẬP NHẬT cấu hình tự động trong file: ${ruleFilePath}`);
250
+ } else {
251
+ fs.appendFileSync(ruleFilePath, "\n\n" + writeContent);
252
+ console.log(`✅ Đã GHI THÊM cấu hình tự động vào file: ${ruleFilePath}`);
253
+ }
242
254
  } else {
243
255
  fs.writeFileSync(ruleFilePath, writeContent);
244
256
  console.log(`✅ Đã TẠO MỚI file cấu hình: ${ruleFilePath}`);
package/package.json CHANGED
@@ -1,34 +1,44 @@
1
- {
2
- "name": "ai-developer-skill-os",
3
- "version": "3.1.0",
4
- "description": "Multi-agent skill package cho AI coding agents (Claude, Cursor, Windsurf, Antigravity) với 23 skills chuyên nghiệp.",
5
- "main": "bin/install.js",
6
- "bin": {
7
- "ai-developer-skill-os": "bin/install.js",
8
- "ai-skill": "bin/install.js"
9
- },
10
- "scripts": {
11
- "test": "echo \"Error: no test specified\" && exit 1"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/phamquangkhanh2999/ai-developer-skill-os.git"
16
- },
17
- "keywords": [
18
- "ai",
19
- "claude",
20
- "cursor",
21
- "windsurf",
22
- "skills",
23
- "developer",
24
- "agent",
25
- "prompts",
26
- "framework"
27
- ],
28
- "author": "Quang Khánh",
29
- "license": "MIT",
30
- "bugs": {
31
- "url": "https://github.com/phamquangkhanh2999/ai-developer-skill-os/issues"
32
- },
33
- "homepage": "https://github.com/phamquangkhanh2999/ai-developer-skill-os#readme"
34
- }
1
+ {
2
+ "name": "ai-developer-skill-os",
3
+ "version": "3.1.1",
4
+ "description": "Multi-agent skill package cho AI coding agents (Claude, Cursor, Windsurf, Antigravity) với 23 skills chuyên nghiệp.",
5
+ "main": "bin/install.js",
6
+ "bin": {
7
+ "ai-developer-skill-os": "bin/install.js",
8
+ "ai-skill": "bin/install.js"
9
+ },
10
+ "type": "module",
11
+ "scripts": {
12
+ "test": "vitest run",
13
+ "test:watch": "vitest",
14
+ "test:registry": "vitest run --config vitest.config.js",
15
+ "lint": "echo \"No linter configured\" && exit 0"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/phamquangkhanh2999/ai-developer-skill-os.git"
20
+ },
21
+ "keywords": [
22
+ "ai",
23
+ "claude",
24
+ "cursor",
25
+ "windsurf",
26
+ "skills",
27
+ "developer",
28
+ "agent",
29
+ "prompts",
30
+ "framework"
31
+ ],
32
+ "author": "Quang Khánh",
33
+ "license": "MIT",
34
+ "bugs": {
35
+ "url": "https://github.com/phamquangkhanh2999/ai-developer-skill-os/issues"
36
+ },
37
+ "homepage": "https://github.com/phamquangkhanh2999/ai-developer-skill-os#readme",
38
+ "devDependencies": {
39
+ "vitest": "^2.1.0",
40
+ "fast-glob": "^3.3.0",
41
+ "gray-matter": "^4.0.0",
42
+ "js-yaml": "^4.1.0"
43
+ }
44
+ }
@@ -1,9 +1,11 @@
1
1
  ---
2
2
  name: qk-access-policy
3
- version: 3.0.0
3
+ version: 3.1.0
4
4
  updated: 2026-07-02
5
5
  description: Manage RBAC, ABAC, and security boundaries.
6
6
  category: security
7
+ behavior: static-analysis
8
+ intent: review-code
7
9
  priority: high
8
10
  tags: [security, rbac, auth, permissions]
9
11
  platforms: [claude-code, cursor, windsurf, gemini-cli]
@@ -19,6 +21,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
19
21
  > **Goal:** "Bảo vệ cổng" (Security Guard). Xác định xem người dùng có đủ thẩm quyền để truy cập vào một Component UI hoặc một Endpoint API hay không.
20
22
 
21
23
  ## 🔄 1. Chain of Thought (SOP)
24
+
22
25
  1. **Analyze (Role Assessment):**
23
26
  - Identify the user roles (Guest, User, Admin, SuperAdmin).
24
27
  2. **Implement (Boundary Definition):**
@@ -28,13 +31,17 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
28
31
  - Ensure you didn't grant broad access by default.
29
32
 
30
33
  ## 🛡️ 2. Constraints & Rules
34
+
31
35
  - **Full Stack Protection:** Never hide UI elements without also securing the corresponding backend API.
32
36
 
33
37
  ## 🤝 3. Handoff Pipeline
38
+
34
39
  1. `validate`: Trigger `qk-validation-gate` to check for security flaws.
35
40
  2. `complete`: Generate the Access Control 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):** Các role vừa được setup.
40
47
  - **Chi tiết (Changes):** UI và API nào đã được bảo vệ.
@@ -1,9 +1,11 @@
1
1
  ---
2
2
  name: qk-ai-builder
3
- version: 3.0.0
3
+ version: 3.1.0
4
4
  updated: 2026-07-02
5
5
  description: Design AI Logic, Prompts, RAG pipelines, and Agents.
6
6
  category: ai
7
+ behavior: development
8
+ intent: implement-feature
7
9
  priority: medium
8
10
  tags: [ai, llm, prompt-engineering, rag, agents]
9
11
  platforms: [claude-code, cursor, windsurf, gemini-cli]
@@ -19,6 +21,7 @@ pipeline: [analyze, design, implement, validate, complete]
19
21
  > **Goal:** "AI Engineer". Xây dựng các tính năng thông minh bằng LLM (Chatbot, RAG pipeline, Agent workflows).
20
22
 
21
23
  ## 🔄 1. Chain of Thought (SOP)
24
+
22
25
  1. **Analyze (Task Breakdown):**
23
26
  - Determine the AI use case (Classification, Generation, Chat, Search).
24
27
  2. **Design (Prompt Engineering):**
@@ -29,13 +32,17 @@ pipeline: [analyze, design, implement, validate, complete]
29
32
  - Ensure API keys are not hardcoded.
30
33
 
31
34
  ## 🛡️ 2. Constraints & Rules
35
+
32
36
  - **JSON Parsing:** Always enforce JSON outputs if the AI response is consumed by the app, and handle parse errors.
33
37
 
34
38
  ## 🤝 3. Handoff Pipeline
39
+
35
40
  1. `validate`: Send to validation gate.
36
41
  2. `complete`: Output the AI Integration Report.
37
42
 
38
43
  ## 📝 4. Output Format
44
+
39
45
  Vui lòng trả kết quả bằng Tiếng Việt.
46
+
40
47
  - **Tóm tắt (Summary):** Luồng AI đã thiết lập.
41
48
  - **Chi tiết (Changes):** Prompt và logic gọi API.
@@ -1,9 +1,11 @@
1
1
  ---
2
2
  name: qk-api-lifecycle
3
- version: 3.0.0
3
+ version: 3.1.0
4
4
  updated: 2026-07-02
5
5
  description: Design, implement, and integrate API endpoints.
6
6
  category: engineering
7
+ behavior: development
8
+ intent: implement-feature
7
9
  priority: high
8
10
  tags: [api, backend, frontend-integration, endpoints]
9
11
  platforms: [claude-code, cursor, windsurf, gemini-cli]
@@ -19,6 +21,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
19
21
  > **Goal:** Quản lý toàn bộ vòng đời của một API, từ việc thiết kế Spec (Swagger/Types) cho đến khi Backend code xong và Frontend gọi thành công.
20
22
 
21
23
  ## 🔄 1. Chain of Thought (SOP)
24
+
22
25
  1. **Analyze (Contract Definition):**
23
26
  - Read the user requirements.
24
27
  - Define the exact API contract (Request Body, Query Params, Response DTO) in TypeScript interfaces or OpenAPI spec.
@@ -34,10 +37,12 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
34
37
  - Ensure loading states are managed on the frontend.
35
38
 
36
39
  ## 🛡️ 2. Constraints & Rules
40
+
37
41
  - **No Hardcoded URLs:** Never hardcode `http://localhost:3000` inside frontend components. Always use environment variables (`process.env.API_URL`).
38
42
  - **Separation of Concerns:** Do NOT write `fetch` or `axios.get` directly inside a React UI component. Extract it to a custom hook or an API service file.
39
43
 
40
44
  ## 🌳 3. Decision Tree
45
+
41
46
  ```text
42
47
  Is this a Backend or Frontend task?
43
48
  ├── BACKEND → Does the API need Database access?
@@ -49,12 +54,15 @@ Is this a Backend or Frontend task?
49
54
  ```
50
55
 
51
56
  ## 🤝 4. Handoff Pipeline
57
+
52
58
  1. `engineering-standard`: Verify API naming conventions (e.g., `GET /users` instead of `POST /getUsers`).
53
59
  2. `validate`: Run API tests and Type-checks.
54
60
  3. `complete`: Generate the final report.
55
61
 
56
62
  ## 📝 5. Output Format
63
+
57
64
  Vui lòng trả kết quả bằng Tiếng Việt. Sử dụng template chuẩn của hệ thống:
65
+
58
66
  - **Tóm tắt (Summary):** Các endpoint đã tạo hoặc tích hợp.
59
67
  - **Chi tiết (Changes):** File nào chứa logic API.
60
68
  - **Kiến trúc (Reasoning):** Lý do chọn thư viện hoặc cách bắt lỗi (Error handling).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: qk-bug-resolution
3
- version: 3.0.0
3
+ version: 3.1.0
4
4
  updated: 2026-07-02
5
5
  description: Fix bugs and prevent regressions.
6
6
  category: engineering
@@ -21,6 +21,7 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
21
21
  > **Goal:** Định vị nguyên nhân, sửa lỗi triệt để, và đảm bảo lỗi không bị lặp lại (Regression Prevention).
22
22
 
23
23
  ## 🔄 1. Chain of Thought (SOP)
24
+
24
25
  1. **Analyze (Root Cause Analysis):**
25
26
  - Read the provided error log or bug description.
26
27
  - Trace the error to the exact file and line of code.
@@ -36,11 +37,13 @@ pipeline: [analyze, implement, engineering-standard, validate, complete]
36
37
  - Ensure backward compatibility.
37
38
 
38
39
  ## 🛡️ 3. Constraints & Rules
40
+
39
41
  - **No Guesses:** Do not assume the shape of an API response. Print it or read the type definitions first.
40
42
  - **Minimal Fix:** Always prefer a 1-line fix over a 100-line refactor, unless the architecture is fundamentally broken.
41
43
  - **Clean Up:** Remove any `console.log()` or debugger statements introduced during the debugging process.
42
44
 
43
45
  ## 🌳 3. Decision Tree
46
+
44
47
  ```text
45
48
  Is there a Stack Trace?
46
49
  ├── YES → Use grep_search to find the exact file and line number.
@@ -52,13 +55,17 @@ Is the bug related to State/Re-rendering?
52
55
  ```
53
56
 
54
57
  ## 🤝 4. Handoff Pipeline
58
+
55
59
  After implementing the fix, map to the pipeline:
60
+
56
61
  1. `engineering-standard`: Ensure the fix follows naming and architecture rules.
57
62
  2. `validate`: Run linters and tests (via `qk-validation-gate` equivalent).
58
63
  3. `complete`: Output the final report.
59
64
 
60
65
  ## 📝 5. Output Format
66
+
61
67
  Vui lòng sử dụng template `templates/bug-report.md` (Báo Cáo Xử Lý Lỗi) để phản hồi lại cho người dùng bằng Tiếng Việt. Nội dung bao gồm:
68
+
62
69
  - Summary
63
70
  - Changes
64
71
  - Root Cause