Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
docs: Add description optimization guidelines based on skills #1-20 learnings
Jez0bfd86884fb4
diff --git a/CLAUDE.md b/CLAUDE.mdindex d7568b61..9f63e026 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -46,6 +46,7 @@ This repo aligns with **official Anthropic standards**:claude-skills/├── START_HERE.md # ← Read this first!├── CLAUDE.md # ← You are here+├── GEMINI_GUIDE.md # AI agent onboarding guide├── ONE_PAGE_CHECKLIST.md # Quick verification├── QUICK_WORKFLOW.md # 5-minute skill creation├── README.md # Public-facing overview@@ -233,10 +234,37 @@ git add skills/my-skill/.claude-plugin/ && git commit -m "Add marketplace manife- See [planning/STANDARDS_COMPARISON.md](planning/STANDARDS_COMPARISON.md)### 4. Progressive Disclosure-- **Metadata** (name + description): Always in context (~100 words)+- **Metadata** (name + description): Always in context (target: 250-350 chars, ~40-55 tokens)- **SKILL.md body**: Loaded when skill triggers (<5k words)- **Bundled resources**: Loaded as needed by Claude+#### Description Best Practices++After optimizing 20+ skills, these patterns work best:++**Length:** 250-350 characters is the sweet spot+- Below 200: Often too terse, loses context+- 200-400: Target range+- Above 400: Usually has redundancy to trim++**Structure:** Two-paragraph format for clarity+- Paragraph 1: What you can build + key features+- Paragraph 2: When to use + error keywords++**Discoverability:** Balance specificity with brevity+- Include technology names explicitly+- Preserve unique selling points+- Add 2-3 distinctive error keywords+- Move comprehensive keywords to metadata.keywords++**Avoid:**+- Dense comma-separated lists+- Passive voice constructions+- Meta-commentary about the skill+- Over-compression that hurts readability++**Examples:** See ai-sdk-core, auto-animate, cloudflare-mcp-server+---## Commands & Scriptsdiff --git a/ONE_PAGE_CHECKLIST.md b/ONE_PAGE_CHECKLIST.mdindex bb62cddd..9c625e19 100644--- a/ONE_PAGE_CHECKLIST.md+++ b/ONE_PAGE_CHECKLIST.md@@ -44,6 +44,17 @@ Research completed before building:- [ ] **description**: Includes "Use when" scenarios- [ ] **description**: Includes keywords (technologies, use cases, error messages)- [ ] **license**: Present (e.g., `MIT` or `Complete terms in LICENSE.txt`)++**Description Quality:**+- [ ] Target: 250-350 chars (sweet spot for detail vs brevity)+- [ ] Structure: Action verb opening + "Use when:" section+- [ ] Two-paragraph format if complex (warnings, USPs)+- [ ] No passive voice ("This skill provides...")+- [ ] No meta-commentary ("INCLUDES CRITICAL...")+- [ ] Keywords moved to metadata.keywords (not inline)+- [ ] Readable aloud without running out of breath+- [ ] Preserves unique selling points ("only", "official")+- [ ] Critical warnings naturalized (not "CRITICAL:")- [ ] **allowed-tools** (optional): Included if pre-approving tools- [ ] **metadata** (optional): Used if custom fields neededdiff --git a/planning/claude-code-skill-standards.md b/planning/claude-code-skill-standards.mdindex 7949a181..fbb914cc 100644--- a/planning/claude-code-skill-standards.md+++ b/planning/claude-code-skill-standards.md@@ -223,25 +223,82 @@ description: |----## Best Practices+## Description Optimization Guidelines++After optimizing 20+ production skills, these patterns consistently deliver the best results:++### Target Metrics++- **Length**: 250-350 characters (sweet spot, not strict 200 minimum)+- **Structure**: Two-paragraph format for complex skills+- **Token efficiency**: 60-80% reduction typical++### Proven Pattern-### Description Field-✅ **Good**:```yamldescription: |- Sets up Cloudflare Workers with Vite, Hono routing, and Static Assets.+ [Action verb] [what you build] with [technology]. [Key features/USP in one sentence].- Use when: creating new CF Workers projects, adding Vite to existing Workers,- or encountering "Static Assets 404" errors.+ Use when: [3-5 specific scenarios], or troubleshooting [2-3 distinctive errors].+```++### What to Remove++- Passive voice ("This skill provides...", "Should be used when...")+- Inline keywords (move to metadata.keywords)+- Exhaustive feature lists (keep 3-5 key ones)+- Error count enumerations ("Prevents 13 errors including...")+- Meta-commentary ("INCLUDES CRITICAL GUIDANCE:")++### What to Preserve++- Core technology names+- Unique selling points ("only platform", "official support")+- Critical architectural warnings (naturalize them)+- Distinctive error keywords (2-3 most common)+- Framework/language specificity++### Two-Paragraph Format (for complex skills)++```yaml+description: |+ [Main description with features/capabilities].- Keywords: Cloudflare Workers, CF Workers, Hono, wrangler, Vite, Static Assets+ [Critical warning OR unique selling point].++ Use when: [scenarios and errors].```+### Quality Criteria++- Can read aloud without running out of breath+- No comma-heavy run-on lists+- Proper sentence structure and punctuation+- Keywords discoverable but not overwhelming++### Examples to Reference++- ✅ **Good**: ai-sdk-core, auto-animate, cloudflare-d1+- ⚠️ **Revised**: clerk-auth (was too compressed), cloudflare-agents (warning naturalized)++### Before/After Example+❌ **Bad**:```yamldescription: "Cloudflare Workers skill"```+✅ **Good**:+```yaml+description: |+ Sets up Cloudflare Workers with Vite, Hono routing, and Static Assets.++ Use when: creating new CF Workers projects, adding Vite to existing Workers,+ or encountering "Static Assets 404" errors.+```++## Best Practices+### Instructions✅ **Good**: Step-by-step with code examples❌ **Bad**: Vague descriptions without specifics