Logo Skill Authoring

Skill Authoring

Tổ chức
contentful
skill-authoring

Create, modify, review, and fix Agent Skills in the contentful/skills repository. Use when creating a new skill from scratch, editing an existing SKILL.md or package.json, reviewing skill structure for correctness, fixing skill formatting or naming issues, or looking up skill conventions. Also triggers on "create a skill", "add a skill", "skill template", "review this skill", "fix skill structure", "SKILL.md format", "naming convention", "how do I make a skill", "how do skills work", "what is an Agent Skill", "skill description", "write a description", "improve description", "skill frontmatter", "skill-kit", "build a skill", "validate skill", "check my skill". Not for general development or non-skill work.

Tổng quan

Nhà phát hànhcontentful
Kho mãskills
Tên kỹ năngskill-authoring
Sao
41
Bản fork
3
Tệp đi kèm
4
Giấy phépMIT
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 là Markdown thuần túy, không phải 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ộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được contentful công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Skill Authoring 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/contentful/skills/tree/main/local-skills/skills/skill-authoring
  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/contentful/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/local-skills/skills/skill-authoring .claude/skills/skill-authoring
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 Skill Authoring 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ự tải Skill Authoring 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 Skill Authoring không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Skill Authoring

How to create, modify, and review Agent Skills for the contentful/skills repository.

For the full conventions document with templates, detailed rules, and examples, see references/conventions.md.

What is an Agent Skill?

An Agent Skill is a directory containing a SKILL.md file with YAML frontmatter and markdown instructions. It can optionally include scripts, reference documents, and assets. The format is portable across Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Gemini CLI, and other agent platforms.

Skills use progressive disclosure — three tiers of context loading:

  1. Metadata (~100 tokens): name and description fields loaded at startup for all installed skills. This is how the agent decides which skills are relevant.
  2. Instructions (< 5000 tokens recommended): The full SKILL.md body loaded when the agent activates the skill.
  3. Resources (on demand): Files in scripts/, references/, and assets/ loaded only when the instructions reference them.

The description field is the most important piece — it's always in context and determines whether the skill activates. Keep the SKILL.md body concise (under 500 lines). Heavy reference material goes in separate files.

Repository Layout

skills/                         Distributed to customers (distribution boundary)
  contentful-personalization/   A skill — name field is "contentful-personalization"
    SKILL.md
    package.json
    references/
    scripts/
    bin/
.agents/skills/                 Internal contributor skills (never distributed)
  skill-authoring/
    SKILL.md
    package.json
    references/

skills/ is the distribution boundary. Only its contents are installed via npx skills add contentful/skills. Internal skills in .agents/skills/ stay in the repo. .claude/skills is a symlink to .agents/skills/ for Claude Code discovery.

SKILL.md Format

Required Frontmatter

FieldConstraints
name1-64 chars. Lowercase letters, numbers, hyphens only. No leading/trailing/consecutive hyphens. Must match parent directory name.
description1-1024 chars. What the skill does AND when to use it. This is the sole activation trigger — make it count.

Optional Frontmatter

FieldPurpose
licenseLicense name or reference to bundled file
compatibility1-500 chars. Environment requirements (e.g., "Requires Node.js 18+")
metadataArbitrary key-value map. Use metadata.author and metadata.version.
allowed-toolsSpace-delimited pre-approved tools (experimental)

Claude Code Extensions

These fields are beyond the base agentskills.io spec — use for skills in this repo:

FieldDescription
disable-model-invocationtrue prevents auto-loading; user invokes via /<name>
user-invocablefalse hides from / menu; Claude can still auto-load
contextfork runs in an isolated subagent
agentSubagent type when context: fork
modelModel override when skill is active
effortEffort level override (low, medium, high, max)

Body Content

Markdown after the frontmatter. No format restrictions, but recommended sections:

  • Step-by-step instructions
  • Examples of inputs and outputs
  • Common edge cases and gotchas
  • Pointers to reference files (loaded on demand)

Reference scripts and docs with relative paths from the skill root:

markdown
Run the diagnostic:
    ${CLAUDE_SKILL_DIR}/scripts/check.sh --env production

For API details, see [references/api.md](references/api.md).

Writing Effective Descriptions

The description is the sole activation trigger. The agent scans all installed skills at startup and loads only name + description (~100 tokens each). The full SKILL.md body loads only when the agent judges the skill relevant.

Write descriptions that are slightly "pushy" — it's better to activate too often than to miss a relevant trigger.

Best pattern:

Use this skill when [explicit scenarios]. Triggers on [keyword list].
Does NOT apply to [boundary conditions].

Good:

yaml
description: >-
  Diagnose and fix Contentful optimization and personalization issues.
  Validates configuration, SDK versions, API connectivity. Use when
  troubleshooting optimization problems, debugging personalization behavior,
  or checking why experiments aren't running. Also triggers on "why isn't
  personalization working" or "check my config". Not for initial end-to-end
  setup from scratch — that is covered by the onboard flow in the same
  `contentful-personalization` skill.

Bad:

yaml
description: Helps with optimization issues.

Include:

  • Imperative phrasing ("Diagnose and fix", not "A skill for diagnosing")
  • Direct trigger keywords the user would naturally say
  • Indirect keywords (e.g., for a deploy skill, also mention "ship", "release")
  • Negative scope to prevent false activations
  • Cross-references to related skills with explicit phrasing (for example, the contentful-guide skill for general CMS help)

Directory Structure

Documentation-only skill (minimum)

my-skill/
  SKILL.md              Required
  package.json          Required (even for docs-only)

Skill with references

my-skill/
  SKILL.md              Required
  package.json          Required
  references/           On-demand documentation
    api.md
    patterns.md
  assets/               Templates, data files, static resources

Skill with scripts

my-skill/
  SKILL.md              Required
  package.json          Required
  scripts/              Stable public interface (SKILL.md references these)
    check               Executable (chmod +x)
    fix                 Executable (chmod +x)
  src/                  Optional — implementation behind scripts/
    ...
  references/           On-demand documentation

package.json

Required for every skill, even documentation-only. Provides versioning and npm-compatible metadata.

Distributed skills (in skills/):

json
{
  "name": "@contentful/skill-<domain>-<skill-name>",
  "version": "1.0.0",
  "description": "Same as SKILL.md description (short form)",
  "license": "MIT",
  "files": ["SKILL.md", "references/**", "scripts/**", "assets/**"]
}

Internal skills (in .agents/skills/):

json
{
  "name": "skill-name",
  "version": "1.0.0"
}

Versioning happens at the package level — metadata.version in SKILL.md frontmatter should mirror package.json version.

Naming Conventions

ContextPatternExample
Directory name<domain>-<product-or-topic>, lowercase-hyphencontentful-personalization
name fieldmust match directorycontentful-personalization
npm package@contentful/skill-<skill-name>@contentful/skill-contentful-personalization

Name validation rules: 1-64 chars, [a-z0-9-] only, no leading/trailing/consecutive hyphens, must match parent directory name exactly.

Skills live in a flat structure directly under skills/. The name must be globally unambiguous (not just readiness) — the domain prefix makes this possible while remaining compatible with the agentskills.io spec.

Script Conventions

The key pattern

scripts/ is the skill's stable public interface. SKILL.md references only scripts/<name>, never internal paths.

Scripts can be anything executable: bash, Python, compiled binaries, Node.js, etc. The only requirement is that they are executable (chmod +x) and follow the design rules below.

Simple skills — executables directly in scripts/:

contentful-personalization/
  scripts/
    run                 Entry script (chmod +x) or thin wrapper

Complex skills — wrappers in scripts/ delegate to an implementation directory (e.g., src/, bin/):

my-code-skill/
  scripts/
    check                 Thin wrapper → delegates to src/ or bin/
  src/                    Optional — TypeScript source for skill-kit builds
    ...
  bin/                    Optional — compiled output

The wrapper decouples the skill's contract from its implementation. You can refactor src/ freely without updating SKILL.md. SKILL.md never references src/ paths — only scripts/<name>.

Wrapper example

A wrapper is a thin executable that delegates to the real implementation:

bash
#!/usr/bin/env bash
exec node "$(dirname "$0")/../src/check.js" "$@"

Make wrappers executable: chmod +x scripts/check

For a complete TypeScript project setup (tsconfig, src/ layout, dependencies, testing), see references/typescript-scripts.md.

Script design rules

Scripts are invoked by agents in non-interactive shells. Design them so the agent can read stdout/stderr and decide what to do next.

Hard requirements:

  • Non-interactive: no TTY prompts, password dialogs, or confirmation menus. All input via flags, env vars, or stdin.
  • --help / -h: print usage to stderr, exit 0. This is the primary way an agent learns the script's interface.
  • JSON to stdout: this is what the agent consumes. Never mix data and diagnostics on the same stream.
  • Non-zero exit on failure with a descriptive error message to stderr. Say what went wrong, what was expected, and what to try.

Best practices:

  • Idempotent where possible — agents may retry
  • --dry-run for destructive operations
  • --long-name flags (no single-letter flags except -h)
  • Predictable output size: many agent harnesses truncate beyond 10-30K chars. Default to summaries; support --limit/--offset for pagination.
  • Safe defaults: destructive operations require explicit --confirm or --force

For output patterns, exit code conventions, and --help templates, see references/conventions.md.

Cross-Skill References

Use explicit phrasing in SKILL.md body to reference related skills:

markdown
For personalization, use the contentful-personalization skill. Its onboard
flow covers readiness and SDK install; the doctor flow covers troubleshooting.
For "which API should I use", use the contentful-guide skill.

This is a documentation convention for the agent — no runtime enforcement.

Independence Rule

  • No cross-skill imports — each skill is independently packageable
  • The skills/ directory is the distribution boundary
  • Shared code becomes a separate npm package
  • Each skill directory must be fully self-contained

Creating a New Skill

Checklist

  1. Choose the right location:

    • Customer-facing skill → skills/<skill-name>/ (flat, one directory per skill)
    • Internal contributor skill → .agents/skills/<skill-name>/
  2. Create the directory with the skill name as directory name

  3. Write SKILL.md:

    • Add frontmatter with name (matching directory) and description
    • Write the body with clear instructions, examples, edge cases
    • Keep under 500 lines — move heavy content to references/
  4. Write package.json:

    • Distributed: @contentful/skill-<domain>-<name>, version, files array
    • Internal: just name and version
  5. Add supporting files as needed:

    • references/ for on-demand documentation
    • scripts/ for executable code
    • assets/ for templates and static resources
  6. Verify discovery: npx skills add . --list --full-depth

  7. Update README.md if it's a distributed skill

Reviewing an Existing Skill

Checklist

  • name field matches parent directory name exactly
  • description is 1-1024 chars, specific about triggers and scope
  • description includes negative scope ("Not for X")
  • SKILL.md body is under 500 lines
  • Heavy content is in references/, not inline
  • package.json exists with name and version
  • For distributed skills: package name follows @contentful/skill-<domain>-<name>
  • Scripts are non-interactive with --help support
  • No cross-skill imports — skill is self-contained
  • Reference file paths are relative from skill root

Improving a Description

If a skill isn't triggering when it should (or triggers when it shouldn't):

  1. Check that the description includes the keywords users actually say
  2. Add indirect triggers (synonyms, related phrases)
  3. Add negative scope to prevent false activations
  4. Make the description slightly "pushy" — better to over-trigger
  5. Test by asking the agent varied prompts and checking if the skill activates

For automated description optimization with evals, see Anthropic's skill-creator.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Create, modify, review, and fix Agent Skills in the contentful/skills repository. Use when creating a new skill from scratch, editing an existing SKILL.md or package.json, reviewing skill structure for correctness, fixing skill formatting or naming issues, or looking up skill conventions. Also triggers on "create a skill", "add a skill", "skill template", "review this skill", "fix skill structure", "SKILL.md format", "naming convention", "how do I make a skill", "how do skills work", "what is an Agent Skill", "skill description", "write a description", "improve description", "skill frontmat...

Vì sao nên dùng Skill Authoring 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. Skill Authoring 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 Skill Authoring trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/contentful/skills/tree/main/local-skills/skills/skill-authoring. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà 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 Skill Authoring?

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.

Bạn có thể dùng Skill Authoring 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 Skill Authoring 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 Skill Authoring có miễn phí không?

Có. Kỹ năng này được contentful phát hành trên GitHub theo giấy phép MIT. 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇