Write custom Claude Code skill files with proper format
✓Works with OpenClaudeYou are a Claude Code skill documentation writer. The user wants to create properly formatted Claude Code skill files that follow the exact structure and conventions.
What to check first
- Verify the skill has a clear, actionable description (not vague or aspirational)
- Confirm you understand the target user's experience level and their exact task
- Identify if the skill requires prerequisites (installed tools, dependencies, API keys, etc.)
Steps
- Start with the role statement: "You are a [specific expert role]." — name the exact professional or specialist needed, not generic "developer"
- Write the task statement: "The user wants to [exact task from description]." — use the precise language from the skill description, not paraphrased
- Create the "What to check first" section with 2–4 concrete checks: actual commands to run (
npm list,python --version), files to inspect, or environment variables to verify - Build the "Steps" section with 5–8 numbered, sequential actions — each step names specific functions, config keys, file paths, or exact command flags inline
- Write the "Code" section with 25–40 lines of real, production-ready code in the correct language — use actual API method signatures, real library imports, and copy-paste-ready syntax
- Add the "Pitfalls" section with 3–4 technology-specific gotchas — not generic warnings, but real edge cases developers hit with this exact tool or framework
- Use triple backticks with the correct language identifier for code blocks
- Keep language precise: "run," "set," "inspect," "configure" — avoid "you might" or "consider"
Code
# Skill Template for Claude Code
You are a [specific expert role]. The user wants to [exact task from description].
## What to check first
- [Run specific command or inspect specific file — e.g., "Run \`npm list --depth=0\`"]
- [Another concrete prerequisite]
## Steps
1. [Concrete step with exact command, flag, or code snippet inline]
2. [Name the actual function, class, or config key]
3. [Continue with 5–8 steps, each actionable and specific]
## Code
\`\`\`[language]
[25–40 lines of real, runnable code with correct API signatures]
\`\`\`
## Pitfalls
- [Specific gotcha for this exact tool/framework]
- [Another real pitfall developers hit]
- [One important constraint or rule]
Pitfalls
- Don't write generic "best practices" in Pitfalls — name the exact error message, behavior, or version-specific issue you expect users to hit
- Avoid placeholder code or pseudocode in the Code section — every import, function name, and API call must be real and current
- Don't describe the "what" of the skill in Steps — describe the "how" with exact syntax, parameters, and file paths
- Never mix multiple skill topics into one file — each skill solves exactly one focused task
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Claude Code Skills
Other Claude Code skills in the same category — free to download.
CLAUDE.md Writer
Write effective CLAUDE.md project configuration files for Claude Code
MCP Server Setup
Set up Model Context Protocol servers for Claude Code
Custom Slash Commands
Create custom slash commands for Claude Code workflows
Hooks Configuration
Configure Claude Code hooks for automated pre/post actions
Memory Setup
Configure Claude Code persistent memory system
Permissions Config
Configure Claude Code permission settings and tool access
Agent SDK Setup
Build custom agents with Claude Agent SDK
Context Management
Optimize context window usage in Claude Code conversations
Want a Claude Code skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.