create-skill
Skill này làm gì
Skill này giải thích khi nào và cách tạo một skill mới cho ứng dụng Agent-Native. Nó bao gồm các câu hỏi cần trả lời trước và khi nào một ghi chú nên được giữ ở nơi khác. Skill dành cho người xây dựng muốn agent làm theo một mẫu nhiều lần.
Khi nào nên dùng
- ✓Khi có một mẫu mà agent nên làm theo mỗi khi thực hiện một tác vụ nhất định.
- ✓Khi một quy trình nhiều bước cần hướng dẫn rõ ràng từng bước.
- ✓Khi bạn muốn tạo một template hoặc sinh file theo một bố cục chuẩn.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/create-skill/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một skill hướng dẫn agent cách thêm trang báo cáo mới theo cùng một cách mỗi lần không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent trước hết trả lời một cuộc phỏng vấn ngắn về mục đích, điều kiện kích hoạt và loại của skill. Sau đó nó viết một file skill ngắn, chỉ thêm file hỗ trợ khi thật sự cần.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Create a Skill
When to Use
Create a new skill when:
- There's a pattern the agent should follow repeatedly.
- A multi-step workflow needs reliable, step-by-step guidance.
- You want to scaffold files from a template.
Don't create a skill when:
- The guidance already exists in another skill — extend it instead.
- You're documenting something the agent already knows (e.g., how to write TypeScript).
- It's a one-off — put it in
AGENTS.md(for everyone) ormemory/MEMORY.md(personal, per-user). See capture-learnings.
Interview
Before writing the skill, answer these:
- What should this skill enable? — The core purpose in one sentence.
- Which of the four areas does it serve? — UI, actions, skills/instructions, or application state (see the adding-a-feature skill). Most skills are about how to touch one or more of these correctly.
- When should it trigger? — Describe the situations in natural language.
- Does it involve context awareness? — Does the agent need to know what the
user is looking at? If so, reference the
navigationapplication-state key and theview-screenaction pattern. See the context-awareness skill. - What type of skill? — Pattern, Workflow, or Generator (see below).
- Does it need supporting files? — References (read-only context) or none.
Keep it minimal; push depth into
references/.
Skill Types and Templates
Pattern (architectural rule)
For documenting how things should be done:
---
name: my-pattern
description: >-
[Under 40 words. What it covers AND when it should trigger.]
---
# [Pattern Name]
## Rule
[One sentence: what must be true]
## Why
[Why this rule exists]
## How
[How to follow it, with code examples]
## Don't
[Common violations]
## Related Skills
[Which skills compose with this one]
Workflow (step-by-step)
For multi-step implementation tasks:
---
name: my-workflow
description: >-
[Under 40 words. What it covers AND when it should trigger.]
---
# [Workflow Name]
## Prerequisites
[What must be in place first]
## Steps
[Numbered steps with code examples]
## Verification
[How to confirm it worked]
## Troubleshooting
[Common issues and fixes]
## Related Skills
Generator (scaffolding)
For creating files from templates:
---
name: my-generator
description: >-
[Under 40 words. What it covers AND when it should trigger.]
---
# [Generator Name]
## Usage
[How to invoke — what args/inputs are needed]
## What Gets Created
[List of files and their purpose]
## Template
[The template content with placeholders]
## After Generation
[What to do next — wire up sync, add routes, register the action, etc.]
## Related Skills
Naming Conventions
- Hyphen-case only:
[a-z0-9-], max 64 characters. - Pattern skills: descriptive names (
storing-data,delegate-to-agent). - Workflow/generator skills: verb-noun (
create-skill,capture-learnings). - The directory name must match the
namein frontmatter.
Frontmatter Fields
| Field | Required | Value |
|---|---|---|
name |
yes | Hyphen-case, matches the directory name |
description |
yes | What the skill covers AND when it triggers |
scope |
no | both (default) | runtime | dev |
For how to word a description and which scope a skill should get, follow
writing-agent-instructions — it owns those rules.
Tips
- Keep SKILL.md lean (under ~500 lines) — move detailed content to
references/files. - Use standard markdown headings — no XML tags or custom formats.
Anti-Patterns
- Inline LLM calls — skills must not call LLMs directly. All AI work goes through the agent chat (see delegate-to-agent).
- Introducing databases — data lives in SQL via Drizzle (see storing-data).
- Ignoring sync — if a skill creates data, mention wiring
useDbSync/useActionQueryso the UI updates (see real-time-sync). - Pure documentation — skills should guide action, not just explain concepts.
File Structure
.agents/skills/my-skill/
├── SKILL.md # Main skill (required)
└── references/ # Optional supporting context
└── detailed-guide.md
Related Skills
- adding-a-feature — The four-area model every skill ultima
Câu hỏi thường gặp
Khi nào tôi không nên tạo skill?
Skill nói không nên tạo khi hướng dẫn đã có trong một skill khác, hoặc cho một ghi chú dùng một lần.
Ghi chú dùng một lần đi đâu?
Chúng đi vào file hướng dẫn agent của ứng dụng hoặc vào bộ nhớ cá nhân, chứ không phải vào skill.
Skill có nên dài không?
Skill khuyên giữ tối giản và đặt phần chi tiết hơn vào các file tham khảo.
Chi tiết
Mô tả gốc của tác giả
How to create new skills for an agent-native app. Use when adding a new skill, documenting a pattern the agent should follow, or creating reusable guidance for the agent.
repo: BuilderIO/agent-native
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13150
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.