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-skillTags
Translated version includes tags in frontmatterSKILL.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 22. Automatically Initialize Plugin (if required)
- Read the init-plugin skill to obtain structure knowledge
- Ask the user: "What should this plugin be named?"
- Validate name format (lowercase, hyphen-separated)
- Create the .claude/ structure:
- .claude/skills/
- .claude/agents/
- .claude/commands/
- .claude/hooks/hooks.json
- Proceed to Step 3
3. Collect Skill Information
Ask the user:
- "Skill name?" (Validation: lowercase, hyphen-separated, numbers allowed)
- "Description?"
- "Which tools are needed? (comma-separated, or leave blank)"
4. Create Skill
- Create directory:
.claude/skills/{skill-name}/ - Generate SKILL.md from template
- Insert user input (exactly as provided, no modifications)
- 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 immediatelyError 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:
- Check .claude/ → Not found
- Ask plugin name → "reddit-automation"
- Create .claude/ structure
- Ask for skill information:
- Name: reddit-upvote
- Description: Upvote Reddit posts
- Tools: (leave blank)
- Create .claude/skills/reddit-upvote/SKILL.md
- Output success message