create-skill
Skill này làm gì
Skill này hướng dẫn cách viết skill hiệu quả cho agent AI. Nó giải thích cách giữ skill ngắn gọn và rõ ràng, và cách thêm script hoặc file tham khảo. Skill dành cho người muốn xây dựng hướng dẫn tái sử dụng cho agent của mình.
Khi nào nên dùng
- ✓Khi bạn muốn đóng gói một quy trình lặp lại thành skill cho agent.
- ✓Khi một skill hiện có cần được cập nhật hoặc làm rõ hơn.
- ✓Khi bạn muốn biết cách tổ chức các file trong một skill.
Liên kết skill
https://github.com/tailcallhq/forgecode/blob/main/crates/forge_repo/src/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ể giúp tôi biến quy trình báo cáo hằng tuần thành một skill mà agent của tôi dùng được không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent giải thích điều gì làm nên một skill tốt, hỏi skill nên làm gì, rồi viết hướng dẫn và các file trợ giúp khi cần, dưới dạng ngắn gọn và rõ ràng.
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.
Skill Creator
This skill provides guidance for creating effective skills.
About Skills
Skills are modular, self-contained packages that extend your capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks—they transform you from a general-purpose agent into a specialized agent equipped with procedural knowledge that no model can fully possess.
What Skills Provide
- Specialized workflows - Multi-step procedures for specific domains
- Tool integrations - Instructions for working with specific file formats or APIs
- Domain expertise - Company-specific knowledge, schemas, business logic
- Bundled resources - Scripts, references, and assets for complex and repetitive tasks
Core Principles
Concise is Key
The context window is a public good. Skills share the context window with everything else you need: system prompt, conversation history, other Skills' metadata, and the actual user request.
Default assumption: You already have significant capabilities. Only add context you don't already have. Challenge each piece of information: "Do you really need this explanation?" and "Does this paragraph justify its token cost?"
Prefer concise examples over verbose explanations.
Set Appropriate Degrees of Freedom
Match the level of specificity to the task's fragility and variability:
High freedom (text-based instructions): Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.
Medium freedom (pseudocode or scripts with parameters): Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior.
Low freedom (specific scripts, few parameters): Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.
Think of yourself as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom).
Anatomy of a Skill
Every skill consists of a required SKILL.md file and optional bundled resources:
skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter metadata (required)
│ │ ├── name: (required)
│ │ └── description: (required)
│ └── Markdown instructions (required)
└── Bundled Resources (optional)
├── scripts/ - Executable code (Python/Bash/etc.)
├── references/ - Documentation intended to be loaded into context as needed
└── assets/ - Files used in output (templates, icons, fonts, etc.)
SKILL.md (required)
Every SKILL.md consists of:
- Frontmatter (YAML): Contains
nameanddescriptionfields. These are the only fields you read to determine when the skill gets used, thus it is very important to be clear and comprehensive in describing what the skill is, and when it should be used. - Body (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all).
Bundled Resources (optional)
Scripts (scripts/)
Executable code for tasks that require deterministic reliability or are repeatedly rewritten.
- When to include: When the same code is being rewritten repeatedly or deterministic reliability is needed
- Example:
scripts/rotate_pdf.shfor PDF rotation tasks - Benefits: Token efficient, deterministic, may be executed without loading into context
- Note: Scripts may still need to be read by you for patching or environment-specific adjustments
References (references/)
Documentation and reference material intended to be loaded as needed into context to inform your process and thinking.
- When to include: For documentation that you should reference while working
- Examples:
references/finance.mdfor financial schemas,references/mnda.mdfor company NDA template,references/policies.mdfor company policies,references/api_docs.mdfor API specifications - Use cases: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
- Benefits: Keeps SKILL.md lean, loaded only when you determine it's needed
- Best practice: If files are large (>10k words), include grep search patterns in SKILL.md
- Avoid duplication: Information should live in either SKILL.md or references files, not both. Prefer references files for detailed information unless it's truly core to the skill—this ke
Câu hỏi thường gặp
Skill là gì?
Skill là một thư mục chứa hướng dẫn và script tùy chọn mà agent tải khi tác vụ phù hợp với nó.
Skill có nên dài không?
Không. Hướng dẫn khuyên nên ngắn gọn, vì agent chia sẻ không gian ngữ cảnh với nội dung khác.
Skill có thể chứa script không?
Có. Có thể thêm script trợ giúp và file tham khảo vào thư mục skill.
Chi tiết
Mô tả gốc của tác giả
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends your capabilities with specialized knowledge, workflows, or tool integrations.
repo: tailcallhq/forgecode
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13116
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-agent
7.6kDạy agent của bạn tạo hoặc chỉnh sửa agent tùy chỉnh cho ứng dụng lập trình Forge, lưu dưới dạng file markdown với thiết lập ở đầu.
create-command
7.6kDạy agent của bạn tạo lệnh tái sử dụng cho ứng dụng lập trình Forge, viết dưới dạng các bước markdown chạy theo thứ tự.
create-github-issue
7.6kGiúp agent của bạn tạo issue GitHub theo đúng mẫu issue của kho lưu trữ, với các trường và nhãn phù hợp.
create-plan
7.6kGiúp agent của bạn viết một kế hoạch triển khai chi tiết cho tác vụ phức tạp, gồm các bước, rủi ro và phương án thay thế, trước khi sửa code.
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.