Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

skill-builder技能构建

Agent Skill

skill-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

210

周安装

9

GitHub Stars

40

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skill-builder(技能构建)
来源仓库:https://github.com/clasen/skills
仓库路径:skills/skill-builder
安装命令:
npx skills add https://github.com/clasen/skills --skill skill-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/clasen/skills --skill skill-builder

简介

skill-builder 提供基于开放 Agent Skills 标准的技能创建指南,包含模板与最佳实践。

  • 适用于希望构建高质量、跨平台兼容的 AI 代理技能的初学者与开发者。
  • 涵盖 SKILL.md 编写、脚本组织与引用管理规范,强调一次定义、多处复用。
  • 安装后可查阅完整文档与示例,指导从零开始打造专用技能模块。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Skill Builder

Step-by-step guide for creating high-quality agent skills based on the open Agent Skills standard.

What is a skill

A skill is a portable folder containing instructions that teach an AI agent how to handle specific tasks or workflows. Instead of re-explaining preferences, processes, and domain expertise in every session, a skill captures that knowledge once and applies it consistently across interactions and platforms.

A skill contains:

  • SKILL.md (required): instructions in Markdown with YAML frontmatter
  • scripts/ (optional): executable code (Javascript, Bash, etc.)
  • references/ (optional): documentation loaded as needed
  • assets/ (optional): templates, fonts, icons used in output

Core design principles

Progressive disclosure: skills use a three-level loading system to minimize token usage while maintaining specialized expertise.

  • Level 1 (YAML frontmatter): always loaded. Tells the agent when the skill is relevant.
  • Level 2 (SKILL.md body): loaded when the agent determines the skill applies. Contains full instructions.
  • Level 3 (Linked files): additional resources the agent navigates only as needed.

Composability: an agent can load multiple skills simultaneously. Your skill should work well alongside others, not assume it's the only capability available.

Portability: skills are an open standard. A well-built skill works across any platform that supports the standard, provided the environment meets any dependencies.

Creation process

Step 1: Define use cases

Before writing anything, identify 2-3 concrete use cases. For each one:

Use Case: [name]
Trigger: [what the user says or does]
Steps: [sequence of actions]
Result: [what gets produced at the end]

Key questions:

  1. What should the agent be able to do with this skill?
  2. When should it trigger? (phrases, contexts)
  3. What's the expected output format?
  4. Does it need external tools (MCP servers, APIs) or only built-in capabilities?

Common skill categories:

Document & asset creation — generating consistent, high-quality outputs like documents, presentations, code, designs. Key techniques: embedded style guides, template structures, quality checklists.

Workflow automation — multi-step processes that benefit from consistent methodology. Key techniques: step-by-step workflows with validation gates, iterative refinement loops.

MCP enhancement — workflow guidance layered on top of MCP server tool access. Key techniques: coordinating multiple MCP calls in sequence, embedding domain expertise, error handling for common MCP issues.

Step 2: Design the folder structure

skill-name/
├── SKILL.md          # Required
├── scripts/          # Optional - executable code
├── references/       # Optional - additional documentation
└── assets/           # Optional - templates, resources

Critical rules:

  • The file MUST be named exactly SKILL.md (case-sensitive). No variations (SKILL.MD, skill.md, etc.)
  • The folder uses kebab-case: my-cool-skill ✅ | My Skill ❌ | my_skill
  • Do NOT include README.md inside the skill folder. All documentation goes in SKILL.md or references/
  • Do NOT use reserved platform names in the skill name

Step 3: Write the YAML frontmatter

The frontmatter is how the agent decides whether to load your skill. This is the most important part.

---
name: name-in-kebab-case
description: What the skill does and when to use it. Include specific trigger phrases.
---

name field (required):

  • Kebab-case only, no spaces or capitals
  • Should match the folder name

description field (required, max 1024 characters):

  • MUST include WHAT it does + WHEN to use it
  • Include specific phrases users would actually say
  • Mention file types if applicable
  • No XML tags (< >)
  • Lean slightly "pushy" — agents tend to under-trigger, so a description that's assertive about when to activate performs better than one that's conservative

Good description examples:

# Good - specific and actionable
description: Analyzes Figma design files and generates developer handoff documentation. Use when the user uploads .fig files, asks for "design specs", "component documentation", or "design-to-code handoff".

# Good - includes trigger phrases
description: Manages Linear project workflows including sprint planning, task creation, and status tracking. Use when the user mentions "sprint", "Linear tasks", "project planning", or asks to "create tickets".

# Good - clear value proposition with negative trigger
description: Advanced data analysis for CSV files. Use for statistical modeling, regression, clustering. Do NOT use for simple data exploration (use data-viz skill instead).

Bad description examples:

# Too vague
description: Helps with projects.

# Missing triggers
description: Creates sophisticated multi-page documentation systems.

# Too technical, no user triggers
description: Implements the Project entity model with hierarchical relationships.

Optional fields:

  • license: MIT, Apache-2.0, etc.
  • compatibility: environment requirements, intended platforms, required system packages (1-500 chars)
  • allowed-tools: restrict which tools the skill can invoke
  • metadata: custom key-value pairs
metadata:
  author: Your Name
  version: 1.0.0
  mcp-server: server-name
  category: productivity
  tags: [project-management, automation]

Security restrictions:

  • No XML angle brackets (< >) in frontmatter — frontmatter appears in the agent's system prompt and could inject instructions
  • No code execution in YAML (safe YAML parsing is used)

Step 4: Write the instructions

After the frontmatter, write the instructions in Markdown. Recommended structure:

---
name: my-skill
description: [...]
---

# Skill Name

# Instructions

### Step 1: [First step]
Clear explanation of what happens.

Example:
\```bash
node scripts/fetch_data.js --project-id PROJECT_ID
\```
Expected output: [describe what success looks like]

### Step 2: [Next step]
...

## Examples

**Example 1: [common scenario]**
User says: "..."
Actions: ...
Result: ...

## Troubleshooting

**Error: [common message]**
Cause: [why it happens]
Solution: [how to fix]

Best practices for instructions

Be specific and actionable:

# ✅ Good
Run `bun run scripts/validate.ts --input {filename}` to check data format.
If validation fails, common issues include:
- Missing required fields (add them to the CSV)
- Invalid date formats (use YYYY-MM-DD)

# ❌ Bad
Validate the data before proceeding.

Include error handling with concrete resolution steps. For MCP-dependent skills, include connection verification, authentication checks, and fallback instructions.

Use progressive disclosure: keep SKILL.md focused on core instructions (ideally <500 lines). Move detailed documentation to references/ and link to it. For large reference files (>300 lines), include a table of contents.

Explain the why: instead of rigid MUSTs, explain the reasoning behind each instruction. Current LLMs are smart and respond better to understanding rationale than to authoritarian commands. If you find yourself writing ALWAYS or NEVER in all caps, reframe and explain the reasoning so the model understands why.

Use imperative form: "Run the script" instead of "The script should be run".

Define output formats explicitly:

## Report structure
ALWAYS use this exact template:
# [Title]
## Executive summary
## Key findings
## Recommendations

Include examples with input/output pairs:

## Commit message format
**Example 1:**
Input: Added user authentication with JWT tokens
Output: feat(auth): implement JWT-based authentication

For critical validations, bundle scripts: code is deterministic; language interpretation isn't. If a check can be automated, write a script in scripts/ rather than relying on the agent to interpret instructions correctly every time.

Step 5: Testing

Three testing areas:

1. Triggering tests — does the skill load at the right times?

  • ✅ Triggers on obvious tasks
  • ✅ Triggers on paraphrased requests
  • ❌ Does NOT trigger on unrelated topics

Quick debugging: ask the agent "When would you use the [skill name] skill?" — it will quote the description back and you can adjust based on what's missing.

2. Functional tests — does the skill produce correct outputs?

  • Valid outputs generated
  • API/MCP calls succeed
  • Error handling works
  • Edge cases covered

3. Performance comparison — does the skill improve results vs baseline?

  • Measure back-and-forth messages needed
  • Measure failed API calls requiring retry
  • Measure tokens consumed
  • Compare with-skill vs without-skill

Recommended approach: iterate on a single challenging task until the agent succeeds, then extract the winning approach into the skill. This provides faster signal than broad testing. Once you have a working foundation, expand to multiple test cases for coverage.

Step 6: Iterate

Under-triggering signals:

  • Skill doesn't load when it should
  • Users manually enabling it
  • Solution: add more keywords, trigger phrases, and nuance to the description

Over-triggering signals:

  • Skill loads for irrelevant queries
  • Users disabling it
  • Solution: add negative triggers, narrow the scope, be more specific

Execution issues:

  • Inconsistent results across sessions
  • API call failures
  • Users needing to correct the agent
  • Solution: improve instructions, add error handling, look for steps that should be scripted

Common patterns

Pattern 1: Sequential workflow orchestration

For multi-step processes in a specific order. Explicit step ordering, dependencies between steps, validation at each stage, rollback instructions for failures.

### Step 1: Create Account
Call MCP tool: `create_customer`
Parameters: name, email, company

### Step 2: Setup Payment
Call MCP tool: `setup_payment_method`
Wait for: payment method verification

### Step 3: Create Subscription
Call MCP tool: `create_subscription`
Parameters: plan_id, customer_id (from Step 1)

Pattern 2: Multi-MCP coordination

For workflows spanning multiple services (e.g., Figma → Drive → Linear → Slack). Clear phase separation, data passing between MCPs, validation before advancing, centralized error handling.

Pattern 3: Iterative refinement

For when output quality improves with iteration. Initial draft → quality check via validation script → refinement loop → finalization. Include explicit quality criteria and know when to stop.

Pattern 4: Context-aware tool selection

For when the same outcome is achieved with different tools depending on context. Clear decision tree (e.g., large files → cloud storage, collaborative docs → Notion, code → GitHub), fallback options, transparency about choices.

Pattern 5: Domain-specific intelligence

For when the skill adds specialized knowledge beyond tool access. Domain expertise embedded in logic, compliance/validation before action, comprehensive audit trail, clear governance rules.

Distribution

Individual installation:

  1. Zip the skill folder
  2. Upload via the platform's skill settings
  3. Or place in the platform's skills directory

Organization deployment:

  • Platform admins can deploy skills workspace-wide
  • Enables automatic updates and centralized management

Public distribution:

  1. Host on GitHub with a clear README at repo level (NOT inside the skill folder)
  2. Include example usage and screenshots
  3. If paired with an MCP server, document both together and explain the combined value
  4. Provide a quick-start installation guide

Positioning tip: focus on outcomes, not features. "Set up complete project workspaces in seconds instead of 30 minutes of manual setup" beats "A folder containing YAML frontmatter and Markdown instructions."

Final checklist

Before starting:

  • 2-3 concrete use cases identified
  • Required tools identified (built-in, MCP, or API)
  • Folder structure planned

During development:

  • Folder named in kebab-case
  • SKILL.md file exists (exact case-sensitive spelling)
  • YAML frontmatter has --- delimiters
  • name field: kebab-case, no spaces, no capitals
  • description includes WHAT and WHEN
  • No XML tags (< >) in frontmatter
  • Instructions are clear and actionable
  • Error handling included
  • Examples provided
  • References clearly linked

Before upload:

  • Tested triggering on obvious tasks
  • Tested triggering on paraphrased requests
  • Verified doesn't trigger on unrelated topics
  • Functional tests pass
  • Tool/MCP integration works (if applicable)

After upload:

  • Tested in real conversations
  • Monitored for under/over-triggering
  • Collected user feedback
  • Iterated on description and instructions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.53%
按下载量换算28

Claude

27.03%
按下载量换算20

Cursor

19.67%
按下载量换算14

Gemini CLI

9.81%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills