Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

docs: Update all docs to reflect valid frontmatter fields

Jez81767b2bd05b
diff --git a/ONE_PAGE_CHECKLIST.md b/ONE_PAGE_CHECKLIST.md
index 9c625e19..bda48303 100644
--- a/ONE_PAGE_CHECKLIST.md
+++ b/ONE_PAGE_CHECKLIST.md
@@ -43,7 +43,7 @@ Research completed before building:
- [ ] **description**: Uses third-person ("This skill should be used when..." not "Use this skill when...")
- [ ] **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**: Max 1024 characters
**Description Quality:**
- [ ] Target: 250-350 chars (sweet spot for detail vs brevity)
@@ -51,26 +51,28 @@ Research completed before building:
- [ ] 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)
+- [ ] Keywords integrated into description text
- [ ] 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 needed
+- [ ] **allowed-tools** (optional): Included if restricting tool access
**Example:**
```yaml
---
name: my-skill-name
description: |
- This skill provides comprehensive knowledge for [technology]. It should be used when
- building projects with [use case], configuring [feature], or encountering [error].
+ Build [technology] projects with production-tested patterns. Covers [feature1],
+ [feature2], and [feature3].
- Keywords: technology, use-case, error-message, related-tech
-license: MIT
+ Use when: building [use case], configuring [feature], or troubleshooting
+ [error-message] errors.
---
```
+**Note**: Only `name`, `description`, and `allowed-tools` are valid frontmatter fields.
+Fields like `license:` and `metadata:` are NOT recognized by Claude Code.
+
---
## SKILL.MD BODY CHECKLIST
@@ -153,7 +155,7 @@ Skill meets official standards:
- [ ] Checked [planning/COMMON_MISTAKES.md](planning/COMMON_MISTAKES.md)
- [ ] Referenced working example (tailwind-v4-shadcn or Cloudflare skills)
- [ ] No deprecated patterns used
-- [ ] No non-standard frontmatter fields (except allowed-tools, metadata)
+- [ ] No non-standard frontmatter fields (ONLY name, description, allowed-tools are valid)
- [ ] Writing style consistent (imperative, third-person)
---
@@ -184,7 +186,6 @@ All required documentation present:
- [ ] SKILL.md complete
- [ ] README.md complete
-- [ ] LICENSE field in frontmatter
- [ ] Research log in planning/research-logs/
- [ ] Templates tested and documented
- [ ] Scripts documented with usage examples
diff --git a/commands/create-skill.md b/commands/create-skill.md
index a4e141d9..0929c3bf 100644
--- a/commands/create-skill.md
+++ b/commands/create-skill.md
@@ -160,6 +160,8 @@ Ask Claude Code: "Use the <skill-name> skill to..."
- Skills are symlinked to `~/.claude/skills/` for Claude Code to discover
- The [TODO] markers in SKILL.md are intentional - fill them all before committing
-- Description should be 250-350 characters with "Use when:" scenarios
-- Keywords in metadata improve discoverability
+- Description should be 250-350 characters (max 1024) with "Use when:" scenarios
+- Include keywords IN the description text (NOT in metadata - metadata field is not recognized)
+- ONLY valid frontmatter fields: `name`, `description`, `allowed-tools`
+- Do NOT use `license:` or `metadata:` - they break skill discovery
- Test with `check-metadata.sh` before committing
diff --git a/planning/COMMON_MISTAKES.md b/planning/COMMON_MISTAKES.md
index 4ed4ed7a..06410d28 100644
--- a/planning/COMMON_MISTAKES.md
+++ b/planning/COMMON_MISTAKES.md
@@ -2,7 +2,7 @@
**Purpose**: Learn from failures without experiencing them yourself
-**Last Updated**: 2025-10-21
+**Last Updated**: 2025-12-02
---
@@ -22,12 +22,10 @@ This skill helps you build stuff...
---
name: my-awesome-skill
description: |
- This skill provides comprehensive knowledge for building stuff.
-
- Use when: specific scenarios
+ Build stuff with production-tested patterns. Covers setup, configuration,
+ and common issues.
- Keywords: technology, use-case, errors
-license: MIT
+ Use when: building stuff, configuring things, or troubleshooting errors.
---
# My Awesome Skill
@@ -57,8 +55,9 @@ license MIT # ← Wrong: Use quotes or pipe for multiline
---
name: my-skill
description: |
- This skill provides...
-license: MIT
+ This skill provides production-tested patterns for X.
+
+ Use when: building X, configuring Y, or troubleshooting Z errors.
---
```
@@ -152,37 +151,42 @@ description: |
## STRUCTURE MISTAKES
-### Mistake #7: Non-Standard Frontmatter Fields
+### Mistake #7: Non-Standard Frontmatter Fields (CRITICAL - Dec 2025)
-❌ **WRONG** (Custom fields):
+❌ **WRONG** (Fields that BREAK discovery):
```yaml
---
name: my-skill
-version: 1.0.0 # ← Not in spec
-author: Me # ← Not in spec
-tags: # ← Not in spec
- - cloudflare
description: ...
+license: MIT # ← NOT RECOGNIZED - breaks discovery!
+metadata: # ← NOT RECOGNIZED - breaks discovery!
+ keywords: [...]
+ version: 1.0.0
---
```
-✅ **CORRECT** (Standard fields only):
+✅ **CORRECT** (ONLY these 3 fields are valid):
```yaml
---
name: my-skill
description: |
- ...
-license: MIT
-# Optional official fields:
-# allowed-tools: [bash, python]
-# metadata:
-# category: "cloudflare"
+ What it does and when to use it. Max 1024 chars.
+allowed-tools: # ← OPTIONAL - restricts tool access
+ - Read
+ - Glob
---
```
-**Impact**: Non-standard fields may be ignored or break future versions
+**Valid Fields (Dec 2025)**:
+| Field | Required | Notes |
+|-------|----------|-------|
+| `name` | Yes | Max 64 chars, lowercase-hyphen-case |
+| `description` | Yes | Max 1024 chars |
+| `allowed-tools` | No | Restricts which tools Claude can use |
+
+**Impact**: `license:` and `metadata:` fields **PREVENT SKILL DISCOVERY**
-**Real Example**: cloudflare-vectorize used custom fields - fixed in audit (2025-10-21)
+**Real Example**: fastmcp skill wasn't being discovered due to `license:` and `metadata:` fields - fixed in mass audit (2025-12-02, 58 skills affected)
---
@@ -481,14 +485,13 @@ Production-ready knowledge domain...
**AFTER** (Fixed):
```yaml
---
-name: Cloudflare Workers AI
+name: cloudflare-workers-ai
description: |
- This skill provides Workers AI knowledge...
+ Build AI inference with Cloudflare Workers AI. Covers model selection,
+ streaming responses, and binding configuration.
- Use when: implementing AI inference...
-
- Keywords: workers ai, llm, @cf/meta/llama...
-license: MIT
+ Use when: implementing AI inference, using @cf/meta/llama models, or
+ troubleshooting Workers AI errors.
---
# Cloudflare Workers AI - Complete Reference
@@ -497,34 +500,37 @@ license: MIT
---
-### Example 2: cloudflare-vectorize (Fixed 2025-10-21)
+### Example 2: All Skills (Fixed 2025-12-02)
-**BEFORE** (Non-standard):
+**BEFORE** (58 skills had this issue):
```yaml
---
-name: cloudflare-vectorize
-version: 1.0.0 # ← Custom field
-author: Jezweb # ← Custom field
-tags: [cloudflare, vectorize] # ← Custom field
-description: Complete guide...
+name: fastmcp
+description: |
+ Build MCP servers with FastMCP...
+license: MIT # ← NOT RECOGNIZED!
+metadata: # ← NOT RECOGNIZED!
+ version: "2.0.0"
+ keywords: [mcp, fastmcp]
---
```
-⚠️ Works but non-standard
+❌ Skills not being discovered due to invalid fields
**AFTER** (Standard):
```yaml
---
-name: Cloudflare Vectorize
+name: fastmcp
description: |
- This skill provides comprehensive knowledge...
+ Build MCP servers with FastMCP framework. Covers tools, resources,
+ storage backends, and OAuth Proxy.
- Use when: creating vector indexes...
-
- Keywords: vectorize, vector database, RAG...
-license: MIT
+ Use when: creating MCP servers, defining tools, or troubleshooting
+ module-level server errors.
---
```
-✅ Follows official spec
+✅ Only valid fields = proper discovery
+
+**Lesson**: z.o.rro reported fastmcp wasn't being discovered. Investigation revealed `license:` and `metadata:` fields are NOT recognized by Claude Code. Mass fix applied to 58 skills.
---
@@ -539,7 +545,7 @@ Before committing, verify you DIDN'T make these mistakes:
- [ ] ✅ Keywords comprehensive
- [ ] ✅ Third-person description
- [ ] ✅ Imperative instructions (not "you should")
-- [ ] ✅ Only standard frontmatter fields
+- [ ] ✅ Only valid frontmatter fields (name, description, allowed-tools)
- [ ] ✅ Package versions current
- [ ] ✅ Templates tested
- [ ] ✅ Error sources documented
diff --git a/planning/STANDARDS_COMPARISON.md b/planning/STANDARDS_COMPARISON.md
index cae7c424..ca14f8d0 100644
--- a/planning/STANDARDS_COMPARISON.md
+++ b/planning/STANDARDS_COMPARISON.md
@@ -1,8 +1,8 @@
# Official Anthropic Standards vs Our Approach
-**Last Updated**: 2025-10-21
-**Official Source**: https://github.com/anthropics/skills
-**Spec Version**: 1.0 (2025-10-16)
+**Last Updated**: 2025-12-02
+**Official Source**: https://code.claude.com/docs/en/skills.md
+**Spec Version**: Updated Dec 2025
---
@@ -30,17 +30,29 @@
---
-## Optional YAML Fields
+## Valid YAML Fields (Dec 2025 - CRITICAL UPDATE)
-### From agent_skills_spec.md
+### From Claude Code Documentation
+
+⚠️ **WARNING**: The official Claude Code skill parser ONLY recognizes these fields:
+
+| Field | Required | Max Length | Notes |
+|-------|----------|------------|-------|
+| **name** | ✅ Yes | 64 chars | Lowercase letters, numbers, hyphens |
+| **description** | ✅ Yes | 1024 chars | Must include what + when to use |
+| **allowed-tools** | ❌ No | - | Restricts tool access when skill active |
+
+### ❌ NOT Recognized (Will Break Discovery)
+
+| Field | Status | Impact |
+|-------|--------|--------|
+| **license** | NOT RECOGNIZED | May prevent skill discovery |
+| **metadata** | NOT RECOGNIZED | May prevent skill discovery |
+| **Any custom field** | NOT RECOGNIZED | May prevent skill discovery |
-| Field | Official Spec | Our Approach | Notes |
-|-------|---------------|--------------|-------|
-| **license** | Optional | ✅ We use MIT | Recommended |
-| **allowed-tools** | Optional (Claude Code only) | ⚠️ Not yet using | Can add when needed |
-| **metadata** | Optional (key-value map) | ⚠️ Not yet using | Can add custom fields |
+**Lesson Learned (Dec 2025)**: We had `license: MIT` and `metadata:` blocks in 58 skills. User z.o.rro reported fastmcp wasn't being discovered. Investigation revealed these fields break Claude Code's skill parser. Mass fix applied.
-**Verdict**: ✅ **COMPATIBLE** - We can add these anytime without breaking anything
+**Verdict**: ⚠️ **CORRECTED** - Only use name, description, allowed-tools
---
diff --git a/planning/claude-code-skill-standards.md b/planning/claude-code-skill-standards.md
index fbb914cc..3e1262ae 100644
--- a/planning/claude-code-skill-standards.md
+++ b/planning/claude-code-skill-standards.md
@@ -1,7 +1,7 @@
# Claude Code Skill Standards
-**Last Updated**: 2025-10-20
-**Source**: https://docs.claude.com/en/docs/claude-code/skills
+**Last Updated**: 2025-12-02
+**Source**: https://code.claude.com/docs/en/skills.md
**Reference Skill**: ~/.claude/skills/tailwind-v4-shadcn/
---
@@ -34,22 +34,33 @@ Skills are modular capabilities stored in `~/.claude/skills/` that Claude Code a
### YAML Frontmatter (Top of File)
+**IMPORTANT: Valid Frontmatter Fields (Dec 2025)**
+
+| Field | Required | Max Length | Notes |
+|-------|----------|------------|-------|
+| `name` | ✅ Yes | 64 chars | Lowercase letters, numbers, hyphens only |
+| `description` | ✅ Yes | 1024 chars | Must include what + when to use |
+| `allowed-tools` | ❌ No | - | Restricts tool access when skill active |
+
+**⚠️ Invalid Fields** (will prevent skill discovery):
+- `license:` - NOT recognized
+- `metadata:` - NOT recognized
+- Any other custom fields - NOT recognized
+
```yaml
---
-name: Skill Display Name
+name: my-skill-name
description: |
What the skill does and when Claude should use it.
Use when: specific scenarios where this skill applies.
-
- Keywords: keyword1, keyword2, error messages, technology names
---
```
**Critical**: The `description` field determines when Claude uses the skill. It MUST include:
- What the skill does
- When Claude should use it
-- Keywords for discovery
+- Keywords integrated into the text
### Markdown Content (After Frontmatter)