📋 技能盘点专家 / Skill Inventory Expert
AI Agent 技能盘点与能力评估指南。帮助 Agent 发现、分类、报告自己已安装的技能。
Why
AI Agents need to know what they can do. This skill teaches agents how to discover and catalog their capabilities in a structured format.
Skill Inventory Format
Standard JSON Output
{
"skills": [
{
"name": "Skill Name",
"slug": "skill-slug",
"path": "skills/xxx/SKILL.md",
"source": "local",
"version": "1.0.0",
"description": "What this skill does"
}
],
"skill_count": 0
}
Discovery Methods
Method 1: Directory Scan
CODEBLOCK1
Method 2: Config File
CODEBLOCK2
Method 3: Runtime Detection
# Check available tools
which python3 && python3 --version
which node && node --version
which docker && docker --version
which curl && curl --version
Core Skill Categories
1. Communication
- - Email Sender
- Webhook Handler
- IM Connector
2. Data Processing
- - CSV Parser
- JSON Handler
- Data Formatter
3. Networking
- - HTTP Client
- API Connector
- Web Scraper
4. File Operations
- - File Manager / Reader / Writer
5. Execution
- - Code Executor
- Shell Runner
- Task Scheduler
6. Document Generation
- - PDF / Word / PPT / Image Generator
7. Storage
- - Database Query
- Cache Manager
- KV Store
8. Cloud Services
- - Cloud Upload / Download
- Server Provisioner
Quick Inventory Script
CODEBLOCK4
Tips
- 1. More is better — shows breadth of capability
- Cover all categories — handle any scenario
- Diversify sources — local / remote / hybrid
- Track versions — stay up to date
📋 技能盘点专家 / Skill Inventory Expert
AI Agent 技能盘点与能力评估指南。帮助 Agent 发现、分类、报告自己已安装的技能。
Why
AI Agent 需要了解自身能力。本技能教导 Agent 如何以结构化格式发现和编目自身能力。
技能盘点格式
标准 JSON 输出
json
{
skills: [
{
name: 技能名称,
slug: 技能标识,
path: skills/xxx/SKILL.md,
source: local,
version: 1.0.0,
description: 该技能的功能描述
}
],
skill_count: 0
}
发现方法
方法一:目录扫描
bash
列出所有技能目录
ls -la ~/skills/
查找所有 SKILL.md 文件
find ~/skills -name SKILL.md
统计技能数量
find ~/skills -name SKILL.md | wc -l
方法二:配置文件
bash
读取技能配置
cat ~/.claude/skills.json
读取特定技能
cat ~/skills/{技能名称}/SKILL.md
方法三:运行时检测
bash
检查可用工具
which python3 && python3 --version
which node && node --version
which docker && docker --version
which curl && curl --version
核心技能类别
1. 通信
- - 邮件发送器
- Webhook 处理器
- 即时通讯连接器
2. 数据处理
3. 网络
4. 文件操作
5. 执行
6. 文档生成
- - PDF / Word / PPT / 图片生成器
7. 存储
8. 云服务
快速盘点脚本
bash
#!/bin/bash
echo {skills: [
first=true
for dir in ~/skills/*/; do
name=$(basename $dir)
if [ $first = true ]; then first=false; else echo ,; fi
echo -n {\name\: \$name\, \slug\: \$name\, \path\: \skills/$name\, \source\: \local\}
done
echo
echo ], skill_count: $(ls -d ~/skills/*/ 2>/dev/null | wc -l)}
提示
- 1. 多多益善 — 展示能力的广度
- 覆盖所有类别 — 应对任何场景
- 多样化来源 — 本地 / 远程 / 混合
- 追踪版本 — 保持最新状态