ai-developer-skill-os 7.0.1 → 7.0.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/CHANGELOG.md +5 -0
- package/README.md +3 -3
- package/package.json +1 -1
- package/skills/qk-fe-api-integration/SKILL.md +55 -0
- package/skills.json +38 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to the **AI Developer Skill OS** project will be documented
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
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
|
+
|
|
8
13
|
## [7.0.0] - 2026-07-15
|
|
9
14
|
|
|
10
15
|
### Changed (The "Anti-Slop & Zero-Trust" Architecture Upgrade)
|
package/README.md
CHANGED
|
@@ -21,11 +21,11 @@ Bảo vệ mã nguồn khỏi thói quen "sửa vội" của AI. Lỗi bắt bu
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
## 🧩 Danh sách
|
|
24
|
+
## 🧩 Danh sách 23 Master Skills
|
|
25
25
|
|
|
26
26
|
Các kỹ năng được quản lý cực kỳ chặt chẽ với bài kiểm tra tự động (Vitest) để đảm bảo tính nhất quán của luật lệ:
|
|
27
27
|
- **Orchestration:** `qk-orchestrator`, `qk-context-loader`, `qk-policy-engine`, `qk-access-policy`
|
|
28
|
-
- **Engineering / Dev:** `qk-feature-delivery`, `qk-api-lifecycle`, `qk-data-lifecycle`, `qk-design-to-code`, `qk-ui-system-builder`
|
|
28
|
+
- **Engineering / Dev:** `qk-feature-delivery`, `qk-api-lifecycle`, `qk-fe-api-integration`, `qk-data-lifecycle`, `qk-design-to-code`, `qk-ui-system-builder`
|
|
29
29
|
- **Validation & Standards:** `qk-validation-gate`, `qk-engineering-standard`, `qk-ui-audit`, `qk-project-health`, `qk-bug-resolution`
|
|
30
30
|
- **Ops & AI:** `qk-system-evolution`, `qk-production-release`, `qk-ai-builder`, `qk-project-bootstrap`
|
|
31
31
|
- **Docs & Utils:** `qk-docs`, `qk-project-memory`, `qk-help`
|
|
@@ -45,7 +45,7 @@ npx ai-developer-skill-os init
|
|
|
45
45
|
|
|
46
46
|
## 🧪 Testing
|
|
47
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ộ
|
|
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
49
|
|
|
50
50
|
```bash
|
|
51
51
|
npm test
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qk-fe-api-integration
|
|
3
|
+
category: frontend
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: "Chuyên biệt hóa việc tiêu thụ (consume) API Backend, quản lý State, và ghép nối vào Giao diện (UI) tuân thủ chặt chẽ Base dự án."
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# qk-fe-api-integration
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
11
|
+
- Consume RESTful/GraphQL APIs from Backend (Plan & Execute).
|
|
12
|
+
- Automatically generate Types/Interfaces based on JSON Response.
|
|
13
|
+
- Manage UI states (Loading, Success, Error) and Pagination.
|
|
14
|
+
- Bind data to existing UI Components or create new ones based on the Design System.
|
|
15
|
+
|
|
16
|
+
## Verbs
|
|
17
|
+
- `[ANALYZE_BASE]`: Perform targeted, zero-overhead searches (e.g., grep `package.json` or check `src/api`) to rapidly identify existing API conventions (Axios, RTK Query, React Query). DO NOT execute exhaustive project scans.
|
|
18
|
+
- `[GENERATE_TYPES]`: Analyze cURL/JSON payloads to construct strict, type-safe TypeScript Interfaces/Types.
|
|
19
|
+
- `[INTEGRATE]`: Implement API consumption logic, execute Data Transfer Object (DTO) mapping, and bind state seamlessly to UI Components.
|
|
20
|
+
|
|
21
|
+
## Constraints
|
|
22
|
+
```yaml
|
|
23
|
+
must:
|
|
24
|
+
- "Execute a targeted lookup to identify the project's [Base API Client] architecture before writing network logic; NEVER default to raw fetch/axios if a wrapper exists"
|
|
25
|
+
- "Define explicit TypeScript Interfaces for both Request and Response schemas prior to implementation"
|
|
26
|
+
- "Thoroughly handle all 3 UI lifecycle states: Loading, Success, Error (via toast/alert mechanisms)"
|
|
27
|
+
- "Sanitize and map Backend payloads (DTO pattern) before injecting them into Dumb Components to prevent data leakage"
|
|
28
|
+
- "Maximize the reuse of existing project UI Components (Table, Form, Modal) over creating custom ones"
|
|
29
|
+
must_not:
|
|
30
|
+
- "Hardcode API Base URLs or Endpoint paths directly within UI components (enforce env vars or centralized config)"
|
|
31
|
+
- "Inject API calling logic (Smart logic) inside purely presentational components (Dumb components)"
|
|
32
|
+
- "Arbitrarily introduce new State/Fetching management libraries that conflict with the project's established standards"
|
|
33
|
+
- "Hallucinate or presume the existence of data fields not explicitly defined in the provided JSON samples"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Policies
|
|
37
|
+
```yaml
|
|
38
|
+
prefer:
|
|
39
|
+
- "Strict architectural separation between the Services layer (API calls) and the View layer (UI display)"
|
|
40
|
+
- "Implementation of Cache Invalidation strategies after successful Mutations (POST/PUT/DELETE) for state managers like React Query/RTK Query"
|
|
41
|
+
- "Surfacing user-friendly, localized error messages (Toast/Alert) rather than raw console logs"
|
|
42
|
+
- "Utilization of Optional Chaining (?.) and Nullish Coalescing (??) to construct resilient UIs that do not crash on malformed payloads"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Escalation
|
|
46
|
+
```yaml
|
|
47
|
+
stop:
|
|
48
|
+
- "The project's Base API Client is indiscernible or the overarching API architecture is ambiguous"
|
|
49
|
+
- "The provided Backend JSON lacks mandatory fields essential for rendering the requested UI components"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Output
|
|
53
|
+
- Strict Type/Interface definition files (e.g., `types.ts`).
|
|
54
|
+
- Modular API Services files (e.g., `api.ts`).
|
|
55
|
+
- Presentational UI Components with complete data binding and state handling.
|
package/skills.json
CHANGED
|
@@ -740,6 +740,40 @@
|
|
|
740
740
|
],
|
|
741
741
|
"status": "ready",
|
|
742
742
|
"description": "Cổng kiểm tra chất lượng bắt buộc (Test, Lint, Security)."
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "qk-fe-api-integration",
|
|
746
|
+
"path": "skills/qk-fe-api-integration/SKILL.md",
|
|
747
|
+
"version": "1.0.0",
|
|
748
|
+
"category": "engineering",
|
|
749
|
+
"subcategory": "frontend",
|
|
750
|
+
"behavior": "development",
|
|
751
|
+
"intent": "implement-feature",
|
|
752
|
+
"priority": "high",
|
|
753
|
+
"tags": [
|
|
754
|
+
"api",
|
|
755
|
+
"frontend",
|
|
756
|
+
"integration",
|
|
757
|
+
"ui-binding",
|
|
758
|
+
"state-management"
|
|
759
|
+
],
|
|
760
|
+
"trigger": [
|
|
761
|
+
"ghép api",
|
|
762
|
+
"tích hợp api",
|
|
763
|
+
"consume api",
|
|
764
|
+
"gọi api",
|
|
765
|
+
"bind data"
|
|
766
|
+
],
|
|
767
|
+
"dependencies": [],
|
|
768
|
+
"conflicts": [],
|
|
769
|
+
"platforms": [
|
|
770
|
+
"claude-code",
|
|
771
|
+
"cursor",
|
|
772
|
+
"windsurf",
|
|
773
|
+
"gemini-cli"
|
|
774
|
+
],
|
|
775
|
+
"status": "ready",
|
|
776
|
+
"description": "Chuyên biệt hóa việc tiêu thụ (consume) API Backend, quản lý State, và ghép nối vào Giao diện (UI) tuân thủ chặt chẽ Base dự án."
|
|
743
777
|
}
|
|
744
778
|
],
|
|
745
779
|
"categories": {
|
|
@@ -763,7 +797,8 @@
|
|
|
763
797
|
"qk-design-to-code",
|
|
764
798
|
"qk-feature-delivery",
|
|
765
799
|
"qk-project-bootstrap",
|
|
766
|
-
"qk-ui-system-builder"
|
|
800
|
+
"qk-ui-system-builder",
|
|
801
|
+
"qk-fe-api-integration"
|
|
767
802
|
],
|
|
768
803
|
"validation": [
|
|
769
804
|
"qk-production-release",
|
|
@@ -788,8 +823,8 @@
|
|
|
788
823
|
"lastAudited": "2026-07-02",
|
|
789
824
|
"auditedBy": "kilo-auto/free",
|
|
790
825
|
"specCompliance": "4.0",
|
|
791
|
-
"totalSkills":
|
|
792
|
-
"readySkills":
|
|
826
|
+
"totalSkills": 23,
|
|
827
|
+
"readySkills": 23,
|
|
793
828
|
"archivedSkills": 22
|
|
794
829
|
}
|
|
795
830
|
}
|