npx skills add https://github.com/ruvnet/ruflo --skill 'Skill Builder'创建生产就绪的 Claude Code Skills,包含正确的 YAML 前置元数据、渐进式披露架构和完整的文件/文件夹结构。本技能指导您构建 Claude 能在所有平台(Claude.ai、Claude Code、SDK、API)上自主发现和使用的技能。
# 1. 创建技能目录(必须在顶层,不能在子目录中!)
mkdir -p ~/.claude$skills$my-first-skill
# 2. 以正确格式创建 SKILL.md
cat > ~/.claude$skills$my-first-skill/SKILL.md << 'EOF'
---
name: "My First Skill"
description: "Brief description of what this skill does and when Claude should use it. Maximum 1024 characters."
---
# My First Skill
## What This Skill Does
[Your instructions here]
## Quick Start
[Basic usage]
EOF
# 3. 验证技能是否被检测到
# 重启 Claude Code 或刷新 Claude.ai
每个 SKILL.md 必须 以包含两个必需字段的 YAML 前置元数据开头:
---
name: "Skill Name" # 必需:最多 64 个字符
description: "What this skill does # 必需:最多 1024 个字符
and when Claude should use it." # 包含“做什么”和“何时用”
---
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
name(必需):
description(必需):
---
# ✅ 正确:简单字符串
name: "API Builder"
description: "Creates REST APIs with Express and TypeScript."
# ✅ 正确:多行描述
name: "Full-Stack Generator"
description: "Generates full-stack applications with React frontend and Node.js backend. Use when starting new projects or scaffolding applications."
# ✅ 正确:特殊字符加引号
name: "JSON:API Builder"
description: "Creates JSON:API compliant endpoints: pagination, filtering, relationships."
# ❌ 错误:特殊字符缺少引号
name: API:Builder # YAML 解析错误!
# ❌ 错误:额外字段(会被忽略但不鼓励)
name: "My Skill"
description: "My description"
version: "1.0.0" # 非规范部分
author: "Me" # 非规范部分
tags: ["dev", "api"] # 非规范部分
---
关键:只有 name 和 description 会被 Claude 使用。其他字段会被忽略。
~/.claude$skills/ # 个人技能位置
└── my-skill/ # 技能目录(必须在顶层!)
└── SKILL.md # 必需:主技能文件
重要:技能必须直接位于 ~/.claude$skills/[技能名称]/ 下。Claude Code 不支持嵌套子目录或命名空间!
~/.claude$skills/
└── my-skill/ # 顶层技能目录
├── SKILL.md # 必需:主技能文件
├── README.md # 可选:人类可读文档
├── scripts/ # 可选:可执行脚本
│ ├── setup.sh
│ ├── validate.js
│ └── deploy.py
├── resources/ # 可选:支持文件
│ ├── templates/
│ │ ├── api-template.js
│ │ └── component.tsx
│ ├── examples/
│ │ └── sample-output.json
│ └── schemas/
│ └── config-schema.json
└── docs/ # 可选:附加文档
├── ADVANCED.md
├── TROUBLESHOOTING.md
└── API_REFERENCE.md
个人技能(在所有项目中可用):
~/.claude$skills/
└── [your-skills]/
~/.claude$skills/ 或 $HOME/.claude$skills/项目技能(团队共享,版本控制):
<project-root>/.claude$skills/
└── [team-skills]/
.claude$skills/Claude Code 使用 3 级渐进式披露系统,以便扩展到 100+ 个技能而不会增加上下文负担:
加载时机:Claude Code 启动时,始终加载 大小:每个技能约 200 字符 目的:实现自主技能匹配 上下文:为所有技能加载到系统提示中
---
name: "API Builder" # 11 字符
description: "Creates REST APIs..." # 约 50 字符
---
# 总计:每个技能约 61 字符
# 100 个技能 = 约 6KB 上下文(最小!)
加载时机:当技能被触发/匹配时 大小:通常约 1-10KB 目的:主要指令和流程 上下文:仅加载给活跃技能
# API Builder
## What This Skill Does
[主要指令 - 仅在技能活跃时加载]
## Quick Start
[基本流程]
## Step-by-Step Guide
[详细指令]
加载时机:按需,当 Claude 导航时 大小:可变(KB 到 MB) 目的:深度参考、示例、模式 上下文:仅当 Claude 访问特定文件时加载
# 在 SKILL.md 中
See [Advanced Configuration](docs/ADVANCED.md) for complex scenarios.
See [API Reference](docs/API_REFERENCE.md) for complete documentation.
Use template: `resources$templates$api-template.js`
# Claude 仅在需要时加载这些文件
好处:安装 100+ 个技能仅需约 6KB 上下文。只有活跃技能内容(1-10KB)进入上下文。
---
name: "Your Skill Name"
description: "What it does and when to use it"
---
# Your Skill Name
## Level 1: Overview (Always Read First)
Brief 2-3 sentence description of the skill.
## Prerequisites
- Requirement 1
- Requirement 2
## What This Skill Does
1. Primary function
2. Secondary function
3. Key benefit
---
## Level 2: Quick Start (For Fast Onboarding)
### Basic Usage
```bash
# Simplest use case
command --option value
# 命令
预期输出:
Success message
# 高级用法
# 集成步骤
症状:您看到的情况 原因:发生的原因 解决方案:如何修复
# 修复命令
解决方案:解决步骤
参见 examples/
前置关键词:
# ✅ 良好:关键词在前
description: "Generate TypeScript interfaces from JSON schema. Use when converting schemas, creating types, or building API clients."
# ❌ 不佳:关键词被埋没
description: "This skill helps developers who need to work with JSON schemas by providing a way to generate TypeScript interfaces."
包含触发条件:
# ✅ 良好:清晰的“何时用”子句
description: "Debug React performance issues using Chrome DevTools. Use when components re-render unnecessarily, investigating slow updates, or optimizing bundle size."
# ❌ 不佳:无触发条件
description: "Helps with React performance debugging."
具体明确:
# ✅ 良好:具体技术
description: "Create Express.js REST endpoints with Joi validation, Swagger docs, and Jest tests. Use when building new APIs or adding endpoints."
# ❌ 不佳:太笼统
description: "Build API endpoints with proper validation and testing."
保持第 1 级简洁(概述):
## What This Skill Does
Creates production-ready React components with TypeScript, hooks, and tests in 3 steps.
第 2 级用于常见路径(快速开始):
## Quick Start
```bash
# 最常见用例(80% 的用户)
generate-component MyComponent
**第 3 级用于细节**(分步指南):
```markdown
## Step-by-Step Guide
### Creating a Basic Component
1. Run generator
2. Choose template
3. Customize options
[Detailed explanations]
第 4 级用于边缘情况(参考):
## Advanced Configuration
For complex scenarios like HOCs, render props, or custom hooks, see [ADVANCED.md](docs/ADVANCED.md).
目的:Claude 可以运行的可执行脚本
位置:技能目录中的 scripts/
用法:从 SKILL.md 引用
示例:
# 在技能目录中
scripts/
├── setup.sh # 初始化脚本
├── validate.js # 验证逻辑
├── generate.py # 代码生成
└── deploy.sh # 部署脚本
从 SKILL.md 引用:
## Setup
Run the setup script:
```bash
.$scripts$setup.sh
验证您的配置:
node scripts$validate.js config.json
#### 资源目录
**目的**:模板、示例、模式、静态文件
**位置**:技能目录中的 `resources/`
**用法**:被脚本引用或复制
示例:
```bash
resources/
├── templates/
│ ├── component.tsx.template
│ ├── test.spec.ts.template
│ └── story.stories.tsx.template
├── examples/
│ ├── basic-example/
│ ├── advanced-example/
│ └── integration-example/
└── schemas/
├── config.schema.json
└── output.schema.json
从 SKILL.md 引用:
## Templates
Use the component template:
```bash
cp resources$templates$component.tsx.template src$components/MyComponent.tsx
参见 resources$examples/ 中的工作示例:
basic-example/ - 简单组件
advanced-example/ - 包含钩子和上下文
Claude 可以自动导航到引用的文件。使用以下模式:
See [Advanced Configuration](docs/ADVANCED.md) for complex scenarios.
See [Troubleshooting Guide](docs/TROUBLESHOOTING.md) if you encounter errors.
Use the template located at `resources$templates$api-template.js`
See examples in `resources$examples$basic-usage/`
## Example Configuration
See `resources$examples$config.json`:
```json
{
"option": "value"
}
**最佳实践**:保持 SKILL.md 精简(约 2-5KB)。将冗长内容移到单独的文件中并引用它们。Claude 只会加载需要的内容。
---
### ✅ 验证清单
发布技能前,请验证:
**YAML 前置元数据**:
- [ ] 以 `---` 开头
- [ ] 包含 `name` 字段(最多 64 字符)
- [ ] 包含 `description` 字段(最多 1024 字符)
- [ ] 描述包含“做什么”和“何时用”
- [ ] 以 `---` 结尾
- [ ] 无 YAML 语法错误
**文件结构**:
- [ ] SKILL.md 存在于技能目录中
- [ ] 目录直接位于 `~/.claude$skills/[技能名称]/` 或 `.claude$skills/[技能名称]/` 下
- [ ] 使用清晰、描述性的目录名称
- [ ] **无**嵌套子目录(Claude Code 要求顶层结构)
**内容质量**:
- [ ] 第 1 级(概述)简洁明了
- [ ] 第 2 级(快速开始)展示常见用例
- [ ] 第 3 级(细节)提供分步指南
- [ ] 第 4 级(参考)链接到高级内容
- [ ] 示例具体且可运行
- [ ] 故障排除部分解决常见问题
**渐进式披露**:
- [ ] 核心指令在 SKILL.md 中(约 2-5KB)
- [ ] 高级内容在单独的 docs/ 中
- [ ] 大型资源在 resources/ 目录中
- [ ] 各级之间有清晰的导航
**测试**:
- [ ] 技能出现在 Claude 的技能列表中
- [ ] 描述在相关查询时触发
- [ ] 指令清晰且可操作
- [ ] 脚本成功执行(如果包含)
- [ ] 示例按文档工作
---
## Skill Builder 模板
### 模板 1:基础技能(最小化)
```markdown
---
name: "My Basic Skill"
description: "One sentence what. One sentence when to use."
---
# My Basic Skill
## What This Skill Does
[2-3 sentences describing functionality]
## Quick Start
```bash
# Single command to get started
[指令]
[指令]
[指令]
问题:问题描述
---
name: "My Intermediate Skill"
description: "Detailed what with key features. When to use with specific triggers: scaffolding, generating, building."
---
# My Intermediate Skill
## Prerequisites
- Requirement 1
- Requirement 2
## What This Skill Does
1. Primary function
2. Secondary function
3. Integration capability
## Quick Start
```bash
.$scripts$setup.sh
.$scripts$generate.sh my-project
编辑 config.json:
{
"option1": "value1",
"option2": "value2"
}
[80% 用例的步骤]
[复杂场景的步骤]
scripts$setup.sh - 初始设置scripts$generate.sh - 代码生成scripts$validate.sh - 验证resources$templates/resources$examples/[常见问题及解决方案]
### 模板 3:高级技能(全功能)
```markdown
---
name: "My Advanced Skill"
description: "Comprehensive what with all features and integrations. Use when [trigger 1], [trigger 2], or [trigger 3]. Supports [technology stack]."
---
# My Advanced Skill
## Overview
[Brief 2-3 sentence description]
## Prerequisites
- Technology 1 (version X+)
- Technology 2 (version Y+)
- API keys or credentials
## What This Skill Does
1. **Core Feature**: Description
2. **Integration**: Description
3. **Automation**: Description
---
## Quick Start (60 seconds)
### Installation
```bash
.$scripts$install.sh
.$scripts$quickstart.sh
预期输出:
✓ Setup complete
✓ Configuration validated
→ Ready to use
编辑 config.json:
{
"mode": "production",
"features": ["feature1", "feature2"]
}
参见 配置指南
[详细步骤]
[主要流程]
[集成步骤]
.$scripts$generate.sh --template custom
.$scripts$batch.sh --input data.json
参见 CI/CD 指南
| 脚本 | 目的 | 用法 |
|---|---|---|
install.sh | 安装依赖 | .$scripts$install.sh |
generate.sh | 生成代码 | .$scripts$generate.sh [name] |
validate.sh | 验证输出 | .$scripts$validate.sh |
deploy.sh | 部署到环境 | .$scripts$deploy.sh [env] |
resources$templates$basic.template - 基础模板resources$templates$advanced.template - 高级模板resources$examples$basic/ - 简单示例resources$examples$advanced/ - 复杂示例resources$examples$integration/ - 集成示例resources$schemas$config.schema.json - 配置模式resources$schemas$output.schema.json - 输出验证症状:install.sh 期间出错
原因:缺少依赖
解决方案:
# 安装先决条件
npm install -g required-package
.$scripts$install.sh --force
症状:验证脚本失败 解决方案:参见 故障排除指南
完整 API 文档:API_REFERENCE.md
创建日期:2025-10-19 类别:高级 难度:中级 预计时间:15-30 分钟
---
## 实际示例
### 示例 1:简单文档技能
```markdown
---
name: "README Generator"
description: "Generate comprehensive README.md files for GitHub repositories. Use when starting new projects, documenting code, or improving existing READMEs."
---
# README Generator
## What This Skill Does
Creates well-structured README.md files with badges, installation, usage, and contribution sections.
## Quick Start
```bash
# Answer a few questions
.$scripts$generate-readme.sh
# README.md created with:
# - Project title and description
# - Installation instructions
# - Usage examples
# - Contribution guidelines
在生成前编辑 resources$templates$sections/ 中的部分。
### 示例 2:代码生成技能
```markdown
---
name: "React Component Generator"
description: "Generate React functional components with TypeScript, hooks, tests, and Storybook stories. Use when creating new components, scaffolding UI, or following component architecture patterns."
---
# React Component Generator
## Prerequisites
- Node.js 18+
- React 18+
- TypeScript 5+
## Quick Start
```bash
.$scripts$generate-component.sh MyComponent
# Creates:
# - src$components/MyComponent/MyComponent.tsx
# - src$components/MyComponent/MyComponent.test.tsx
# - src$components/MyComponent/MyComponent.stories.tsx
# - src$components/MyComponent$index.ts
.$scripts$generate-component.sh ComponentName
在 src$components/ComponentName/ 中编辑生成的文件
参见 resources$templates/ 获取可用组件模板。
---
## 了解更多
### 官方资源
- [Anthropic Agent Skills Documentation](https:/$docs.claude.com$en$docs$agents-and-tools$agent-skills)
- [GitHub Skills Repository](https:/$github.com$anthropics$skills)
- [Claude Code Documentation](https:/$docs.claude.com$en$docs$claude-code)
### 社区
- [Skills Marketplace](https:/$github.com$anthropics$skills) - 浏览社区技能
- [Anthropic Discord](https:/$discord.gg$anthropic) - 从社区获取帮助
### 高级主题
- 具有复杂导航的多文件技能
- 生成其他技能的技能
- 与 MCP 工具集成
- 动态技能生成
---
**创建日期**: 2025-10-19
**版本**: 1.0.0
**维护者**: agentic-flow 团队
**许可证**: MIT
每周安装次数
–
仓库
GitHub 星标数
25.1K
首次出现时间
–
安全审计
Creates production-ready Claude Code Skills with proper YAML frontmatter, progressive disclosure architecture, and complete file$folder structure. This skill guides you through building skills that Claude can autonomously discover and use across all surfaces (Claude.ai, Claude Code, SDK, API).
# 1. Create skill directory (MUST be at top level, NOT in subdirectories!)
mkdir -p ~/.claude$skills$my-first-skill
# 2. Create SKILL.md with proper format
cat > ~/.claude$skills$my-first-skill/SKILL.md << 'EOF'
---
name: "My First Skill"
description: "Brief description of what this skill does and when Claude should use it. Maximum 1024 characters."
---
# My First Skill
## What This Skill Does
[Your instructions here]
## Quick Start
[Basic usage]
EOF
# 3. Verify skill is detected
# Restart Claude Code or refresh Claude.ai
Every SKILL.md must start with YAML frontmatter containing exactly two required fields:
---
name: "Skill Name" # REQUIRED: Max 64 chars
description: "What this skill does # REQUIRED: Max 1024 chars
and when Claude should use it." # Include BOTH what & when
---
name (REQUIRED):
description (REQUIRED):
---
# ✅ CORRECT: Simple string
name: "API Builder"
description: "Creates REST APIs with Express and TypeScript."
# ✅ CORRECT: Multi-line description
name: "Full-Stack Generator"
description: "Generates full-stack applications with React frontend and Node.js backend. Use when starting new projects or scaffolding applications."
# ✅ CORRECT: Special characters quoted
name: "JSON:API Builder"
description: "Creates JSON:API compliant endpoints: pagination, filtering, relationships."
# ❌ WRONG: Missing quotes with special chars
name: API:Builder # YAML parse error!
# ❌ WRONG: Extra fields (ignored but discouraged)
name: "My Skill"
description: "My description"
version: "1.0.0" # NOT part of spec
author: "Me" # NOT part of spec
tags: ["dev", "api"] # NOT part of spec
---
Critical : Only name and description are used by Claude. Additional fields are ignored.
~/.claude$skills/ # Personal skills location
└── my-skill/ # Skill directory (MUST be at top level!)
└── SKILL.md # REQUIRED: Main skill file
IMPORTANT : Skills MUST be directly under ~/.claude$skills/[skill-name]/. Claude Code does NOT support nested subdirectories or namespaces!
~/.claude$skills/
└── my-skill/ # Top-level skill directory
├── SKILL.md # REQUIRED: Main skill file
├── README.md # Optional: Human-readable docs
├── scripts/ # Optional: Executable scripts
│ ├── setup.sh
│ ├── validate.js
│ └── deploy.py
├── resources/ # Optional: Supporting files
│ ├── templates/
│ │ ├── api-template.js
│ │ └── component.tsx
│ ├── examples/
│ │ └── sample-output.json
│ └── schemas/
│ └── config-schema.json
└── docs/ # Optional: Additional documentation
├── ADVANCED.md
├── TROUBLESHOOTING.md
└── API_REFERENCE.md
Personal Skills (available across all projects):
~/.claude$skills/
└── [your-skills]/
~/.claude$skills/ or $HOME/.claude$skills/Project Skills (team-shared, version controlled):
<project-root>/.claude$skills/
└── [team-skills]/
.claude$skills/ in project rootClaude Code uses a 3-level progressive disclosure system to scale to 100+ skills without context penalty:
Loaded : At Claude Code startup, always Size : ~200 chars per skill Purpose : Enable autonomous skill matching Context : Loaded into system prompt for ALL skills
---
name: "API Builder" # 11 chars
description: "Creates REST APIs..." # ~50 chars
---
# Total: ~61 chars per skill
# 100 skills = ~6KB context (minimal!)
Loaded : When skill is triggered$matched Size : ~1-10KB typically Purpose : Main instructions and procedures Context : Only loaded for ACTIVE skills
# API Builder
## What This Skill Does
[Main instructions - loaded only when skill is active]
## Quick Start
[Basic procedures]
## Step-by-Step Guide
[Detailed instructions]
Loaded : On-demand as Claude navigates Size : Variable (KB to MB) Purpose : Deep reference, examples, schemas Context : Loaded only when Claude accesses specific files
# In SKILL.md
See [Advanced Configuration](docs/ADVANCED.md) for complex scenarios.
See [API Reference](docs/API_REFERENCE.md) for complete documentation.
Use template: `resources$templates$api-template.js`
# Claude will load these files ONLY if needed
Benefit : Install 100+ skills with ~6KB context. Only active skill content (1-10KB) enters context.
---
name: "Your Skill Name"
description: "What it does and when to use it"
---
# Your Skill Name
## Level 1: Overview (Always Read First)
Brief 2-3 sentence description of the skill.
## Prerequisites
- Requirement 1
- Requirement 2
## What This Skill Does
1. Primary function
2. Secondary function
3. Key benefit
---
## Level 2: Quick Start (For Fast Onboarding)
### Basic Usage
```bash
# Simplest use case
command --option value
# Commands
Expected output:
Success message
# Advanced usage
# Integration steps
Symptoms : What you see Cause : Why it happens Solution : How to fix
# Fix command
Solution : Steps to resolve
See API_REFERENCE.md
See examples/
Front-Load Keywords:
# ✅ GOOD: Keywords first
description: "Generate TypeScript interfaces from JSON schema. Use when converting schemas, creating types, or building API clients."
# ❌ BAD: Keywords buried
description: "This skill helps developers who need to work with JSON schemas by providing a way to generate TypeScript interfaces."
Include Trigger Conditions :
# ✅ GOOD: Clear "when" clause
description: "Debug React performance issues using Chrome DevTools. Use when components re-render unnecessarily, investigating slow updates, or optimizing bundle size."
# ❌ BAD: No trigger conditions
description: "Helps with React performance debugging."
Be Specific :
# ✅ GOOD: Specific technologies
description: "Create Express.js REST endpoints with Joi validation, Swagger docs, and Jest tests. Use when building new APIs or adding endpoints."
# ❌ BAD: Too generic
description: "Build API endpoints with proper validation and testing."
Keep Level 1 Brief (Overview):
## What This Skill Does
Creates production-ready React components with TypeScript, hooks, and tests in 3 steps.
Level 2 for Common Paths (Quick Start):
## Quick Start
```bash
# Most common use case (80% of users)
generate-component MyComponent
**Level 3 for Details** (Step-by-Step):
```markdown
## Step-by-Step Guide
### Creating a Basic Component
1. Run generator
2. Choose template
3. Customize options
[Detailed explanations]
Level 4 for Edge Cases (Reference):
## Advanced Configuration
For complex scenarios like HOCs, render props, or custom hooks, see [ADVANCED.md](docs/ADVANCED.md).
Purpose : Executable scripts that Claude can run Location : scripts/ in skill directory Usage : Referenced from SKILL.md
Example:
# In skill directory
scripts/
├── setup.sh # Initialization script
├── validate.js # Validation logic
├── generate.py # Code generation
└── deploy.sh # Deployment script
Reference from SKILL.md:
## Setup
Run the setup script:
```bash
.$scripts$setup.sh
Validate your configuration:
node scripts$validate.js config.json
#### Resources Directory
**Purpose**: Templates, examples, schemas, static files
**Location**: `resources/` in skill directory
**Usage**: Referenced or copied by scripts
Example:
```bash
resources/
├── templates/
│ ├── component.tsx.template
│ ├── test.spec.ts.template
│ └── story.stories.tsx.template
├── examples/
│ ├── basic-example/
│ ├── advanced-example/
│ └── integration-example/
└── schemas/
├── config.schema.json
└── output.schema.json
Reference from SKILL.md:
## Templates
Use the component template:
```bash
cp resources$templates$component.tsx.template src$components/MyComponent.tsx
See working examples in resources$examples/:
basic-example/ - Simple component
advanced-example/ - With hooks and context
Claude can navigate to referenced files automatically. Use these patterns:
See [Advanced Configuration](docs/ADVANCED.md) for complex scenarios.
See [Troubleshooting Guide](docs/TROUBLESHOOTING.md) if you encounter errors.
Use the template located at `resources$templates$api-template.js`
See examples in `resources$examples$basic-usage/`
## Example Configuration
See `resources$examples$config.json`:
```json
{
"option": "value"
}
**Best Practice**: Keep SKILL.md lean (~2-5KB). Move lengthy content to separate files and reference them. Claude will load only what's needed.
---
### ✅ Validation Checklist
Before publishing a skill, verify:
**YAML Frontmatter**:
- [ ] Starts with `---`
- [ ] Contains `name` field (max 64 chars)
- [ ] Contains `description` field (max 1024 chars)
- [ ] Description includes "what" and "when"
- [ ] Ends with `---`
- [ ] No YAML syntax errors
**File Structure**:
- [ ] SKILL.md exists in skill directory
- [ ] Directory is DIRECTLY in `~/.claude$skills/[skill-name]/` or `.claude$skills/[skill-name]/`
- [ ] Uses clear, descriptive directory name
- [ ] **NO nested subdirectories** (Claude Code requires top-level structure)
**Content Quality**:
- [ ] Level 1 (Overview) is brief and clear
- [ ] Level 2 (Quick Start) shows common use case
- [ ] Level 3 (Details) provides step-by-step guide
- [ ] Level 4 (Reference) links to advanced content
- [ ] Examples are concrete and runnable
- [ ] Troubleshooting section addresses common issues
**Progressive Disclosure**:
- [ ] Core instructions in SKILL.md (~2-5KB)
- [ ] Advanced content in separate docs/
- [ ] Large resources in resources/ directory
- [ ] Clear navigation between levels
**Testing**:
- [ ] Skill appears in Claude's skill list
- [ ] Description triggers on relevant queries
- [ ] Instructions are clear and actionable
- [ ] Scripts execute successfully (if included)
- [ ] Examples work as documented
---
## Skill Builder Templates
### Template 1: Basic Skill (Minimal)
```markdown
---
name: "My Basic Skill"
description: "One sentence what. One sentence when to use."
---
# My Basic Skill
## What This Skill Does
[2-3 sentences describing functionality]
## Quick Start
```bash
# Single command to get started
[Instructions]
[Instructions]
[Instructions]
Issue : Problem description
---
name: "My Intermediate Skill"
description: "Detailed what with key features. When to use with specific triggers: scaffolding, generating, building."
---
# My Intermediate Skill
## Prerequisites
- Requirement 1
- Requirement 2
## What This Skill Does
1. Primary function
2. Secondary function
3. Integration capability
## Quick Start
```bash
.$scripts$setup.sh
.$scripts$generate.sh my-project
Edit config.json:
{
"option1": "value1",
"option2": "value2"
}
[Steps for 80% use case]
[Steps for complex scenarios]
scripts$setup.sh - Initial setupscripts$generate.sh - Code generationscripts$validate.sh - Validationresources$templates/resources$examples/[Common issues and solutions]
### Template 3: Advanced Skill (Full-Featured)
```markdown
---
name: "My Advanced Skill"
description: "Comprehensive what with all features and integrations. Use when [trigger 1], [trigger 2], or [trigger 3]. Supports [technology stack]."
---
# My Advanced Skill
## Overview
[Brief 2-3 sentence description]
## Prerequisites
- Technology 1 (version X+)
- Technology 2 (version Y+)
- API keys or credentials
## What This Skill Does
1. **Core Feature**: Description
2. **Integration**: Description
3. **Automation**: Description
---
## Quick Start (60 seconds)
### Installation
```bash
.$scripts$install.sh
.$scripts$quickstart.sh
Expected output:
✓ Setup complete
✓ Configuration validated
→ Ready to use
Edit config.json:
{
"mode": "production",
"features": ["feature1", "feature2"]
}
[Detailed steps]
[Main procedures]
[Integration steps]
.$scripts$generate.sh --template custom
.$scripts$batch.sh --input data.json
See CI/CD Guide
| Script | Purpose | Usage |
|---|---|---|
install.sh | Install dependencies | .$scripts$install.sh |
generate.sh | Generate code | .$scripts$generate.sh [name] |
validate.sh | Validate output | .$scripts$validate.sh |
deploy.sh |
resources$templates$basic.template - Basic templateresources$templates$advanced.template - Advanced templateresources$examples$basic/ - Simple exampleresources$examples$advanced/ - Complex exampleresources$examples$integration/ - Integration exampleresources$schemas$config.schema.json - Configuration schemaresources$schemas$output.schema.json - Output validationSymptoms : Error during install.sh Cause : Missing dependencies Solution :
# Install prerequisites
npm install -g required-package
.$scripts$install.sh --force
Symptoms : Validation script fails Solution : See Troubleshooting Guide
Complete API documentation: API_REFERENCE.md
Created : 2025-10-19 Category : Advanced Difficulty : Intermediate Estimated Time : 15-30 minutes
---
## Examples from the Wild
### Example 1: Simple Documentation Skill
```markdown
---
name: "README Generator"
description: "Generate comprehensive README.md files for GitHub repositories. Use when starting new projects, documenting code, or improving existing READMEs."
---
# README Generator
## What This Skill Does
Creates well-structured README.md files with badges, installation, usage, and contribution sections.
## Quick Start
```bash
# Answer a few questions
.$scripts$generate-readme.sh
# README.md created with:
# - Project title and description
# - Installation instructions
# - Usage examples
# - Contribution guidelines
Edit sections in resources$templates$sections/ before generating.
### Example 2: Code Generation Skill
```markdown
---
name: "React Component Generator"
description: "Generate React functional components with TypeScript, hooks, tests, and Storybook stories. Use when creating new components, scaffolding UI, or following component architecture patterns."
---
# React Component Generator
## Prerequisites
- Node.js 18+
- React 18+
- TypeScript 5+
## Quick Start
```bash
.$scripts$generate-component.sh MyComponent
# Creates:
# - src$components/MyComponent/MyComponent.tsx
# - src$components/MyComponent/MyComponent.test.tsx
# - src$components/MyComponent/MyComponent.stories.tsx
# - src$components/MyComponent$index.ts
.$scripts$generate-component.sh ComponentName
Edit generated files in src$components/ComponentName/
See resources$templates/ for available component templates.
---
## Learn More
### Official Resources
- [Anthropic Agent Skills Documentation](https:/$docs.claude.com$en$docs$agents-and-tools$agent-skills)
- [GitHub Skills Repository](https:/$github.com$anthropics$skills)
- [Claude Code Documentation](https:/$docs.claude.com$en$docs$claude-code)
### Community
- [Skills Marketplace](https:/$github.com$anthropics$skills) - Browse community skills
- [Anthropic Discord](https:/$discord.gg$anthropic) - Get help from community
### Advanced Topics
- Multi-file skills with complex navigation
- Skills that spawn other skills
- Integration with MCP tools
- Dynamic skill generation
---
**Created**: 2025-10-19
**Version**: 1.0.0
**Maintained By**: agentic-flow team
**License**: MIT
Weekly Installs
–
Repository
GitHub Stars
25.1K
First Seen
–
Security Audits
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装
| Deploy to environment |
.$scripts$deploy.sh [env] |