# Trang 3.2: Skills - Hệ thống kỹ năng và kiến thức chuyên sâu cho AI.

## 1. Skill là gì?

**Skill** là một gói kiến thức chuyên biệt chứa các nguyên lý, mẫu thiết kế (patterns) và khung ra quyết định (decision-making framework) cho một lĩnh vực cụ thể.

### Skills khác gì so với template code thông thường?

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-%C4%90%E1%BA%B7c-%C4%91i%E1%BB%83m-template-co" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Đặc điểm</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Template Code Thông thường</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill trong Antigravity Kit</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">**Bản chất**</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Code mẫu cứng nhắc để copy</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Nguyên lý để suy nghĩ và quyết định</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">**Tính linh hoạt**</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Cố định, áp sát một pattern</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Thích nghi theo ngữ cảnh dự án</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">**Kết quả**</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Code giống nhau cho mọi trường hợp</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Code phù hợp với yêu cầu cụ thể</td></tr></tbody></table>

</div></div></div></div></div></div></div>> **Ví dụ:** Thay vì đưa cho bạn một template API cố định, Skill `api-patterns` dạy AI *cách quyết định* khi nào dùng REST, khi nào dùng GraphQL, và khi nào dùng tRPC dựa trên ngữ cảnh dự án của bạn.

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content">---

</div></div></div></div></div></div>## 2. Cách Skills được tải (Load on-demand)

Skills **không** được tải toàn bộ một lúc. Chúng được tải **theo yêu cầu** theo 3 cơ chế:

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-c%E1%BA%A5u-h%C3%ACnh-agent%3A%C2%A0m%E1%BB%97i-" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content">1. **Cấu hình Agent:** Mỗi Agent trong YAML frontmatter liệt kê các Skills nó được phép truy cập (trường `skills:`).
2. **Ngữ cảnh tác vụ:** Khi nhận yêu cầu, AI đọc mô tả của các Skills có liên quan và chỉ tải những Skill thực sự cần thiết.
3. **Đọc có chọn lọc:** Chỉ đọc các section cần thiết trong **<span class="context-scope-mention"><span class="inline-flex items-center gap-0.5 rounded-md align-middle text-sm font-medium transition-[opacity,background-color] cursor-pointer hover:bg-gray-500/20 select-text translate-y-[-1px]" draggable="true"><span class="inline-flex break-all leading-tight">SKILL.md</span></span></span>**, không đọc toàn bộ để tối ưu hiệu suất.

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="11" data-line-number="11" data-line-start="11"><div class="line-content"></div></div></div></div></div></div></div></div></div></div></div></div>```html
Ví dụ:
Yêu cầu: "Tạo API endpoint cho giỏ hàng"
│
▼
backend-specialist được kích hoạt
│
▼
Tải: api-patterns + nodejs-best-practices + database-design
│
▼
Không tải: mobile-design, seo-fundamentals, red-team-tactics...
```

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk--1" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="11" data-line-number="11" data-line-start="11"><div class="line-content"></div></div></div></div></div></div>---

</div></div></div></div></div></div>## 3. Cấu trúc một Skill

```html
.agent/skills/react-best-practices/
├── SKILL.md # Bắt buộc — Metadata, nguyên lý chính, khung quyết định
├── sections/ # Tùy chọn — Hướng dẫn chi tiết theo từng chủ đề nhỏ
├── examples/ # Tùy chọn — Ví dụ triển khai tham khảo thực tế
├── scripts/ # Tùy chọn — Script Python/Bash có thể chạy tự động
└── assets/ # Tùy chọn — Hình ảnh, assets tham khảo
```

**Phần đầu của**

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill.md%C2%A0%28frontmatte" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content">**<span class="inline-flex break-all leading-tight">SKILL.md</span> (Frontmatter YAML):**</div></div></div></div></div></div><div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk--2" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" node="[object Object]"><div class="min-h-7 relative box-border flex flex-row items-center justify-between rounded-t border-b border-gray-500/20 px-2 py-0.5">  
</div><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="5" data-line-number="5" data-line-start="5"><div class="line-content"></div></div></div></div></div></div></div></div></div></div></div></div>```html
yaml
---
name: react-best-practices
description: React & Next.js performance optimization from Vercel Engineering.
allowed-tools: Read, Write, Edit, Bash
---
```

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk--3" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="5" data-line-number="5" data-line-start="5"><div class="line-content"></div></div></div></div></div></div>---

</div></div></div></div></div></div>## 4. Danh sách đầy đủ 36 Skills theo nhóm

### 🎨 Frontend &amp; UI (5 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-react-be" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`react-best-practices`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Tối ưu React &amp; Next.js — 57 quy tắc từ Vercel Engineering</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`web-design-guidelines`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Kiểm toán UI web — 100+ quy tắc về Accessibility, UX, Performance</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`tailwind-patterns`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Tailwind CSS v4, CSS-first config, container queries</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`frontend-design`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Hệ thống thiết kế, bảng màu, typography, micro-animations</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`ui-ux-pro-max`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">**50 phong cách** thiết kế, **21 bảng màu**, **50 font chữ** chuyên nghiệp</td></tr></tbody></table>

</div></div></div></div></div></div></div>### ⚙️ Backend &amp; API (4 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-api-patt" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`api-patterns`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Thiết kế API: REST vs GraphQL vs tRPC, versioning, pagination</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`nestjs-expert`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">NestJS modules, DI container, decorators, Guards</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`nodejs-best-practices`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Node.js async patterns, bảo mật, kiến trúc module</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`python-patterns`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">FastAPI, Django, async vs sync, type hints, Pydantic v2</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🗄️ Database (2 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-database" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`database-design`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Thiết kế schema, chiến lược indexing, tránh N+1 query</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`prisma-expert`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Prisma ORM, migrations, relations, query optimization</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 📝 TypeScript / JavaScript (1 Skill)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-typescri" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`typescript-expert`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Lập trình kiểu nâng cao (generics, conditional types), hiệu năng biên dịch</td></tr></tbody></table>

</div></div></div></div></div></div></div>### ☁️ Cloud &amp; Infrastructure (3 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-docker-e" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`docker-expert`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Containerization, Docker Compose, multi-stage builds</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`deployment-procedures`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">CI/CD, chiến lược deploy 5 giai đoạn, rollback</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`server-management`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Quản lý process, monitoring, scaling</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🧪 Testing &amp; Quality (5 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-testing-" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`testing-patterns`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Pyramid kiểm thử, Jest/Vitest, AAA pattern, mocking</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`webapp-testing`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">E2E testing, Playwright, audit chiến lược sâu</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`tdd-workflow`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Vòng lặp RED-GREEN-REFACTOR, test-first development</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`code-review-checklist`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Tiêu chuẩn review code: chất lượng, bảo mật, best practice</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`lint-and-validate`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">ESLint, Prettier, TypeScript strict mode</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🔒 Security (2 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-vulnerab" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`vulnerability-scanner`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">OWASP 2025, Supply Chain Security, phân tích lỗ hổng</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`red-team-tactics`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Chiến thuật tấn công theo MITRE ATT&amp;CK, báo cáo penetration test</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🏗️ Architecture &amp; Planning (4 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-app-buil" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`app-builder`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Tạo khung ứng dụng full-stack, chọn tech stack, phối hợp Agent</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`architecture`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">ADR (Architecture Decision Records), đánh đổi trade-off</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`plan-writing`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Phân rã công việc, định nghĩa phụ thuộc, tiêu chí xác minh</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`brainstorming`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Giao thức Socratic: đặt câu hỏi làm rõ trước khi triển khai</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 📱 Mobile (1 Skill)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-mobile-d" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`mobile-design`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Touch interaction, Mobile-first, iOS/Android conventions</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🎮 Game Development (1 Skill)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-game-dev" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`game-development`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Logic game, cơ học vật lý, vòng lặp game loop</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🔍 SEO &amp; Growth (2 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-seo-fund" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`seo-fundamentals`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">E-E-A-T, Core Web Vitals, Google algorithm principles</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`geo-fundamentals`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Generative Engine Optimization (tối ưu cho AI search: ChatGPT, Perplexity)</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 💻 Shell / CLI (2 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-bash-lin" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`bash-linux`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Linux commands, piping, error handling, scripting</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`powershell-windows`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">PowerShell operators, quản lý lỗi, pitfalls</td></tr></tbody></table>

</div></div></div></div></div></div></div>### 🔧 Other (6 Skills)

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-m%C3%B4-t%E1%BA%A3-clean-co" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`clean-code`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Tiêu chuẩn code sạch toàn cục, không over-engineering</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`behavioral-modes`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Các chế độ hoạt động AI (brainstorm, implement, debug, ship...)</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`parallel-agents`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Mẫu điều phối đa Agent, phân chia công việc độc lập</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`mcp-builder`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Xây dựng MCP Server, thiết kế tool &amp; resource patterns</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`documentation-templates`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Cấu trúc README, API docs, comment code</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`i18n-localization`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Phát hiện hardcoded string, quản lý translations, RTL</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`performance-profiling`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Core Web Vitals, đo lường, bundle analysis</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`systematic-debugging`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Quy trình 4 giai đoạn: Discovery → Hypothesis → Verification → Resolution</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`rust-pro`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Rust 1.75+, async/await, Tokio, axum, systems programming</td></tr></tbody></table>

</div>---

</div></div></div></div></div></div>## 5. Skills đặc biệt kèm theo công cụ thực thi

Các Skills sau không chỉ cung cấp kiến thức mà còn có **scripts Python** để Agent có thể tự động kiểm tra:

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk-skill-script-t%C3%A1c-d%E1%BB%A5n" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="my-4 rounded-lg overflow-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Skill</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Script</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Tác dụng</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`vulnerability-scanner`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`security_scan.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Quét lỗ hổng bảo mật trong dependencies</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`lint-and-validate`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`lint_runner.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Chạy ESLint, kiểm tra type errors</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`database-design`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`schema_validator.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Kiểm tra tính nhất quán schema DB</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`testing-patterns`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`test_runner.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Chạy bộ test tự động (Jest/Vitest)</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`frontend-design`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`ux_audit.py`, `accessibility_checker.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Kiểm tra UX Laws và WCAG Accessibility</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`seo-fundamentals`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`seo_checker.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Kiểm tra meta tags, cấu trúc heading</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`performance-profiling`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`lighthouse_audit.py`, `bundle_analyzer.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Đo lường Lighthouse score và bundle size</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`webapp-testing`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`playwright_runner.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Chạy E2E test với Playwright</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`mobile-design`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`mobile_audit.py`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Kiểm tra responsive và touch targets</td></tr></tbody></table>

</div>---

</div></div></div></div></div></div>## 6. Cách Skills được tích hợp với Agents (ví dụ thực tế)

```html
frontend-specialist.md:
---
skills: react-best-practices, frontend-design, tailwind-patterns, web-design-guidelines
---


Khi yêu cầu: "Tạo component card sản phẩm đẹp và dễ tiếp cận"
│
Agent tải:
├── react-best-practices → Áp dụng Server Components, tránh re-render thừa
├── frontend-design → Chọn bảng màu, spacing hợp lý
├── tailwind-patterns → Viết class Tailwind đúng chuẩn v4
└── web-design-guidelines → Đảm bảo ARIA labels, contrast ratio
```

<div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" id="bkmrk--4" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="2" data-line-number="2" data-line-start="2"><div class="line-content"><div class="relative whitespace-pre-wrap word-break-all my-2 rounded-lg bg-list-hover-subtle border border-gray-500/20" node="[object Object]"><div class="p-3"><div class="w-full h-full text-xs cursor-text"><div class="code-block"><div class="code-line" data-line-end="12" data-line-number="12" data-line-start="12"><div class="line-content"></div></div></div></div></div></div>  
</div></div></div></div></div></div>