ai-developer-skill-os 1.0.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/CHANGELOG.md +31 -0
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/_template/SKILL.md +154 -0
- package/_template/examples/example-en.md +49 -0
- package/_template/examples/example-vi.md +49 -0
- package/bin/install.js +56 -0
- package/docs/CHI_TIET_SKILLS.md +117 -0
- package/docs/HUONG_DAN_SU_DUNG.md +102 -0
- package/package.json +34 -0
- package/skills/backend/auth-security/SKILL.md +94 -0
- package/skills/backend/backend-architecture/SKILL.md +123 -0
- package/skills/backend/database-engineer/SKILL.md +102 -0
- package/skills/backend/deployment/SKILL.md +94 -0
- package/skills/engineering/agent-orchestrator/SKILL.md +177 -0
- package/skills/engineering/api-integration/SKILL.md +378 -0
- package/skills/engineering/bug-fix/SKILL.md +211 -0
- package/skills/engineering/context-manager/SKILL.md +174 -0
- package/skills/engineering/git-engineer/SKILL.md +302 -0
- package/skills/engineering/migration/SKILL.md +282 -0
- package/skills/engineering/project-audit/SKILL.md +278 -0
- package/skills/engineering/refactor/SKILL.md +220 -0
- package/skills/frontend/accessibility-audit/SKILL.md +119 -0
- package/skills/frontend/component-generator/SKILL.md +134 -0
- package/skills/frontend/design-system/SKILL.md +135 -0
- package/skills/frontend/form-builder/SKILL.md +138 -0
- package/skills/frontend/frontend-architecture/SKILL.md +153 -0
- package/skills/frontend/frontend-debug/SKILL.md +131 -0
- package/skills/frontend/frontend-performance/SKILL.md +127 -0
- package/skills/frontend/frontend-testing/SKILL.md +144 -0
- package/skills/frontend/state-management/SKILL.md +138 -0
- package/skills/frontend/table-crud-generator/SKILL.md +125 -0
- package/skills/frontend/ui-builder/SKILL.md +150 -0
- package/skills.json +667 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
## [1.0.0] - 2026-07-01
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Released the complete AI Developer Skill OS with 23 targeted skills for coding agents.
|
|
12
|
+
- **Engineering Core (8 skills):**
|
|
13
|
+
- `agent-orchestrator` for planning and delegating tasks.
|
|
14
|
+
- `context-manager` for project context and file selection.
|
|
15
|
+
- `project-audit` for 3-mode health checks.
|
|
16
|
+
- `bug-fix` with root cause analysis.
|
|
17
|
+
- `refactor` for safe, behavior-preserving code restructuring.
|
|
18
|
+
- `migration` for dependency updates and library swapping.
|
|
19
|
+
- `api-integration` for robust API connections.
|
|
20
|
+
- `git-engineer` for commit messages and PR documentation.
|
|
21
|
+
- **Frontend Core (11 skills):**
|
|
22
|
+
- `frontend-architecture`, `design-system`, `ui-builder`, `component-generator`.
|
|
23
|
+
- `state-management`, `form-builder`, `table-crud-generator`.
|
|
24
|
+
- `frontend-debug`, `frontend-testing`, `accessibility-audit`, `frontend-performance`.
|
|
25
|
+
- **Backend Core (4 skills):**
|
|
26
|
+
- `backend-architecture`, `database-engineer`, `auth-security`, `deployment`.
|
|
27
|
+
- Added comprehensive `skills.json` registry with dependencies and trigger keywords.
|
|
28
|
+
- Added bilingual `README.md` (English/Vietnamese).
|
|
29
|
+
- Added detailed user documentation in `docs/HUONG_DAN_SU_DUNG.md` and `docs/CHI_TIET_SKILLS.md`.
|
|
30
|
+
- Translated all skill frontmatter descriptions to Vietnamese for better UX in agent terminals.
|
|
31
|
+
- Included generic English and Vietnamese usage examples in `_template/examples/`.
|
package/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.
|
package/README.md
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# AI Developer Skill OS
|
|
2
|
+
|
|
3
|
+
**A multi-agent skill package for AI coding assistants.**
|
|
4
|
+
Bộ skill package đa nền tảng cho AI coding assistant.
|
|
5
|
+
|
|
6
|
+
> Tác giả: **Quang Khánh**
|
|
7
|
+
> Compatible with: **Claude Code · Kilo Code · Antigravity/Gemini IDE · Cursor · Windsurf**
|
|
8
|
+
|
|
9
|
+
📚 **Tài liệu hữu ích:**
|
|
10
|
+
- [Hướng dẫn sử dụng](file:///docs/HUONG_DAN_SU_DUNG.md)
|
|
11
|
+
- [Chi tiết toàn bộ Skills (Tiếng Việt)](file:///docs/CHI_TIET_SKILLS.md)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## What is this? / Đây là gì?
|
|
16
|
+
|
|
17
|
+
**EN:** A structured collection of skills that transform AI coding agents into specialized engineering roles. Each skill defines a precise workflow, scope, rules, and output format — so AI consistently behaves like a senior engineer, not a random code generator.
|
|
18
|
+
|
|
19
|
+
**VI:** Bộ skill có cấu trúc biến AI coding agent thành các vai trò kỹ sư chuyên biệt. Mỗi skill định nghĩa workflow, phạm vi, quy tắc và định dạng output rõ ràng — để AI hoạt động nhất quán như senior engineer, không phải code generator tùy tiện.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Skill Map / Sơ đồ Skill
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
agent-orchestrator → Plan only. Routes work to correct skills.
|
|
27
|
+
context-manager → Understands project structure. Manages what to read.
|
|
28
|
+
project-audit → Diagnoses codebase before any changes.
|
|
29
|
+
↓
|
|
30
|
+
frontend-architecture → Decides file placement and folder conventions.
|
|
31
|
+
design-system → Enforces component library usage.
|
|
32
|
+
↓
|
|
33
|
+
ui-builder · component-generator · form-builder · table-crud-generator
|
|
34
|
+
↓
|
|
35
|
+
api-integration → FE ↔ BE contract layer.
|
|
36
|
+
state-management → Chooses correct state strategy.
|
|
37
|
+
↓
|
|
38
|
+
bug-fix · frontend-debug · refactor · migration
|
|
39
|
+
↓
|
|
40
|
+
frontend-testing · accessibility-audit · frontend-performance
|
|
41
|
+
↓
|
|
42
|
+
git-engineer → Commit, PR, changelog, release.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Skills / Danh sách Skill
|
|
48
|
+
|
|
49
|
+
### Engineering (8 skills)
|
|
50
|
+
| Skill | Purpose |
|
|
51
|
+
|-------|---------|
|
|
52
|
+
| `agent-orchestrator` | Plans tasks, routes to correct skills — never writes code |
|
|
53
|
+
| `context-manager` | Selects relevant files, summarizes architecture |
|
|
54
|
+
| `project-audit` | Full codebase health check (Quick / Standard / Full mode) |
|
|
55
|
+
| `bug-fix` | Diagnose and fix specific bugs with evidence |
|
|
56
|
+
| `refactor` | Safe restructuring without breaking behavior |
|
|
57
|
+
| `api-integration` | Build production-ready API integration layers |
|
|
58
|
+
| `migration` | Dependency upgrades and framework migrations |
|
|
59
|
+
| `git-engineer` | Commit messages, PR descriptions, changelogs |
|
|
60
|
+
|
|
61
|
+
### Frontend (11 skills)
|
|
62
|
+
| Skill | Purpose |
|
|
63
|
+
|-------|---------|
|
|
64
|
+
| `frontend-architecture` | Folder structure, file placement conventions |
|
|
65
|
+
| `design-system` | Enforce component library — no raw HTML elements |
|
|
66
|
+
| `ui-builder` | Build UI screens from requirements |
|
|
67
|
+
| `component-generator` | Generate typed, reusable components |
|
|
68
|
+
| `state-management` | Choose and implement correct state layer |
|
|
69
|
+
| `form-builder` | Forms with schema validation and error handling |
|
|
70
|
+
| `table-crud-generator` | Admin tables with pagination, filter, sort, CRUD |
|
|
71
|
+
| `frontend-debug` | React errors, hydration, state, CSS issues |
|
|
72
|
+
| `frontend-testing` | Unit, component, and e2e tests |
|
|
73
|
+
| `frontend-performance` | Bundle, render, lazy load optimization |
|
|
74
|
+
| `accessibility-audit` | ARIA, contrast, keyboard, mobile accessibility |
|
|
75
|
+
|
|
76
|
+
### Backend (4 skills)
|
|
77
|
+
| Skill | Purpose |
|
|
78
|
+
|-------|---------|
|
|
79
|
+
| `backend-architecture` | Service / controller / repository pattern |
|
|
80
|
+
| `database-engineer` | Schema design, migrations, indexing |
|
|
81
|
+
| `auth-security` | JWT, OAuth, RBAC implementation |
|
|
82
|
+
| `deployment` | CI/CD, Docker, environment configuration |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Installation / Cài đặt
|
|
87
|
+
|
|
88
|
+
### Antigravity / Gemini IDE
|
|
89
|
+
|
|
90
|
+
Place this folder in your `.agents/skills/` directory:
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
your-project/
|
|
94
|
+
└── .agents/
|
|
95
|
+
└── skills/ ← copy the `skills/` folder here
|
|
96
|
+
├── engineering/
|
|
97
|
+
├── frontend/
|
|
98
|
+
└── backend/
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Or register globally in `C:\Users\<you>\.gemini\config\skills\`.
|
|
102
|
+
|
|
103
|
+
### Claude Code / Kilo Code / Cursor
|
|
104
|
+
|
|
105
|
+
Reference skills from your project rules file (`.cursorrules`, `CLAUDE.md`, etc.):
|
|
106
|
+
|
|
107
|
+
```md
|
|
108
|
+
Use skills from: ./rules-skill/skills/
|
|
109
|
+
When the user requests [task], load the appropriate SKILL.md and follow it precisely.
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Language / Ngôn ngữ
|
|
115
|
+
|
|
116
|
+
| Layer | Language |
|
|
117
|
+
|-------|----------|
|
|
118
|
+
| SKILL.md content | 🇬🇧 English |
|
|
119
|
+
| Code, identifiers | 🇬🇧 English always |
|
|
120
|
+
| AI responses | Matches user's language automatically |
|
|
121
|
+
| README, docs | 🇬🇧 English + 🇻🇳 Vietnamese |
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Contributing / Đóng góp
|
|
126
|
+
|
|
127
|
+
1. Copy `_template/SKILL.md`
|
|
128
|
+
2. Fill in all sections (Trigger, Scope, Non-goals, Workflow, Decision Tree, Output Format, Validation, Examples)
|
|
129
|
+
3. Add to `skills.json` with `trigger[]` and `dependencies[]`
|
|
130
|
+
4. Add to correct category folder under `skills/`
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Version / Phiên bản
|
|
135
|
+
|
|
136
|
+
**v1.0.0** — Initial release.
|
|
137
|
+
Engineering foundation + Frontend core complete.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
*Tác giả: Quang Khánh*
|
|
142
|
+
*Được xây dựng cho cộng đồng AI engineering.*
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: <skill-name>
|
|
3
|
+
description: >-
|
|
4
|
+
<1-3 lines in English. This is used for trigger matching across all AI agents.
|
|
5
|
+
Be specific and action-oriented. Avoid vague words.>
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
category: engineering | frontend | backend
|
|
8
|
+
tags: [tag1, tag2, tag3]
|
|
9
|
+
platforms: [antigravity, claude-code, kilo-code, cursor, windsurf]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# <Skill Name>
|
|
13
|
+
|
|
14
|
+
> **Language rule:**
|
|
15
|
+
> Use **English** for: code, identifiers, file names, architecture terms, technical decisions.
|
|
16
|
+
> Use **the user's language** for: explanations, questions, summaries, and feedback.
|
|
17
|
+
> The user may write in any language — detect and match it automatically.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Trigger
|
|
22
|
+
|
|
23
|
+
When to activate this skill. List specific conditions, user intents, and keywords.
|
|
24
|
+
|
|
25
|
+
Examples:
|
|
26
|
+
- User says "create a new page"
|
|
27
|
+
- User provides a UI mockup or wireframe
|
|
28
|
+
- User asks to "build", "design", or "implement" a screen
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Scope
|
|
33
|
+
|
|
34
|
+
What this skill is responsible for. Be explicit.
|
|
35
|
+
|
|
36
|
+
- ✅ [What it covers]
|
|
37
|
+
- ✅ [What it covers]
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Non-goals
|
|
42
|
+
|
|
43
|
+
What this skill must NOT do. This prevents scope creep.
|
|
44
|
+
|
|
45
|
+
- ❌ Do NOT [action A]
|
|
46
|
+
- ❌ Do NOT [action B]
|
|
47
|
+
- ❌ Do NOT make changes beyond the stated task
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Severity Levels
|
|
52
|
+
|
|
53
|
+
All findings, issues, and risks use this shared scale:
|
|
54
|
+
|
|
55
|
+
| Level | Label | Meaning |
|
|
56
|
+
|-------|-------|---------|
|
|
57
|
+
| P0 | Critical | Must fix before any other work |
|
|
58
|
+
| P1 | High | Fix in current session |
|
|
59
|
+
| P2 | Medium | Schedule soon |
|
|
60
|
+
| P3 | Low | Technical debt — fix when possible |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Workflow
|
|
65
|
+
|
|
66
|
+
### Phase 1 — <Discovery / Analysis>
|
|
67
|
+
|
|
68
|
+
What to analyze, read, or understand first.
|
|
69
|
+
|
|
70
|
+
- Read: [files / folders / configs]
|
|
71
|
+
- Detect: [patterns / issues / context]
|
|
72
|
+
- Output: [brief summary of findings]
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
### Phase 2 — <Planning>
|
|
77
|
+
|
|
78
|
+
Before writing any code, produce a plan.
|
|
79
|
+
|
|
80
|
+
- List what will change and why
|
|
81
|
+
- Identify risks or conflicts
|
|
82
|
+
- Confirm with user if scope is unclear
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### Phase 3 — <Execution>
|
|
87
|
+
|
|
88
|
+
Apply changes following the plan.
|
|
89
|
+
|
|
90
|
+
Rules:
|
|
91
|
+
- Smallest safe change
|
|
92
|
+
- Preserve existing behavior unless explicitly changing it
|
|
93
|
+
- Follow project conventions (naming, structure, style)
|
|
94
|
+
- Do not introduce unnecessary dependencies
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### Phase 4 — <Validation>
|
|
99
|
+
|
|
100
|
+
Verify the output before finishing.
|
|
101
|
+
|
|
102
|
+
- [ ] Does it match the requirement?
|
|
103
|
+
- [ ] Are edge cases handled?
|
|
104
|
+
- [ ] No regressions introduced?
|
|
105
|
+
- [ ] Output format is complete?
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Decision Tree
|
|
110
|
+
|
|
111
|
+
Use this to handle branching logic during execution:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
Condition A?
|
|
115
|
+
├── Yes → Action X
|
|
116
|
+
└── No → Condition B?
|
|
117
|
+
├── Yes → Action Y
|
|
118
|
+
└── No → Ask user for clarification
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Output Format
|
|
124
|
+
|
|
125
|
+
Define exactly what the AI must produce at the end of this skill.
|
|
126
|
+
|
|
127
|
+
Example:
|
|
128
|
+
```
|
|
129
|
+
✅ Summary: <what was done>
|
|
130
|
+
📁 Files: <list of created/modified files>
|
|
131
|
+
⚠️ Warnings: <anything the user should know>
|
|
132
|
+
🔗 Next steps: <suggested follow-up skills or actions>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Validation Checklist
|
|
138
|
+
|
|
139
|
+
Before marking this skill complete:
|
|
140
|
+
|
|
141
|
+
- [ ] All phases completed
|
|
142
|
+
- [ ] Output format produced
|
|
143
|
+
- [ ] No TODOs or placeholder code left
|
|
144
|
+
- [ ] No hardcoded secrets, URLs, or credentials
|
|
145
|
+
- [ ] Follows project naming conventions
|
|
146
|
+
- [ ] User has been informed of any side effects
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Examples
|
|
151
|
+
|
|
152
|
+
See `examples/` folder for:
|
|
153
|
+
- `example-en.md` — English input/output example
|
|
154
|
+
- `example-vi.md` — Vietnamese input/output example
|
|
@@ -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
|
+
```
|
package/bin/install.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const sourceDir = path.join(__dirname, '..');
|
|
7
|
+
const targetDir = path.join(process.cwd(), 'rules-skill');
|
|
8
|
+
|
|
9
|
+
function copyRecursiveSync(src, dest) {
|
|
10
|
+
const exists = fs.existsSync(src);
|
|
11
|
+
const stats = exists && fs.statSync(src);
|
|
12
|
+
const isDirectory = exists && stats.isDirectory();
|
|
13
|
+
|
|
14
|
+
if (isDirectory) {
|
|
15
|
+
if (!fs.existsSync(dest)) {
|
|
16
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
17
|
+
}
|
|
18
|
+
fs.readdirSync(src).forEach(function(childItemName) {
|
|
19
|
+
copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
|
|
20
|
+
});
|
|
21
|
+
} else {
|
|
22
|
+
fs.copyFileSync(src, dest);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
console.log('🚀 Đang cài đặt AI Developer Skill OS...');
|
|
27
|
+
|
|
28
|
+
const filesAndFolders = [
|
|
29
|
+
'skills',
|
|
30
|
+
'_template',
|
|
31
|
+
'docs',
|
|
32
|
+
'skills.json',
|
|
33
|
+
'README.md',
|
|
34
|
+
'CHANGELOG.md',
|
|
35
|
+
'LICENSE'
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
if (!fs.existsSync(targetDir)) {
|
|
40
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
filesAndFolders.forEach(item => {
|
|
44
|
+
const src = path.join(sourceDir, item);
|
|
45
|
+
const dest = path.join(targetDir, item);
|
|
46
|
+
if (fs.existsSync(src)) {
|
|
47
|
+
copyRecursiveSync(src, dest);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
console.log('✅ Đã cài đặt thành công vào thư mục: ./rules-skill/');
|
|
52
|
+
console.log('\n💡 Tiếp theo, hãy tham khảo ./rules-skill/docs/HUONG_DAN_SU_DUNG.md để cấu hình cho AI của bạn nhé!');
|
|
53
|
+
} catch (error) {
|
|
54
|
+
console.error('❌ Có lỗi xảy ra trong quá trình cài đặt:', error.message);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Chi Tiết 23 Skills — AI Developer Skill OS
|
|
2
|
+
|
|
3
|
+
**Tác giả:** Quang Khánh
|
|
4
|
+
**Phiên bản:** v1.0.0
|
|
5
|
+
|
|
6
|
+
Tài liệu này giải thích chi tiết chức năng của từng Skill trong bộ Skill OS.
|
|
7
|
+
AI sẽ đọc mô tả (description) bằng tiếng Anh để nhận diện, nhưng bạn có thể đọc tài liệu tiếng Việt này để hiểu AI có thể làm được gì.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 🛠️ Nhóm 1: Engineering Core (Kỹ thuật Cốt lõi)
|
|
12
|
+
|
|
13
|
+
Đây là các kỹ năng chung quản lý toàn bộ dự án, kiến trúc và mã nguồn.
|
|
14
|
+
|
|
15
|
+
### 1. `agent-orchestrator` (Người Điều Phối)
|
|
16
|
+
- **Mô tả:** AI không tự viết code mà đóng vai trò như một Project Manager. Phân tích yêu cầu phức tạp của bạn, chia nhỏ thành các tác vụ (Task) và quyết định gọi các Skill nào theo thứ tự nào.
|
|
17
|
+
- **Khi nào dùng:** Khi bạn giao một việc lớn ("Làm cho tôi tính năng thanh toán") mà không biết bắt đầu từ đâu.
|
|
18
|
+
|
|
19
|
+
### 2. `context-manager` (Quản Lý Ngữ Cảnh)
|
|
20
|
+
- **Mô tả:** Xác định file nào cần đọc, đọc cấu trúc thư mục, ghi nhớ kiến trúc hệ thống để AI không bị "quên" hoặc đọc tràn ngập các file không cần thiết.
|
|
21
|
+
- **Khi nào dùng:** Khi bắt đầu một dự án mới tinh, hoặc khi AI cần nắm bắt bức tranh tổng thể.
|
|
22
|
+
|
|
23
|
+
### 3. `project-audit` (Kiểm Toán Dự Án)
|
|
24
|
+
- **Mô tả:** Quét toàn bộ mã nguồn hoặc các file bạn vừa thay đổi để tìm kiếm bug tiềm ẩn, code smell, lỗ hổng bảo mật hoặc nợ kỹ thuật. AI sẽ xuất ra một báo cáo khám bệnh chi tiết.
|
|
25
|
+
- **Khi nào dùng:** Trước khi refactor lớn, trước khi release, hoặc muốn kiểm tra code mình viết có sạch không.
|
|
26
|
+
|
|
27
|
+
### 4. `bug-fix` (Chuyên Gia Sửa Lỗi)
|
|
28
|
+
- **Mô tả:** Dò tìm nguyên nhân gốc rễ (root cause) của một lỗi dựa trên stack trace hoặc mô tả của bạn. Không chữa cháy tạm thời, cung cấp bản fix tối thiểu và an toàn nhất.
|
|
29
|
+
- **Khi nào dùng:** Khi app bị crash, test fail, màn hình trắng.
|
|
30
|
+
|
|
31
|
+
### 5. `refactor` (Tái Cấu Trúc Code)
|
|
32
|
+
- **Mô tả:** Làm sạch code, tách hàm, tách component, xóa code thừa, dọn dẹp biến mà **không làm thay đổi logic hoạt động**.
|
|
33
|
+
- **Khi nào dùng:** Khi code quá rối rắm (spaghetti code), cần dọn dẹp cho dễ bảo trì.
|
|
34
|
+
|
|
35
|
+
### 6. `api-integration` (Kỹ Sư Tích Hợp API)
|
|
36
|
+
- **Mô tả:** Nhận bất kỳ input nào (curl, swagger, postman, backend controller) và sinh ra một lớp gọi API hoàn chỉnh cho Frontend (Type chuẩn, xử lý lỗi, call Axios/Fetch/React Query).
|
|
37
|
+
- **Khi nào dùng:** Khi Backend vừa làm xong API và bạn cần nối nó vào Frontend.
|
|
38
|
+
|
|
39
|
+
### 7. `migration` (Nâng Cấp Hệ Thống)
|
|
40
|
+
- **Mô tả:** Nâng cấp an toàn các thư viện cũ (như React 17 lên 19), chuyển đổi thư viện (Moment sang Date-fns) theo mô hình tăng dần, có kế hoạch Rollback.
|
|
41
|
+
- **Khi nào dùng:** Khi cần update package có lỗ hổng bảo mật hoặc chuyển framework.
|
|
42
|
+
|
|
43
|
+
### 8. `git-engineer` (Quản Lý Git & Release)
|
|
44
|
+
- **Mô tả:** Viết commit message cực chuẩn theo Conventional Commits, viết mô tả Pull Request, sinh Changelog và Release Notes cho sếp/khách hàng đọc.
|
|
45
|
+
- **Khi nào dùng:** Khi code xong và cần đẩy code lên hoặc chuẩn bị release version mới.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 🎨 Nhóm 2: Frontend (Giao Diện)
|
|
50
|
+
|
|
51
|
+
Nhóm chuyên biệt cho việc xây dựng giao diện người dùng (UI/UX).
|
|
52
|
+
|
|
53
|
+
### 9. `frontend-architecture` (Kiến Trúc Frontend)
|
|
54
|
+
- **Mô tả:** Đọc hiểu và ép AI phải tuân thủ việc đặt file ở đâu cho đúng chuẩn của project (Features-based, Layer-based, DDD...).
|
|
55
|
+
- **Khi nào dùng:** Khi không biết nên tạo file component mới ở thư mục nào.
|
|
56
|
+
|
|
57
|
+
### 10. `design-system` (Hệ Thống Thiết Kế)
|
|
58
|
+
- **Mô tả:** Ép AI phải dùng thư viện UI có sẵn (MUI, Shadcn, Tailwind...) thay vì tự viết HTML chay hay CSS inline lộn xộn.
|
|
59
|
+
- **Khi nào dùng:** Đi kèm khi xây dựng UI để giữ tính nhất quán.
|
|
60
|
+
|
|
61
|
+
### 11. `ui-builder` (Xây Dựng Giao Diện)
|
|
62
|
+
- **Mô tả:** Lắp ráp các component nhỏ thành một màn hình/trang hoàn chỉnh, xử lý layout (Grid/Flexbox) và responsive (di động/máy tính).
|
|
63
|
+
- **Khi nào dùng:** Khi bạn đưa wireframe/mockup và bảo "Làm cho tôi màn hình Dashboard".
|
|
64
|
+
|
|
65
|
+
### 12. `component-generator` (Tạo Component Đơn Lẻ)
|
|
66
|
+
- **Mô tả:** Sinh ra các mảnh ghép UI nhỏ, tái sử dụng được (như Button, Card, Dropdown) với Props Type an toàn.
|
|
67
|
+
- **Khi nào dùng:** Khi cần tạo một UI Component dùng chung.
|
|
68
|
+
|
|
69
|
+
### 13. `state-management` (Quản Lý Trạng Thái)
|
|
70
|
+
- **Mô tả:** Phân tích dữ liệu và quyết định nên dùng React Query, Redux, Zustand hay chỉ là useState local. Setup các store hoàn chỉnh.
|
|
71
|
+
- **Khi nào dùng:** Khi phải truyền Props quá sâu, hoặc cần lưu cache dữ liệu.
|
|
72
|
+
|
|
73
|
+
### 14. `form-builder` (Chuyên Gia Làm Form)
|
|
74
|
+
- **Mô tả:** Sinh ra các Form phức tạp với validate đầu vào (Zod, Yup) kết hợp React Hook Form. Hiển thị báo lỗi chuẩn mực.
|
|
75
|
+
- **Khi nào dùng:** Làm màn hình Đăng ký, Đăng nhập, Tạo mới dữ liệu.
|
|
76
|
+
|
|
77
|
+
### 15. `table-crud-generator` (Làm Bảng Dữ Liệu)
|
|
78
|
+
- **Mô tả:** Sinh ra bảng Data Grid hoàn chỉnh có phân trang (pagination), lọc, sắp xếp và các nút hành động (Thêm/Sửa/Xóa).
|
|
79
|
+
- **Khi nào dùng:** Làm trang Admin quản trị.
|
|
80
|
+
|
|
81
|
+
### 16. `frontend-debug` (Sửa Lỗi Frontend)
|
|
82
|
+
- **Mô tả:** Chuyên trị các lỗi khó chịu của UI như: Hydration Error (Next.js), Infinite Re-render (lặp vô tận), lỗi vỡ CSS layout.
|
|
83
|
+
- **Khi nào dùng:** Lỗi vỡ giao diện hoặc lỗi render của React.
|
|
84
|
+
|
|
85
|
+
### 17. `frontend-testing` (Kiểm Thử UI)
|
|
86
|
+
- **Mô tả:** Viết Unit Test, Component Test (React Testing Library) hay E2E Test (Cypress/Playwright) giả lập hành vi người dùng thật.
|
|
87
|
+
- **Khi nào dùng:** Khi sếp yêu cầu tăng Test Coverage hoặc bọc test cho tính năng quan trọng.
|
|
88
|
+
|
|
89
|
+
### 18. `accessibility-audit` (Kiểm Tra Tiếp Cận)
|
|
90
|
+
- **Mô tả:** Đảm bảo trang web chuẩn WCAG, dùng đúng thẻ Semantic HTML, có thể dùng phím Tab để điều hướng và hỗ trợ phần mềm đọc màn hình cho người khiếm thị.
|
|
91
|
+
- **Khi nào dùng:** Làm các project chuẩn quốc tế, nhà nước, hoặc tối ưu SEO nâng cao.
|
|
92
|
+
|
|
93
|
+
### 19. `frontend-performance` (Tối Ưu Hiệu Năng)
|
|
94
|
+
- **Mô tả:** Chữa bệnh web chạy chậm. Tối ưu ảnh, chẻ nhỏ file JS (Code splitting, Lazy load), thêm `useMemo/useCallback` để tránh giật lag.
|
|
95
|
+
- **Khi nào dùng:** Điểm Google Lighthouse thấp, web bị khựng khi cuộn.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## ⚙️ Nhóm 3: Backend (Máy Chủ)
|
|
100
|
+
|
|
101
|
+
Nhóm chuyên biệt cho việc xây dựng và quản lý API, máy chủ.
|
|
102
|
+
|
|
103
|
+
### 20. `backend-architecture` (Kiến Trúc Backend)
|
|
104
|
+
- **Mô tả:** Phân chia rạch ròi đâu là Controller (xử lý HTTP), đâu là Service (Xử lý nghiệp vụ), đâu là Repository (Gọi Database) để code không bị thành một đống bùi nhùi.
|
|
105
|
+
- **Khi nào dùng:** Cấu trúc file cho backend mới hoặc thêm module mới.
|
|
106
|
+
|
|
107
|
+
### 21. `database-engineer` (Kỹ Sư Cơ Sở Dữ Liệu)
|
|
108
|
+
- **Mô tả:** Thiết kế schema, vẽ quan hệ bảng, sinh script Migration, tối ưu hóa câu lệnh truy vấn (SQL, Prisma, Drizzle, MongoDB).
|
|
109
|
+
- **Khi nào dùng:** Cần thêm bảng mới vào DB hoặc API truy vấn DB quá chậm.
|
|
110
|
+
|
|
111
|
+
### 22. `auth-security` (Bảo Mật & Phân Quyền)
|
|
112
|
+
- **Mô tả:** Triển khai đăng nhập JWT, OAuth, thiết lập phân quyền (Admin vs User), phòng chống hacker tấn công bằng các cấu hình bảo mật chuẩn OWASP.
|
|
113
|
+
- **Khi nào dùng:** Làm tính năng đăng nhập, bảo vệ API nhạy cảm.
|
|
114
|
+
|
|
115
|
+
### 23. `deployment` (Triển Khai DevOps)
|
|
116
|
+
- **Mô tả:** Viết Dockerfile, cấu hình CI/CD bằng GitHub Actions, thiết lập luồng tự động build và deploy lên Vercel, AWS hoặc VPS.
|
|
117
|
+
- **Khi nào dùng:** Lúc cần đưa code lên môi trường production cho khách hàng xem.
|