create-skill

Original🇨🇳 Chinese
Translated

Create a new skill, and automatically initialize the plugin structure if needed

3installs
Added on

NPX Install

npx skill4agent add blueif16/amazing-claude-code-plugins create-skill

SKILL.md Content (Chinese)

View Translation Comparison →

Create Skill

Purpose

Create a new skill file, and automatically initialize the plugin structure if it does not exist.

Execution Logic

1. Check Plugin Structure

Check if the .claude/ directory exists in the current directory
├─ Found → Proceed to Step 3
└─ Not Found → Enter Step 2

2. Automatically Initialize Plugin (if required)

  1. Read the init-plugin skill to obtain structure knowledge
  2. Ask the user: "What should this plugin be named?"
  3. Validate name format (lowercase, hyphen-separated)
  4. Create the .claude/ structure:
    • .claude/skills/
    • .claude/agents/
    • .claude/commands/
    • .claude/hooks/hooks.json
  5. Proceed to Step 3

3. Collect Skill Information

Ask the user:
  1. "Skill name?" (Validation: lowercase, hyphen-separated, numbers allowed)
  2. "Description?"
  3. "Which tools are needed? (comma-separated, or leave blank)"

4. Create Skill

  1. Create directory:
    .claude/skills/{skill-name}/
  2. Generate SKILL.md from template
  3. Insert user input (exactly as provided, no modifications)
  4. Display success message

Validation Rules

  • Skill name format:
    ^[a-z0-9-]+$
  • Duplicate names not allowed: Check existing skills
  • Description required: At least 10 characters

Success Output

✅ Skill created: {skill-name}
📁 Location: ./.claude/skills/{skill-name}/SKILL.md
🚀 This skill is ready to use immediately

Error Handling

  • Invalid name format → Ask again
  • Duplicate name → Prompt and ask if user wants to overwrite
  • No write permission → Report error

Example

User: "Create a reddit-upvote skill"
Execution Flow:
  1. Check .claude/ → Not found
  2. Ask plugin name → "reddit-automation"
  3. Create .claude/ structure
  4. Ask for skill information:
    • Name: reddit-upvote
    • Description: Upvote Reddit posts
    • Tools: (leave blank)
  5. Create .claude/skills/reddit-upvote/SKILL.md
  6. Output success message