Logo Creating Skills

Creating Skills

Tổ chức
AgentWorkforce
creating-skills

Use when creating new Claude Code skills or improving existing ones - ensures skills are discoverable, scannable, and effective through proper structure, CSO optimization, and real examples

Tổng quan

Nhà phát hànhAgentWorkforce
Kho mãrelay
Tên kỹ năngcreating-skills
Sao
875
Bản fork
73
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được AgentWorkforce công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Creating Skills trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/AgentWorkforce/relay/tree/main/.claude/skills/creating-skills-skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgentWorkforce/relay.git /tmp/relay
mkdir -p .claude/skills
cp -r /tmp/relay/.claude/skills/creating-skills-skill .claude/skills/creating-skills
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Creating Skills trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Creating Skills ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Creating Skills với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Creating Skills

Overview

Skills are reference guides for proven techniques, patterns, or tools. Write them to help future Claude instances quickly find and apply effective approaches.

Skills must be discoverable (Claude can find them), scannable (quick to evaluate), and actionable (clear examples).

Core principle: Default assumption is Claude is already very smart. Only add context Claude doesn't already have.

When to Use

Create a skill when:

  • Technique wasn't intuitively obvious
  • Pattern applies broadly across projects
  • You'd reference this again
  • Others would benefit

Don't create for:

  • One-off solutions specific to single project
  • Standard practices well-documented elsewhere
  • Project conventions (put those in .claude/CLAUDE.md)

Required Structure

Frontmatter (YAML)

yaml
---
name: skill-name-with-hyphens
description: Use when [triggers/symptoms] - [what it does and how it helps]
tags: relevant-tags
---

Rules:

  • Only name and description fields supported (max 1024 chars total)
  • Name: letters, numbers, hyphens only (max 64 chars). Use gerund form (verb + -ing)
  • Avoid reserved words: "anthropic", "claude" in names
  • Description: Third person, starts with "Use when..." (max 1024 chars)
  • Include BOTH triggering conditions AND what skill does
  • Match specificity to task complexity (degrees of freedom)

Document Structure

markdown
# Skill Name

## Overview

Core principle in 1-2 sentences. What is this?

## When to Use

- Bullet list with symptoms and use cases
- When NOT to use

## Quick Reference

Table or bullets for common operations

## Implementation

Inline code for simple patterns
Link to separate file for heavy reference (100+ lines)

## Common Mistakes

What goes wrong + how to fix

## Real-World Impact (optional)

Concrete results from using this technique

Degrees of Freedom

Match specificity to task complexity:

  • High freedom: Flexible tasks requiring judgment

    • Use broad guidance, principles, examples
    • Let Claude adapt approach to context
    • Example: "Use when designing APIs - provides REST principles and patterns"
  • Low freedom: Fragile or critical operations

    • Be explicit about exact steps
    • Include validation checks
    • Example: "Use when deploying to production - follow exact deployment checklist with rollback procedures"

Red flag: If skill tries to constrain Claude too much on creative tasks, reduce specificity. If skill is too vague on critical operations, add explicit steps.

Claude Search Optimization (CSO)

Critical: Future Claude reads the description to decide if skill is relevant. Optimize for discovery.

Description Best Practices

yaml
# ❌ BAD - Too vague, doesn't mention when to use
description: For async testing

# ❌ BAD - First person (injected into system prompt)
description: I help you with flaky tests

# ✅ GOOD - Triggers + what it does
description: Use when tests have race conditions or pass/fail inconsistently - replaces arbitrary timeouts with condition polling for reliable async tests

# ✅ GOOD - Technology-specific with explicit trigger
description: Use when using React Router and handling auth redirects - provides patterns for protected routes and auth state management

Keyword Coverage

Use words Claude would search for:

  • Error messages: "ENOENT", "Cannot read property", "Timeout"
  • Symptoms: "flaky", "hanging", "race condition", "memory leak"
  • Synonyms: "cleanup/teardown/afterEach", "timeout/hang/freeze"
  • Tools: Actual command names, library names, file types

Naming Conventions

Use gerund form (verb + -ing):

  • ✅ creating-skills not skill-creation
  • ✅ testing-with-subagents not subagent-testing
  • ✅ debugging-memory-leaks not memory-leak-debugging
  • ✅ processing-pdfs not pdf-processor
  • ✅ analyzing-spreadsheets not spreadsheet-analysis

Why gerunds work:

  • Describes the action you're taking
  • Active and clear
  • Consistent with Anthropic conventions

Avoid:

  • ❌ Vague names like "Helper" or "Utils"
  • ❌ Passive voice constructions

Code Examples

One excellent example beats many mediocre ones.

Choose Language by Use Case

  • Testing techniques → TypeScript/JavaScript
  • System debugging → Shell/Python
  • Data processing → Python
  • API calls → TypeScript/JavaScript

Good Example Checklist

  • Complete and runnable
  • Well-commented explaining WHY not just what
  • From real scenario (not contrived)
  • Shows pattern clearly
  • Ready to adapt (not generic template)
  • Shows both BAD (❌) and GOOD (✅) approaches
  • Includes realistic context/setup code

Example Template

typescript
// ✅ GOOD - Clear, complete, ready to adapt
interface RetryOptions {
  maxAttempts: number;
  delayMs: number;
  backoff?: 'linear' | 'exponential';
}

async function retryOperation<T>(operation: () => Promise<T>, options: RetryOptions): Promise<T> {
  const { maxAttempts, delayMs, backoff = 'linear' } = options;

  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
    try {
      return await operation();
    } catch (error) {
      if (attempt === maxAttempts) throw error;

      const delay = backoff === 'exponential' ? delayMs * Math.pow(2, attempt - 1) : delayMs * attempt;

      await new Promise((resolve) => setTimeout(resolve, delay));
    }
  }

  throw new Error('Unreachable');
}

// Usage
const data = await retryOperation(() => fetchUserData(userId), {
  maxAttempts: 3,
  delayMs: 1000,
  backoff: 'exponential',
});

Don't

  • ❌ Implement in 5+ languages (you're good at porting)
  • ❌ Create fill-in-the-blank templates
  • ❌ Write contrived examples
  • ❌ Show only code without comments

File Organization

Self-Contained (Preferred)

typescript-type-safety/
  SKILL.md    # Everything inline

When: All content fits in ~500 words, no heavy reference needed

With Supporting Files

api-integration/
  SKILL.md           # Overview + patterns
  retry-helpers.ts   # Reusable code
  examples/
    auth-example.ts
    pagination-example.ts

When: Reusable tools or multiple complete examples needed

With Heavy Reference

aws-sdk/
  SKILL.md       # Overview + workflows
  s3-api.md      # 600 lines API reference
  lambda-api.md  # 500 lines API reference

When: Reference material > 100 lines

Token Efficiency

Skills load into every conversation. Keep them concise.

Target Limits

  • SKILL.md: Keep under 500 lines
  • Getting-started workflows: <150 words
  • Frequently-loaded skills: <200 words total
  • Other skills: <500 words
  • Files > 100 lines: Include table of contents

Challenge each piece of information: "Does Claude really need this explanation?"

Compression Techniques

markdown
# ❌ BAD - Verbose (42 words)

Your human partner asks: "How did we handle authentication errors in React Router before?"
You should respond: "I'll search past conversations for React Router authentication patterns."
Then dispatch a subagent with the search query: "React Router authentication error handling 401"

# ✅ GOOD - Concise (20 words)

Partner: "How did we handle auth errors in React Router?"
You: Searching...
[Dispatch subagent → synthesis]

Techniques:

  • Reference tool --help instead of documenting all flags
  • Cross-reference other skills instead of repeating content
  • Show minimal example of pattern
  • Eliminate redundancy
  • Use progressive disclosure (reference additional files as needed)
  • Organize content by domain for focused context

Workflow Recommendations

For multi-step processes, include:

  1. Clear sequential steps: Break complex tasks into numbered operations
  2. Feedback loops: Build in verification/validation steps
  3. Error handling: What to check when things go wrong
  4. Checklists: For processes with many steps or easy-to-miss details

Example structure:

markdown
## Workflow

1. **Preparation**
   - Check prerequisites
   - Validate environment

2. **Execution**
   - Step 1: [action + expected result]
   - Step 2: [action + expected result]

3. **Verification**
   - [ ] Check 1 passes
   - [ ] Check 2 passes

4. **Rollback** (if needed)
   - Steps to undo changes

Common Mistakes

MistakeWhy It FailsFix
Narrative example"In session 2025-10-03..."Focus on reusable pattern
Multi-language dilutionSame example in 5 languagesOne excellent example
Code in flowchartsstep1 [label="import fs"]Use markdown code blocks
Generic labelshelper1, helper2, step3Use semantic names
Missing description triggers"For testing""Use when tests are flaky..."
First-person description"I help you...""Use when... - provides..."
Deeply nested file referencesMultiple @ symbols, complex pathsKeep references simple and direct
Windows-style file pathsC:\path\to\fileUse forward slashes
Offering too many options10 different approachesFocus on one proven approach
Punting error handling"Claude figures it out"Include explicit error handling in scripts
Time-sensitive information"As of 2025..."Keep content evergreen
Inconsistent terminologyMixing synonyms randomlyUse consistent terms throughout

Flowchart Usage

Only use flowcharts for:

  • Non-obvious decision points
  • Process loops where you might stop too early
  • "When to use A vs B" decisions

Never use for:

  • Reference material → Use tables/lists
  • Code examples → Use markdown blocks
  • Linear instructions → Use numbered lists

Cross-Referencing Skills

markdown
# ✅ GOOD - Name only with clear requirement

**REQUIRED:** Use superpowers:test-driven-development before proceeding

**RECOMMENDED:** See typescript-type-safety for proper type guards

# ❌ BAD - Unclear if required

See skills/testing/test-driven-development

# ❌ BAD - Force-loads file, wastes context

@skills/testing/test-driven-development/SKILL.md

Advanced Practices

Iterative Development

Best approach: Develop skills iteratively with Claude

  1. Start with minimal viable skill
  2. Test with real use cases
  3. Refine based on what works
  4. Remove what doesn't add value

Build Evaluations First

Before extensive documentation:

  1. Create test scenarios
  2. Identify what good looks like
  3. Document proven patterns
  4. Skip theoretical improvements

Utility Scripts

For reliability, provide:

  • Scripts with explicit error handling (don't defer errors to Claude)
  • Exit codes for success/failure
  • Clear error messages
  • Examples of usage
  • List required dependencies explicitly

Example:

bash
#!/bin/bash
set -e  # Exit on error

if [ ! -f "config.json" ]; then
  echo "Error: config.json not found" >&2
  exit 1
fi

# Script logic here
echo "Success"
exit 0

Verifiable Intermediate Outputs

For complex operations, create validation checkpoints:

  1. Have Claude produce a structured plan file
  2. Validate the plan with a script
  3. Execute only after validation passes

This catches errors before they compound.

Templates for Structured Output

When skills produce consistent formats:

markdown
## Output Template

\`\`\`typescript
interface ExpectedOutput {
status: 'success' | 'error';
data: YourDataType;
errors?: string[];
}
\`\`\`

**Usage**: Copy and adapt for your context

Skill Creation Checklist

Before writing:

  • Technique isn't obvious or well-documented elsewhere
  • Pattern applies broadly (not project-specific)
  • I would reference this across multiple projects

Frontmatter:

  • Name uses only letters, numbers, hyphens
  • Description starts with "Use when..."
  • Description includes triggers AND what skill does
  • Description is third person
  • Total frontmatter < 1024 characters

Content:

  • Overview states core principle (1-2 sentences)
  • "When to Use" section with symptoms
  • Quick reference table for common operations
  • One excellent code example (if technique skill)
  • Common mistakes section
  • Keywords throughout for searchability

Quality:

  • Word count appropriate for frequency (see targets above)
  • SKILL.md under 500 lines
  • No narrative storytelling
  • Flowcharts only for non-obvious decisions
  • Supporting files only if needed (100+ lines reference)
  • Cross-references use skill name, not file paths
  • No time-sensitive information
  • Consistent terminology throughout
  • Concrete examples (not templates)
  • Degrees of freedom match task complexity

Testing:

  • Tested with Claude Haiku, Sonnet, and Opus (instructions effective for Opus may need more detail for Haiku)
  • Tested with subagent scenarios (if discipline-enforcing skill)
  • Addresses common rationalizations
  • Includes red flags list

Directory Structure

skills/
  skill-name/
    SKILL.md              # Required
    supporting-file.*     # Optional
    examples/             # Optional
      example1.ts
    scripts/              # Optional
      helper.py

Flat namespace - all skills in one searchable directory

Real-World Impact

Good skills:

  • Future Claude finds them quickly (CSO optimization)
  • Can be scanned in seconds (quick reference)
  • Provide clear actionable examples
  • Prevent repeating same research
  • Stay under 500 lines (token efficient)
  • Match specificity to task needs (right degrees of freedom)

Bad skills:

  • Get ignored (vague description)
  • Take too long to evaluate (no quick reference)
  • Leave gaps in understanding (no examples)
  • Waste token budget (verbose explanations of obvious things)
  • Over-constrain creative tasks or under-specify critical operations
  • Include time-sensitive or obsolete information

Remember: Skills are for future Claude, not current you. Optimize for discovery, scanning, and action.

Golden rule: Default assumption is Claude is already very smart. Only add context Claude doesn't already have.

Câu hỏi thường gặp

Kỹ năng AI Creating Skills làm được gì?

Use when creating new Claude Code skills or improving existing ones - ensures skills are discoverable, scannable, and effective through proper structure, CSO optimization, and real examples

Vì sao nên dùng Creating Skills trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Creating Skills là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Creating Skills trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/AgentWorkforce/relay/tree/main/.claude/skills/creating-skills-skill. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Creating Skills?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Creating Skills với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Creating Skills với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Creating Skills có miễn phí không?

Có. Kỹ năng này được AgentWorkforce phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇