ai-developer-skill-os 3.1.0 → 3.1.2
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/.github/workflows/ci.yml +56 -0
- package/CHANGELOG.md +53 -50
- package/README.md +97 -84
- package/bin/install.js +22 -6
- package/package.json +44 -34
- package/rename.js +3 -3
- 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 +8 -1
- 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 +7 -1
- package/skills/qk-feature-delivery/SKILL.md +9 -1
- 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 +6 -1
- package/skills/qk-project-bootstrap/SKILL.md +8 -1
- package/skills/qk-project-health/SKILL.md +7 -1
- package/skills/qk-project-memory/SKILL.md +8 -1
- package/skills/qk-system-evolution/SKILL.md +7 -1
- package/skills/qk-ui-audit/SKILL.md +7 -1
- package/skills/qk-ui-system-builder/SKILL.md +8 -1
- package/skills/qk-validation-gate/SKILL.md +7 -1
- package/skills.json +405 -524
- 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
|
@@ -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
|
-
## [
|
|
9
|
-
|
|
10
|
-
### Changed
|
|
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
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
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)
|
|
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
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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. 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.
|
|
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
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import readline from 'readline';
|
|
6
|
+
import os from 'os';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
|
|
9
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
+
const __dirname = path.dirname(__filename);
|
|
7
11
|
|
|
8
12
|
const sourceDir = path.join(__dirname, '..');
|
|
9
13
|
|
|
@@ -237,8 +241,20 @@ Nếu người dùng sử dụng tham số (argument), bạn BẮT BUỘC phải
|
|
|
237
241
|
}
|
|
238
242
|
|
|
239
243
|
if (fs.existsSync(ruleFilePath)) {
|
|
240
|
-
fs.
|
|
241
|
-
|
|
244
|
+
const existingContent = fs.readFileSync(ruleFilePath, 'utf8');
|
|
245
|
+
const marker = isGemini ? '<RULE[ai_skill_os]>' : '[Role]\nYou are an elite AI Software Engineer.';
|
|
246
|
+
const markerIndex = existingContent.indexOf(marker);
|
|
247
|
+
if (markerIndex !== -1) {
|
|
248
|
+
const before = existingContent.substring(0, markerIndex);
|
|
249
|
+
const after = existingContent.substring(markerIndex).split('\n').slice(isGemini ? 2 : 1).join('\n');
|
|
250
|
+
const lastMarkerEnd = after.indexOf(isGemini ? '</RULE[ai_skill_os]>' : '[Trigger Mechanism]');
|
|
251
|
+
const actualAfter = lastMarkerEnd !== -1 ? after.substring(lastMarkerEnd + (isGemini ? 19 : 18)).trimStart() : after;
|
|
252
|
+
fs.writeFileSync(ruleFilePath, before + writeContent.trimStart() + (actualAfter ? '\n' + actualAfter : '') + '\n');
|
|
253
|
+
console.log(`✅ Đã CẬP NHẬT cấu hình tự động trong file: ${ruleFilePath}`);
|
|
254
|
+
} else {
|
|
255
|
+
fs.appendFileSync(ruleFilePath, "\n\n" + writeContent);
|
|
256
|
+
console.log(`✅ Đã GHI THÊM cấu hình tự động vào file: ${ruleFilePath}`);
|
|
257
|
+
}
|
|
242
258
|
} else {
|
|
243
259
|
fs.writeFileSync(ruleFilePath, writeContent);
|
|
244
260
|
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.
|
|
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
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-developer-skill-os",
|
|
3
|
+
"version": "3.1.2",
|
|
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
|
+
}
|
package/rename.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { execSync } from 'child_process';
|
|
4
4
|
|
|
5
5
|
const skillsDir = 'skills';
|
|
6
6
|
const categories = fs.readdirSync(skillsDir).filter(f => fs.statSync(path.join(skillsDir, f)).isDirectory());
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qk-access-policy
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.2
|
|
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.
|
|
3
|
+
version: 3.1.2
|
|
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.
|
|
3
|
+
version: 3.1.2
|
|
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).
|