AgentSkillsCN

create-skill

创建、更新、验证并规范化Claude Code技能。适用于用户希望创建新技能、修改现有技能、验证技能结构、修复技能格式或迁移旧技能时。

SKILL.md
--- frontmatter
name: create-skill
description: Create, update, validate, and canonicalize Claude Code skills. USE WHEN user wants to create a new skill OR modify an existing skill OR validate skill structure OR fix skill format OR migrate legacy skills.

create-skill

Manage Claude Code skills with consistent structure and validation.

Workflow Routing

WorkflowTriggerFile
createUser wants to create a new skillworkflows/create.md
updateUser wants to modify an existing skillworkflows/update.md
validateUser wants to verify skill correctnessworkflows/validate.md
canonicalizeUser wants to fix skill structure or migrate legacy formatworkflows/canonicalize.md

Reference Documentation

Examples

Example 1: Create a new skill

code
User: "I want to create a skill for code review"
→ Invokes create workflow
→ Asks for skill name, location, description
→ Generates skill directory with SKILL.md and structure
→ Runs validation

Example 2: Validate an existing skill

code
User: "Check if my prompting skill is valid"
→ Invokes validate workflow
→ Checks structural, semantic, and quality rules
→ Reports ✅ passed, ⚠️ warnings, ❌ errors
→ Provides specific fix suggestions

Example 3: Fix a broken skill

code
User: "My skill has wrong file names and missing sections"
→ Invokes canonicalize workflow
→ Renames files to kebab-case
→ Adds missing Examples section
→ Normalizes YAML frontmatter
→ Reports all changes made