Chuyển đến nội dung
Skillpedia
Agent7.6k · #13116

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/tailcallhq/forgecode/blob/main/crates/forge_repo/src/skills/create-skill/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

  1. Specialized workflows - Multi-step procedures for specific domains
  2. Tool integrations - Instructions for working with specific file formats or APIs
  3. Domain expertise - Company-specific knowledge, schemas, business logic
  4. 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 name and description fields. 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.sh for 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.md for financial schemas, references/mnda.md for company NDA template, references/policies.md for company policies, references/api_docs.md for 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự