Provides best practices and guidelines for creating Claude Code skills. Use when you need help with skill structure, naming conventions, writing effective descriptions, progressive disclosure patterns, and evaluation methods.
Provides best practices and guidelines for creating Claude Code skills.
npx claudepluginhub kkhys/claude-code-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Practical guidelines for creating skills that Claude Code can effectively discover and use.
Claude is already smart - Only add context that Claude doesn't already have.
✓ Good example (concise):
## Extracting PDF Text
Use pdfplumber:
import pdfplumber
with pdfplumber.open("file.pdf") as pdf:
text = pdf.pages[0].extract_text()
✗ Bad example (verbose):
PDF (Portable Document Format) files are...
First, you need to install using pip...
Token Budget: Keep SKILL.md body under 500 lines
Adjust specificity level to match task fragility:
High Freedom (multiple approaches valid):
## Code Review Process
1. Analyze code structure and organization
2. Check for potential bugs
3. Suggest readability improvements
Low Freedom (operation is fragile):
## Database Migration
Execute this script exactly:
python scripts/migrate.py --verify --backup
Do not modify the command.
Test your skill with all models you plan to use (Haiku, Sonnet, Opus).
---
name: example-skill # lowercase, numbers, hyphens only (max 64 chars)
description: Specific description # max 1024 chars, written in third person
---
Naming Conventions (gerund form recommended):
processing-pdfs, analyzing-spreadsheets, managing-databaseshelper, utils, anthropic-helperAlways write in third person:
Be specific and include key terms:
description: Extracts text and tables from PDF files and fills forms. Use when mentioning PDF files, forms, or document extraction.
## Quick Start
[Basic code example]
## Advanced Features
**Form Filling**: See [FORMS.md](FORMS.md)
**API Reference**: See [REFERENCE.md](REFERENCE.md)
skill/
├── SKILL.md (overview)
└── reference/
├── finance.md
├── sales.md
└── product.md
## Research Synthesis Workflow
Progress checklist:
- [ ] Step 1: Read all sources
- [ ] Step 2: Identify key themes
- [ ] Step 3: Cross-reference claims
- [ ] Step 4: Create structured summary
- [ ] Step 5: Verify citations
**Step 1: Read all sources**
[Detailed instructions]
**Step 2: Identify key themes**
[Detailed instructions]
## Document Editing Process
1. Make edits to XML
2. **Validate immediately**: python validate.py
3. If validation fails:
- Check errors
- Fix issues
- Re-validate
4. **Only proceed on success**
5. Test output
scripts/file.py instead of scripts\file.py## Utility Scripts
**analyze_form.py**: Extract form fields from PDF
python scripts/analyze_form.py input.pdf > fields.json
**validate_boxes.py**: Check for overlapping bounding boxes
python scripts/validate_boxes.py fields.json
# ✓ Good: Explicitly handle errors
def process_file(path):
try:
with open(path) as f:
return f.read()
except FileNotFoundError:
print(f"File {path} not found, creating default")
with open(path, 'w') as f:
f.write('')
return ''
# ✗ Bad: Leave it to Claude
def process_file(path):
return open(path).read() # May fail
Use "plan-validate-execute" pattern for complex tasks:
## Batch Update Workflow
1. Analyze: Identify fields
2. **Create plan file**: changes.json
3. **Validate plan**: python validate_plan.py changes.json
4. Execute: Apply changes
5. Verify: Validate output
Creating new skills:
Improving existing skills:
name: Max 64 chars, lowercase/numbers/hyphens only, no XML tagsdescription: Max 1024 chars, non-empty, no XML tagsUse fully qualified tool names: ServerName:tool_name
Example:
Use BigQuery:bigquery_schema tool to get schema
Use GitHub:create_issue tool to create issue
pdf-skill/
├── SKILL.md # Main instructions
├── FORMS.md # Form filling guide
├── reference.md # API reference
└── scripts/
├── analyze_form.py
└── fill_form.py
---
name: processing-pdfs
description: Extracts text and tables from PDF files and fills forms. Use when mentioning PDF files, forms, or document extraction.
---
# PDF Processing
## Quick Start
Extract text with pdfplumber:
[Code example]
## Advanced Features
**Form Filling**: See [FORMS.md](FORMS.md)
**API Reference**: See [reference.md](reference.md)
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.