skill-creator
9
总安装量
6
周安装量
#31359
全站排名
安装命令
npx skills add https://github.com/fernandofuc/nextjs-claude-setup --skill skill-creator
Agent 安装分布
gemini-cli
5
antigravity
5
claude-code
5
windsurf
4
codex
4
Skill 文档
Skill Creator – SaaS Factory Edition
This skill provides guidance for creating custom skills following SaaS Factory standards.
Purpose
To create specialized skills that extend Claude’s capabilities with domain-specific knowledge and reusable workflows.
When to Use
- Creating new domain-specific skills
- Building reusable tools for your team
- Extending Claude Code functionality
- Documenting specialized procedures
How to Create a Skill
Step 1: Initialize
python scripts/init_skill.py my-skill --path ./my-skill
This creates:
my-skill/
âââ SKILL.md # Edit this with your skill
âââ scripts/ # Add executable code
âââ references/ # Add documentation
âââ assets/ # Add resources
Step 2: Edit SKILL.md
Follow this template:
---
name: my-skill
description: What this skill does and when to use it (3-5 sentences)
license: MIT
---
# My Skill Title
## Purpose
Describe what the skill does in 1-2 paragraphs.
## When to Use
Explain when Claude should activate this skill.
## How to Use
### Step 1: First action
Instructions for step one.
### Step 2: Second action
Instructions for step two.
## Examples
- Example usage 1
- Example usage 2
## Reference Files
- See `references/` for detailed documentation
- Use `scripts/` for executable code
Step 3: Add Content
For scripts/ (executable code):
scripts/
âââ helper.py # Reusable code
âââ processor.sh # Shell utilities
âââ validator.py # Input validation
For references/ (documentation):
references/
âââ api_docs.md # API specifications
âââ schemas.md # Data schemas
âââ best_practices.md # Guidelines
For assets/ (output resources):
assets/
âââ template.html # HTML templates
âââ icon.png # Images
âââ style.css # Styles
Step 4: Validate
python scripts/quick_validate.py ./my-skill
Check:
- â SKILL.md has valid YAML frontmatter
- â Required fields: name, description
- â Correct file structure
- â Naming conventions followed
Step 5: Package
python scripts/package_skill.py ./my-skill
Output: my-skill.zip ready for distribution
Step 6: Install in Claude Code
/plugin install ./my-skill.zip
Best Practices
â DO
- Write imperative instructions: “To create X, do Y”
- Keep SKILL.md <5k words: Move large docs to references/
- Name scripts descriptively:
rotate_pdf.py, notutil.py - Include –help in scripts: For user guidance
- Document everything: Clear examples and use cases
â DON’T
- Use vague names: “tool”, “helper”, “util”
- Write in second person: “You should do X”
- Include thousands of lines of code in SKILL.md
- Forget error handling in scripts
- Hardcode configurations
Naming Conventions
Skills: kebab-case (my-skill)
Scripts: action_noun.py (rotate_pdf.py)
References: descriptive.md (api_docs.md)
Files: kebab-case.extension (config-template.json)
Example Structure
pdf-processor/
âââ SKILL.md
â ---
â name: pdf-processor
â description: Process and manipulate PDF files.
â Use when users need to rotate, merge, or
â extract data from PDFs.
â ---
â
â # PDF Processor
â
â ## Purpose
â Advanced PDF manipulation for common tasks.
â
â ## How to Use
â 1. Prepare input PDF
â 2. Execute relevant script
â 3. Output is saved
â
âââ scripts/
â âââ rotate_pdf.py
â âââ merge_pdfs.py
â âââ extract_text.py
â
âââ references/
âââ pdf_formats.md
âââ library_guide.md
Validation Checklist
â¡ SKILL.md structure
â¡ Valid YAML frontmatter
â¡ name in kebab-case
â¡ description is descriptive
â¡ File organization
â¡ Scripts in scripts/
â¡ Docs in references/
â¡ Resources in assets/
â¡ Quality
â¡ SKILL.md <5k words
â¡ Scripts have docstrings
â¡ Clear examples included
â¡ All paths relative
â¡ Ready to distribute
â¡ Validated: â All OK!
â¡ Packaged: skill-name.zip
â¡ Can install: /plugin install
References
See references/ for:
- Anthropic Skills Specification
- Best Practices Guide
- Example Skills
Create skills following SaaS Factory standards for consistency and quality.