The Agent Skills Directory
npx skills add https://smithery.ai/skills/CaptainCrouton89/skills-guide将可复用的专业知识打包成可发现的能力。技能是模块化指令,Claude 在相关时会自主激活——无需斜杠命令即可扩展您的工作流程。
mkdir -p ~/.claude/skills/my-skill-name
mkdir -p .claude/skills/my-skill-name
---
name: Skill Name
description: What it does + when to use it (be specific!)
---
# Skill Name
## Instructions
Step-by-step guidance for Claude
## Examples
Concrete usage examples
智能体技能 将专业知识打包成可发现、可组合的能力:
~/.claude/skills/在所有项目中可用。适用于:
.claude/skills/通过 git 与您的团队共享。适用于:
团队成员在拉取您的仓库时会自动获得项目技能。
与 Claude Code 插件捆绑;安装插件后自动可用。
每个技能都需要 YAML 前置元数据 + Markdown 内容。
| 字段 | 限制 | 用途 |
|---|---|---|
name | 64 字符 | 人类可读的名称 |
description | 1024 字符 | 功能 + 使用时机 |
| 字段 | 用途 |
|---|---|
allowed-tools | 限制 Claude 可以使用的工具(例如:Read, Grep, Glob) |
Claude 使用此字段来决定是否激活您的技能。务必包含:
良好(能触发 Claude):
Extract text and tables from PDF files, fill forms, merge documents.
Use when working with PDF files or when the user mentions PDFs, forms, or extraction.
不佳(过于模糊):
Helps with documents
使用 动名词形式(动词 + -ing):
适用于专注的、单一用途的能力:
commit-helper/
└── SKILL.md
参考文件按需加载;为获得最佳性能,请将 SKILL.md 保持在 500 行以内:
pdf-processing/
├── SKILL.md # 主要指令(快速开始)
├── FORMS.md # 表单填写指南
├── REFERENCE.md # API 参考
├── EXAMPLES.md # 使用示例
└── scripts/
├── analyze_form.py
├── fill_form.py
└── validate.py
在 SKILL.md 中提供高级概述:
快速开始和常见用例
指向详细参考文件的链接
Extract text with pdfplumber:
import pdfplumber
with pdfplumber.open("file.pdf") as pdf:
text = pdf.pages[0].extract_text()
表单填写:参见 FORMS.md API 参考:参见 REFERENCE.md 示例:参见 EXAMPLES.md
### 多领域技能的组织
对于涵盖多个领域的技能,按领域组织:
bigquery-skill/ ├── SKILL.md └── reference/ ├── finance.md ├── sales.md ├── product.md └── marketing.md
SKILL.md 充当路由器,链接到特定领域的文档。
## 最佳实践
### 1. 假设 Claude 是智能的
不要解释基本概念。要简洁直接。
**冗长**(约 150 个令牌):
PDF files are a common format containing text, images, and other content. To extract text, you need a library. Many libraries exist...
**简洁**(约 50 个令牌):
Use pdfplumber for text extraction:
import pdfplumber
with pdfplumber.open("file.pdf") as pdf:
text = pdf.pages[0].extract_text()
### 2. 多用示例,少用解释
提供输入/输出对,特别是对于转换操作:
```markdown
## Commit message format
**Example 1:**
Input: Added user authentication with JWT tokens
Output:
feat(auth): implement JWT-based authentication
Add login endpoint and token validation middleware
**Example 2:**
Input: Fixed bug where dates displayed incorrectly
Output:
fix(reports): correct date formatting in timezone conversion
预制脚本比生成的代码更可靠:
## Utility scripts
**analyze_form.py**: Extract form fields from PDF
```bash
python scripts/analyze_form.py input.pdf > fields.json
validate_boxes.py : Check for overlapping fields
python scripts/validate_boxes.py fields.json
### 4. 列出所需包
预先指定依赖项:
```markdown
## Requirements
```bash
pip install pypdf pdfplumber
### 5. 实施验证循环
对于质量关键的任务,强制执行验证检查:
```markdown
## Workflow
1. Make your edits
2. **Validate immediately**: `python scripts/validate.py`
3. If validation fails:
- Review error message
- Fix issues
- Run validation again
4. **Only proceed when validation passes**
对于复杂的多步骤操作:
## Task Progress
- [ ] Step 1: Analyze form
- [ ] Step 2: Create mapping
- [ ] Step 3: Validate mapping
- [ ] Step 4: Fill form
- [ ] Step 5: Verify output
限制 Claude 可以使用的工具:
---
name: Safe File Reader
description: Read files without making changes
allowed-tools: Read, Grep, Glob
---
高自由度(多种方法有效):
## Code review process
1. Analyze code structure
2. Check for potential bugs
3. Suggest readability improvements
4. Verify project conventions
低自由度(需要精确顺序):
## Database migration
Run exactly this command (do not modify):
```bash
python scripts/migrate.py --verify --backup
## 调试
### 技能无法激活?
**检查描述的具体性**:
- 过于模糊:`Helps with documents`
- 具体:`Extract text and tables from PDFs. Use when working with PDF files or when the user mentions PDFs, forms, or extraction.`
**在描述中包含使用时机触发器**,以便 Claude 识别您的任务。
### 多个技能冲突?
使用不同的触发词:
不要这样:
```yaml
# Skill 1
description: For data analysis
# Skill 2
description: For analyzing data
应该这样:
# Skill 1
description: Analyze sales data in Excel and CRM exports.
Use for sales reports, pipeline analysis, and revenue tracking.
# Skill 2
description: Analyze log files and system metrics.
Use for performance monitoring, debugging, and system diagnostics.
验证技能位置:
# Personal
ls ~/.claude/skills/my-skill/SKILL.md
# Project
ls .claude/skills/my-skill/SKILL.md
无效的 YAML 会阻止加载:
cat SKILL.md | head -n 10
确保:
------scripts/helper.pyscripts\helper.py在 .claude/skills/ 中创建技能
提交到 git:
git add .claude/skills/
git commit -m "Add team Skill for PDF processing"
git push
团队拉取后,技能立即可用
向 Claude 提出与您描述匹配的问题:
Can you help me extract text from this PDF?
如果描述与请求匹配,Claude 将自主激活您的技能。
每周安装次数
–
来源
首次出现
–
Package reusable expertise into discoverable capabilities. Skills are modular instructions Claude autonomously activates when relevant—extending your workflow without requiring slash commands.
mkdir -p ~/.claude/skills/my-skill-name
mkdir -p .claude/skills/my-skill-name
---
name: Skill Name
description: What it does + when to use it (be specific!)
---
# Skill Name
## Instructions
Step-by-step guidance for Claude
## Examples
Concrete usage examples
Agent Skills package expertise into discoverable, composable capabilities:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
~/.claude/skills/Available across all projects. Use for:
.claude/skills/Shared with your team via git. Use for:
Team members automatically get Project Skills when they pull your repo.
Bundled with Claude Code plugins; automatically available when plugin installed.
Every Skill requires YAML frontmatter + Markdown content.
| Field | Limit | Purpose |
|---|---|---|
name | 64 chars | Human-readable name |
description | 1024 chars | What it does + when to use |
| Field | Purpose |
|---|---|
allowed-tools | Restrict which tools Claude can use (e.g., Read, Grep, Glob) |
Claude uses this to decide whether to activate your Skill. Always include :
Good (triggers Claude):
Extract text and tables from PDF files, fill forms, merge documents.
Use when working with PDF files or when the user mentions PDFs, forms, or extraction.
Bad (too vague):
Helps with documents
Use gerund form (verb + -ing):
For focused, single-purpose capabilities:
commit-helper/
└── SKILL.md
Reference files load on-demand; keep SKILL.md under 500 lines for optimal performance:
pdf-processing/
├── SKILL.md # Main instructions (quick start)
├── FORMS.md # Form-filling guide
├── REFERENCE.md # API reference
├── EXAMPLES.md # Usage examples
└── scripts/
├── analyze_form.py
├── fill_form.py
└── validate.py
High-level overview in SKILL.md :
Quick start and common use cases
Links to detailed reference files
Extract text with pdfplumber:
import pdfplumber
with pdfplumber.open("file.pdf") as pdf:
text = pdf.pages[0].extract_text()
Form filling : See FORMS.md API reference : See REFERENCE.md Examples : See EXAMPLES.md
### Organization for multi-domain Skills
For Skills covering multiple domains, organize by domain:
bigquery-skill/ ├── SKILL.md └── reference/ ├── finance.md ├── sales.md ├── product.md └── marketing.md
SKILL.md acts as router linking to domain-specific docs.
## Best Practices
### 1. Assume Claude is smart
Don't explain basic concepts. Be concise and direct.
**Verbose** (~150 tokens):
PDF files are a common format containing text, images, and other content. To extract text, you need a library. Many libraries exist...
**Concise** (~50 tokens):
Use pdfplumber for text extraction:
import pdfplumber
with pdfplumber.open("file.pdf") as pdf:
text = pdf.pages[0].extract_text()
### 2. Use examples over explanations
Provide input/output pairs, especially for transformations:
```markdown
## Commit message format
**Example 1:**
Input: Added user authentication with JWT tokens
Output:
feat(auth): implement JWT-based authentication
Add login endpoint and token validation middleware
**Example 2:**
Input: Fixed bug where dates displayed incorrectly
Output:
fix(reports): correct date formatting in timezone conversion
Pre-made scripts are more reliable than generated code:
## Utility scripts
**analyze_form.py**: Extract form fields from PDF
```bash
python scripts/analyze_form.py input.pdf > fields.json
validate_boxes.py : Check for overlapping fields
python scripts/validate_boxes.py fields.json
### 4. List required packages
Specify dependencies upfront:
```markdown
## Requirements
```bash
pip install pypdf pdfplumber
### 5. Implement validation loops
For quality-critical tasks, enforce validation checks:
```markdown
## Workflow
1. Make your edits
2. **Validate immediately**: `python scripts/validate.py`
3. If validation fails:
- Review error message
- Fix issues
- Run validation again
4. **Only proceed when validation passes**
For complex multi-step operations:
## Task Progress
- [ ] Step 1: Analyze form
- [ ] Step 2: Create mapping
- [ ] Step 3: Validate mapping
- [ ] Step 4: Fill form
- [ ] Step 5: Verify output
Limit which tools Claude can use:
---
name: Safe File Reader
description: Read files without making changes
allowed-tools: Read, Grep, Glob
---
High freedom (multiple approaches valid):
## Code review process
1. Analyze code structure
2. Check for potential bugs
3. Suggest readability improvements
4. Verify project conventions
Low freedom (exact sequence required):
## Database migration
Run exactly this command (do not modify):
```bash
python scripts/migrate.py --verify --backup
## Debugging
### Skill won't activate?
**Check description specificity**:
- Too vague: `Helps with documents`
- Specific: `Extract text and tables from PDFs. Use when working with PDF files or when the user mentions PDFs, forms, or extraction.`
**Include when-to-use triggers** in description so Claude recognizes your task.
### Multiple Skills conflict?
Use distinct trigger terms:
Instead of:
```yaml
# Skill 1
description: For data analysis
# Skill 2
description: For analyzing data
Use:
# Skill 1
description: Analyze sales data in Excel and CRM exports.
Use for sales reports, pipeline analysis, and revenue tracking.
# Skill 2
description: Analyze log files and system metrics.
Use for performance monitoring, debugging, and system diagnostics.
Verify Skill location:
# Personal
ls ~/.claude/skills/my-skill/SKILL.md
# Project
ls .claude/skills/my-skill/SKILL.md
Invalid YAML prevents loading:
cat SKILL.md | head -n 10
Ensure:
--- on line 1--- before contentscripts/helper.pyscripts\helper.pyCreate Skill in .claude/skills/
Commit to git:
git add .claude/skills/
git commit -m "Add team Skill for PDF processing"
git push
Team pulls and Skills are immediately available
Ask Claude questions matching your description:
Can you help me extract text from this PDF?
Claude autonomously activates your Skill if description matches the request.
Weekly Installs
–
Source
First Seen
–
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装
GSAP Utils 工具函数详解:数学运算、数组处理与动画值映射 | GSAP 开发指南
2,500 周安装
GSAP时间轴动画教程:创建多步骤序列动画与关键帧控制
2,500 周安装
Google Workspace CLI 模型响应安全清理工具 | Model Armor sanitize-response 命令使用指南
6,500 周安装
飞书日程待办摘要工作流:AI自动生成每日/每周开工报告,提升个人生产力
24,200 周安装
飞书会议纪要自动化汇总工作流:一键生成会议周报与纪要文档
24,000 周安装
lark-cli 共享规则:飞书资源操作指南与权限配置详解
24,000 周安装