Automated summary
Guides users in creating Claude Code skills following best practices and prompt engineering principles.
Strengths
- Provides a clear step-by-step process for skill creation
- includes a template for SKILL.md
- covers auto-discovery and progressive disclosure.
Limitations
- Requires familiarity with Claude Code's skill system
- the template may need adaptation for specific use cases
- does not cover debugging skill interactions.
Use when you need to create a new custom skill for Claude Code.
Do not use if you are not working with Claude Code's skill system or if you need to modify existing skills.
Security analysis
SafeThis skill provides instructions for creating new Claude Code skills. It contains no executable commands, no sensitive data handling, and no destructive or exfiltration actions. The skill does not declare any tool access, so it poses no security risk.
No concerns found
How this analysis is madeExamples
I want to create a new Claude Code skill that helps with code review.Can you guide me through creating a SKILL.md for a PDF processing skill?Create a skill for database schema migrations following best practices.name: create-skill description: Create new Claude Code skills with best practices. Use when the user wants to create, build, or develop a new skill, or when they mention SKILL.md, skill creation, or custom commands. user-invocable: true
Create Skill
Overview
This skill guides you through creating high-quality Claude Code skills following Anthropic's best practices and prompt engineering principles.
Quick Start
When creating a new skill:
- Ask for skill requirements - Understand what the skill should do
- Design the skill structure - Plan files and progressive disclosure
- Write the SKILL.md - Create the main instruction file
- Add reference files - Create supporting documentation if needed
- Test and iterate - Verify the skill works as expected
Skill Creation Process
Step 1: Gather Requirements
Ask the user:
- What should the skill do?
- When should it be triggered (auto-discovery keywords)?
- What tools does it need access to?
- Should it be user-invocable (slash command)?
Step 2: Create Directory Structure
~/.claude/skills/{skill-name}/
├── SKILL.md # Required: Main instructions
├── reference.md # Optional: Detailed documentation
├── examples.md # Optional: Usage examples
└── scripts/ # Optional: Utility scripts
└── helper.py
Location Guide:
| Location | Path | Scope |
|:---------|:-----|:------|
| Personal | ~/.claude/skills/ | All your projects |
| Project | .claude/skills/ | Current repository |
Step 3: Write SKILL.md
Use this template:
---
name: skill-name
description: [Specific description with keywords for auto-discovery. Describe WHAT it does and WHEN to use it.]
user-invocable: true
allowed-tools: [Optional: Tool restrictions]
---
# Skill Title
## Quick Start
[Essential instructions - what Claude needs to know immediately]
## Workflow
[Step-by-step process]
## Examples
[Concrete input/output examples]
## Advanced Features
For detailed reference, see [reference.md](reference.md).
Best Practices Checklist
Description (Critical for Auto-Discovery)
<good_description> description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction. </good_description>
<bad_description> description: Helps with documents </bad_description>
Rules:
- Include specific keywords users might mention
- State WHAT it does AND WHEN to use it
- Write in third person ("Processes files" not "I process files")
- Be specific, not vague
Content Guidelines
<conciseness> - Keep SKILL.md under 500 lines - Only include what Claude doesn't already know - Claude is smart - don't over-explain - Challenge each piece: "Does Claude really need this?" </conciseness><progressive_disclosure>
- Put essential info in SKILL.md
- Link to detailed docs in separate files
- Claude loads additional files only when needed </progressive_disclosure>
<consistent_terminology>
- Choose one term and stick with it
- "API endpoint" everywhere, not "URL/route/path"
- "Extract" everywhere, not "pull/get/retrieve" </consistent_terminology>
Prompt Engineering Principles
<explicit_instructions> Be direct and explicit. Tell Claude exactly what to do.
LESS EFFECTIVE: "Handle errors appropriately" MORE EFFECTIVE: "Catch exceptions, log the error message, and return a structured error response with status code and message." </explicit_instructions>
<provide_context> Explain WHY, not just WHAT.
LESS EFFECTIVE: "Always validate input" MORE EFFECTIVE: "Validate input because this data comes from external users and could contain malicious content or unexpected formats." </provide_context>
<use_examples> Show concrete input/output pairs:
Example: Input: User request to format date Output:
const formatted = new Intl.DateTimeFormat('en-US').format(date);
</use_examples>
<xml_tags> Use XML tags for structured sections - Claude is fine-tuned to respond to them:
<task>Description</task>
<constraints>Limits</constraints>
<output_format>Expected format</output_format>
</xml_tags>
Degrees of Freedom
| Level | When to Use | Example | |:------|:------------|:--------| | High | Multiple approaches valid | General code review guidance | | Medium | Preferred pattern exists | Template with customization | | Low | Consistency critical | Exact script sequences |
Tool Restrictions
allowed-tools: Read, Grep, Glob, Bash(python:*)
Common patterns:
- Read-only:
Read, Grep, Glob - With Python:
Read, Bash(python:*) - Full access: omit
allowed-tools
Frontmatter Reference
---
name: skill-name # Required: Unique identifier
description: Description here # Required: For auto-discovery
user-invocable: true # Optional: Show in slash menu (default: true)
disable-model-invocation: false # Optional: Block Skill tool (default: false)
allowed-tools: Read, Grep # Optional: Restrict available tools
context: fork # Optional: Run in isolated context
agent: Explore # Optional: Use specific agent type
hooks: # Optional: Lifecycle hooks
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./check.sh"
---
Testing the Skill
After creating the skill:
- Test auto-discovery - Ask Claude something matching the description
- Test slash command - Use
/skill-namedirectly - Test with different models - Haiku needs more guidance, Opus needs less
- Iterate based on results - Refine instructions if needed
Common Patterns
Validation Workflow
1. Run validation: `script validate input`
2. Review results
3. Fix any issues
4. Re-validate until passing
Multi-Step Process
## Workflow
1. [First step]
2. [Second step]
3. [Verification step]
4. [Final step]
Script Integration
## Scripts
- `scripts/analyze.py` - Analyzes input
- `scripts/process.py` - Processes data
- `scripts/validate.py` - Validates output
Run scripts, don't load their contents into context.
Additional Resources
For detailed examples and advanced patterns, see:
- examples.md - Complete skill examples
- reference.md - Full frontmatter reference
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-claude-code-skills-mm78nmxh' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-claude-code-skills-mm78nmxh/download' --output '.skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md.part' && mv '.skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md.part' '.skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md' && test -s '.skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/create-skill' && cp -R '.skill-downloads/create-claude-code-skills-mm78nmxh' '.claude/skills/create-skill'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/create-claude-code-skills-mm78nmxh'openskills read 'create-claude-code-skills-mm78nmxh'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-claude-code-skills-mm78nmxh/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.