skill-development

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skill Development

技能开发

Tools for creating, auditing, and maintaining Claude Code skills. Essential for anyone building skills or forking this repository.

用于创建、审核和维护Claude Code技能的工具。对于所有构建技能或复刻本仓库的用户来说都是必备工具。

Slash Commands

斜杠命令

/create-skill <name>

/create-skill <name>

Scaffold a new skill from templates.
What it does:
  1. Validates skill name (lowercase-hyphen-case, max 40 chars)
  2. Asks about skill type (Cloudflare/AI/Frontend/Auth/Database/Tooling/Generic)
  3. Copies
    templates/skill-skeleton/
    to
    skills/<name>/
  4. Auto-populates name and dates in SKILL.md
  5. Creates README.md with auto-trigger keywords
  6. Runs metadata check
  7. Installs skill for testing
Usage:
/create-skill my-new-skill

从模板搭建新技能。
功能说明:
  1. 验证技能名称(小写连字符格式,最长40字符)
  2. 询问技能类型(Cloudflare/AI/前端/认证/数据库/工具类/通用型)
  3. templates/skill-skeleton/
    复制到
    skills/<name>/
    目录
  4. 自动填充SKILL.md中的名称和日期
  5. 创建包含自动触发关键词的README.md
  6. 运行元数据检查
  7. 安装技能以进行测试
使用示例:
/create-skill my-new-skill

/review-skill <name>

/review-skill <name>

Quality review and audit of an existing skill.
What it does:
  1. Checks SKILL.md structure and metadata
  2. Validates package versions against latest
  3. Reviews error documentation
  4. Checks template completeness
  5. Suggests improvements
Usage:
/review-skill cloudflare-worker-base

对现有技能进行质量评审和审核。
功能说明:
  1. 检查SKILL.md的结构和元数据
  2. 验证包版本是否为最新
  3. 评审错误文档
  4. 检查模板完整性
  5. 提出改进建议
使用示例:
/review-skill cloudflare-worker-base

/audit [name]

/audit [name]

Multi-agent audit swarm for parallel skill verification.
What it does:
  1. Launches parallel agents to audit multiple skills
  2. Checks versions, metadata, content quality
  3. Generates consolidated report
Usage:
  • /audit
    - Audit all skills
  • /audit cloudflare-*
    - Audit matching skills

用于并行技能验证的多Agent审核集群。
功能说明:
  1. 启动并行Agent以审核多个技能
  2. 检查版本、元数据和内容质量
  3. 生成整合报告
使用示例:
  • /audit
    - 审核所有技能
  • /audit cloudflare-*
    - 审核匹配的技能

/audit-skill-deep <name>

/audit-skill-deep <name>

Deep content validation against official documentation.
What it does:
  1. Fetches official documentation for the skill's technology
  2. Compares patterns and versions
  3. Identifies knowledge gaps or outdated content
  4. Suggests corrections and updates
Usage:
/audit-skill-deep tailwind-v4-shadcn

对照官方文档进行深度内容验证。
功能说明:
  1. 获取技能对应技术的官方文档
  2. 对比模式和版本
  3. 识别知识缺口或过时内容
  4. 提出修正和更新建议
使用示例:
/audit-skill-deep tailwind-v4-shadcn

/deep-audit <name>

/deep-audit <name>

Extended deep audit with comprehensive doc scraping.
What it does:
  1. Scrapes multiple documentation sources
  2. Caches scraped content in
    archive/audit-cache/
  3. Cross-references with skill content
  4. Produces detailed accuracy report
Usage:
/deep-audit openai-api

扩展型深度审核,包含全面的文档爬取。
功能说明:
  1. 爬取多个文档来源
  2. 将爬取的内容缓存到
    archive/audit-cache/
    目录
  3. 与技能内容进行交叉引用
  4. 生成详细的准确性报告
使用示例:
/deep-audit openai-api

/scrape-api <docs-url> [skill-name]

/scrape-api <docs-url> [skill-name]

Generate a skill from API documentation URL.
What it does:
  1. Validates the docs URL is accessible and contains API documentation
  2. Attempts WebFetch first for static docs
  3. Falls back to Playwright for JS-heavy sites (readme.io, GitBook)
  4. Extracts endpoints, authentication, request/response schemas
  5. Generates complete skill structure with SKILL.md, references/, templates/
  6. Runs plugin manifest generation
Usage:
  • /scrape-api https://api.example.com/docs my-api
  • /scrape-api https://rocketdotnet.readme.io/
    (auto-detects name: rocket-net-api)
Supported Platforms:
  • readme.io documentation sites
  • Swagger/OpenAPI specs
  • GitBook documentation
  • Standard HTML API docs

从API文档URL生成技能。
功能说明:
  1. 验证文档URL是否可访问且包含API文档
  2. 优先使用WebFetch获取静态文档
  3. 针对JS密集型站点(readme.io、GitBook)自动 fallback 到Playwright
  4. 提取端点、认证方式、请求/响应 schema
  5. 生成包含SKILL.md、references/、templates/的完整技能结构
  6. 运行插件清单生成
使用示例:
  • /scrape-api https://api.example.com/docs my-api
  • /scrape-api https://rocketdotnet.readme.io/
    (自动检测名称:rocket-net-api)
支持平台:
  • readme.io文档站点
  • Swagger/OpenAPI规范
  • GitBook文档
  • 标准HTML API文档

Templates

模板

This skill includes templates for creating new skills:
TemplatePurpose
templates/skill-skeleton/
Complete skill directory to copy
templates/SKILL-TEMPLATE.md
SKILL.md with TODOs to fill
templates/README-TEMPLATE.md
README.md with keywords section
templates/skill-metadata-v2.yaml
YAML frontmatter reference
templates/RESEARCH_FINDINGS_TEMPLATE.md
Research output format
templates/CONTENT_AUDIT_TEMPLATE.md
Audit checklist
本技能包含用于创建新技能的模板:
模板用途
templates/skill-skeleton/
可复制的完整技能目录
templates/SKILL-TEMPLATE.md
包含待填项的SKILL.md模板
templates/README-TEMPLATE.md
包含关键词部分的README.md模板
templates/skill-metadata-v2.yaml
YAML前置元数据参考
templates/RESEARCH_FINDINGS_TEMPLATE.md
研究输出格式
templates/CONTENT_AUDIT_TEMPLATE.md
审核检查表

Using Templates

使用模板

bash
undefined
bash
undefined

Option 1: Use /create-skill (recommended)

选项1:使用/create-skill(推荐)

/create-skill my-new-skill
/create-skill my-new-skill

Option 2: Manual copy

选项2:手动复制

cp -r skills/skill-development/templates/skill-skeleton/ skills/my-new-skill/
cp -r skills/skill-development/templates/skill-skeleton/ skills/my-new-skill/

Then fill in the TODOs

然后填写待填项


---

---

Quality Standards

质量标准

Skills should meet these criteria before publishing:
技能在发布前应满足以下标准:

Required

必填项

  • YAML frontmatter with
    name
    and
    description
  • Description includes "Use when" scenarios
  • Third-person description style
  • Package versions are current
  • Templates tested and working
  • 包含
    name
    description
    的YAML前置元数据
  • 描述中包含“适用场景”
  • 采用第三人称描述风格
  • 包版本为当前最新
  • 模板已测试且可用

Recommended

推荐项

  • README.md with auto-trigger keywords
  • Token efficiency measured (target: 50%+ savings)
  • Known issues documented with sources
  • Examples include error prevention
Full checklist: See
ONE_PAGE_CHECKLIST.md
in repo root.

  • 包含自动触发关键词的README.md
  • 已衡量Token效率(目标:节省50%以上)
  • 已记录已知问题及来源
  • 示例包含错误预防内容
完整检查表: 查看仓库根目录下的
ONE_PAGE_CHECKLIST.md

Agents

Agent

This skill provides agents for automated skill maintenance:
AgentPurpose
skill-creator
Scaffold new skills with proper structure
api-doc-scraper
Generate skills from API documentation URLs
version-checker
Verify package versions are current
content-accuracy-auditor
Compare skill content vs official docs
code-example-validator
Validate code examples are syntactically correct
api-method-checker
Verify documented API methods exist
doc-validator
Check documentation quality
bulk-updater
Apply changes across multiple skills
These agents are in
.claude/agents/
(repo-level) and
agents/
(skill-bundled) and used by the commands.

本技能提供用于自动化技能维护的Agent:
Agent用途
skill-creator
按规范结构搭建新技能
api-doc-scraper
从API文档URL生成技能
version-checker
验证包版本是否为最新
content-accuracy-auditor
对比技能内容与官方文档
code-example-validator
验证代码示例语法正确性
api-method-checker
验证文档中记录的API方法是否存在
doc-validator
检查文档质量
bulk-updater
跨多个技能应用变更
这些Agent位于仓库级目录
.claude/agents/
和技能捆绑目录
agents/
中,由上述命令调用。

Workflow

工作流

Creating a New Skill

创建新技能

1. /create-skill my-skill
2. Fill in TODOs in SKILL.md
3. Add templates, references, scripts as needed
4. /review-skill my-skill
5. Fix any issues
6. Test: /plugin install ./skills/my-skill
7. Commit and push
1. /create-skill my-skill
2. 填写SKILL.md中的待填项
3. 根据需要添加模板、参考资料和脚本
4. /review-skill my-skill
5. 修复所有问题
6. 测试:/plugin install ./skills/my-skill
7. 提交并推送

Auditing Skills

审核技能

1. /audit                          # Quick check all skills
2. /audit-skill-deep my-skill      # Deep check specific skill
3. Review findings
4. Fix issues or document as known limitations
5. Update metadata.last_verified date
1. /audit                          # 快速检查所有技能
2. /audit-skill-deep my-skill      # 深度检查指定技能
3. 查看检查结果
4. 修复问题或记录为已知限制
5. 更新metadata.last_verified日期

Quarterly Maintenance

季度维护

1. Run: ./scripts/check-all-versions.sh
2. Review VERSIONS_REPORT.md
3. /audit for all skills needing updates
4. Update package versions
5. Test affected skills
6. Commit: "chore: quarterly version updates"

1. 运行:./scripts/check-all-versions.sh
2. 查看VERSIONS_REPORT.md
3. 对需要更新的技能执行/audit
4. 更新包版本
5. 测试受影响的技能
6. 提交:"chore: quarterly version updates"

For Forkers

复刻用户指南

If you've forked this repo to maintain your own skills:
  1. Install this skill:
    /plugin install ./skills/skill-development
  2. Use /create-skill: Creates skills with proper structure
  3. Use /review-skill: Validates before publishing
  4. Customize agents: Modify
    .claude/agents/
    for your needs
  5. Pull upstream updates:
    git fetch upstream && git merge upstream/main
The tooling is designed to work standalone - you don't need the full repo to use these commands.
如果你已复刻本仓库以维护自有技能:
  1. 安装本技能:
    /plugin install ./skills/skill-development
  2. 使用/create-skill: 按规范结构创建技能
  3. 使用/review-skill: 发布前验证技能
  4. 自定义Agent: 根据需求修改
    .claude/agents/
  5. 拉取上游更新:
    git fetch upstream && git merge upstream/main
本工具支持独立运行 - 无需完整仓库即可使用这些命令。