Skip to content

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

Fix Cloudflare skills YAML frontmatter compliance

Jez491aacbbbfd3
diff --git a/CLOUDFLARE_SKILLS_AUDIT.md b/CLOUDFLARE_SKILLS_AUDIT.md
new file mode 100644
index 00000000..ec54a146
--- /dev/null
+++ b/CLOUDFLARE_SKILLS_AUDIT.md
@@ -0,0 +1,416 @@
+# Cloudflare Skills Audit Report
+
+**Date**: 2025-10-21
+**Auditor**: Claude Code (Sonnet 4.5)
+**Skills Audited**: 7 Cloudflare skills
+**Standards Reference**: `/planning/claude-code-skill-standards.md`
+
+---
+
+## Executive Summary
+
+**Overall Status**: 5/7 skills are compliant ✅ | 2/7 skills need fixes ⚠️
+
+### Critical Issues Found
+1. **cloudflare-workers-ai**: Missing YAML frontmatter entirely ❌ (CRITICAL)
+2. **cloudflare-vectorize**: Non-standard YAML frontmatter format ⚠️ (MODERATE)
+
+### Compliance Summary
+
+| Skill | YAML Frontmatter | README | Templates | Reference | Version Docs | Status |
+|-------|------------------|--------|-----------|-----------|--------------|--------|
+| cloudflare-worker-base | ✅ | ✅ | ✅ | ✅ | ✅ | **PASS** |
+| cloudflare-d1 | ✅ | ✅ | ✅ | ✅ | ✅ | **PASS** |
+| cloudflare-r2 | ✅ | ✅ | ✅ | ✅ | ✅ | **PASS** |
+| cloudflare-kv | ✅ | ✅ | ✅ | ✅ | ✅ | **PASS** |
+| cloudflare-workers-ai | ❌ | ✅ | ✅ | ✅ | ⚠️ | **FAIL** |
+| cloudflare-vectorize | ⚠️ | ✅ | ✅ | ✅ | ⚠️ | **WARNING** |
+| cloudflare-queues | ✅ | ✅ | ✅ | ✅ | ✅ | **PASS** |
+
+---
+
+## Detailed Findings
+
+### 1. cloudflare-worker-base ✅ PASS
+
+**Status**: Production Ready
+**Compliance**: 100%
+
+**Strengths**:
+- ✅ Perfect YAML frontmatter with comprehensive description
+- ✅ README with extensive auto-trigger keywords
+- ✅ Complete templates directory
+- ✅ Reference documentation (architecture.md, common-issues.md, deployment.md)
+- ✅ Version numbers documented ([email protected], @cloudflare/[email protected])
+- ✅ 6 known issues with GitHub sources
+- ✅ Production example deployed: https://cloudflare-worker-base-test.webfonts.workers.dev
+- ✅ Token savings: ~60%
+
+**YAML Frontmatter**:
+```yaml
+---
+name: Cloudflare Worker Base Stack
+description: |
+ Production-tested setup for Cloudflare Workers with Hono, Vite, and Static Assets.
+
+ Use when: creating new Cloudflare Workers projects, setting up Hono routing...
+
+ Keywords: Cloudflare Workers, CF Workers, Hono, wrangler, Vite...
+---
+```
+
+**Recommendation**: No changes needed. This is the gold standard for other skills.
+
+---
+
+### 2. cloudflare-d1 ✅ PASS
+
+**Status**: Production Ready
+**Compliance**: 100%
+
+**Strengths**:
+- ✅ Proper YAML frontmatter
+- ✅ README with auto-trigger keywords
+- ✅ Complete templates directory
+- ✅ Reference documentation
+- ✅ Latest versions documented ([email protected], @cloudflare/[email protected])
+- ✅ Dependencies clearly stated (cloudflare-worker-base)
+- ✅ Token savings: ~58%
+
+**YAML Frontmatter**:
+```yaml
+---
+name: Cloudflare D1 Database
+description: |
+ Complete knowledge domain for Cloudflare D1 - serverless SQLite database...
+
+ Use when: creating D1 databases, writing SQL migrations...
+
+ Keywords: d1, d1 database, cloudflare d1, wrangler d1...
+---
+```
+
+**Recommendation**: No changes needed.
+
+---
+
+### 3. cloudflare-r2 ✅ PASS
+
+**Status**: Production Ready
+**Compliance**: 100%
+
+**Strengths**:
+- ✅ Proper YAML frontmatter
+- ✅ README with comprehensive keywords
+- ✅ Templates directory with upload/download examples
+- ✅ Reference documentation
+- ✅ Latest versions documented ([email protected])
+- ✅ Token savings: ~60%
+
+**YAML Frontmatter**:
+```yaml
+---
+name: Cloudflare R2 Object Storage
+description: |
+ Complete knowledge domain for Cloudflare R2 - S3-compatible object storage...
+
+ Use when: creating R2 buckets, uploading files to R2...
+
+ Keywords: r2, r2 storage, cloudflare r2, r2 bucket...
+---
+```
+
+**Recommendation**: No changes needed.
+
+---
+
+### 4. cloudflare-kv ✅ PASS
+
+**Status**: Production Ready
+**Compliance**: 100%
+
+**Strengths**:
+- ✅ Proper YAML frontmatter
+- ✅ README with keywords
+- ✅ Templates directory
+- ✅ Reference documentation
+- ✅ Latest versions documented
+- ✅ Token savings: ~55%
+
+**YAML Frontmatter**:
+```yaml
+---
+name: Cloudflare Workers KV
+description: |
+ Complete knowledge domain for Cloudflare Workers KV - global, low-latency key-value storage...
+
+ Use when: creating KV namespaces, storing configuration data...
+
+ Keywords: kv storage, cloudflare kv, workers kv...
+---
+```
+
+**Recommendation**: No changes needed.
+
+---
+
+### 5. cloudflare-workers-ai ❌ FAIL
+
+**Status**: Non-Compliant
+**Compliance**: 60%
+
+**CRITICAL ISSUE**: Missing YAML frontmatter entirely
+
+**Current SKILL.md header**:
+```markdown
+# Cloudflare Workers AI - Complete Reference
+
+Production-ready knowledge domain for building AI-powered applications with Cloudflare Workers AI.
+
+---
+```
+
+**What's wrong**:
+- ❌ NO YAML frontmatter at all
+- ❌ Without frontmatter, Claude Code **cannot discover this skill**
+- ❌ The skill is essentially invisible to the skill system
+
+**What's good**:
+- ✅ README with comprehensive keywords
+- ✅ Templates directory
+- ✅ Reference documentation
+- ✅ Good content quality
+
+**Required Fix**:
+Add YAML frontmatter to the top of SKILL.md:
+
+```yaml
+---
+name: Cloudflare Workers AI
+description: |
+ Complete knowledge domain for Cloudflare Workers AI - Run AI models on serverless GPUs across Cloudflare's global network.
+
+ Use when: implementing AI inference on Workers, running LLM models, generating text/images with AI,
+ configuring Workers AI bindings, implementing AI streaming, using AI Gateway, or encountering
+ "AI_ERROR", rate limit errors, model not found, token limit exceeded, or neurons exceeded errors.
+
+ Keywords: workers ai, cloudflare ai, ai bindings, llm workers, @cf/meta/llama, workers ai models,
+ ai inference, cloudflare llm, ai streaming, text generation ai, ai embeddings, image generation ai,
+ workers ai rag, ai gateway, llama workers, flux image generation, stable diffusion workers,
+ vision models ai, ai chat completion, AI_ERROR, rate limit ai, model not found, token limit exceeded
+---
+
+# Cloudflare Workers AI - Complete Reference
+...
+```
+
+**Priority**: CRITICAL - Must fix immediately
+
+---
+
+### 6. cloudflare-vectorize ⚠️ WARNING
+
+**Status**: Functional but Non-Standard
+**Compliance**: 80%
+
+**ISSUE**: Extended YAML frontmatter with non-standard fields
+
+**Current frontmatter**:
+```yaml
+---
+name: cloudflare-vectorize
+version: 1.0.0
+description: Complete guide for Cloudflare Vectorize - vector database...
+author: Jezweb
+tags:
+ - cloudflare
+ - vectorize
+ - vector-database
+ - embeddings
+category: cloudflare
+status: production
+token_savings: 65%
+errors_prevented: 8
+dev_time_saved: 2.5 hours
+---
+```
+
+**What's wrong**:
+- ⚠️ Includes non-standard fields: `version`, `author`, `tags`, `category`, `status`, `token_savings`, `errors_prevented`, `dev_time_saved`
+- ⚠️ Official standard only requires `name` and `description`
+- ⚠️ Extra fields may be ignored by Claude Code
+- ⚠️ Creates inconsistency with other skills
+
+**What's good**:
+- ✅ Has `name` and `description` (core requirements met)
+- ✅ README with comprehensive keywords
+- ✅ Templates directory
+- ✅ Reference documentation
+- ✅ Examples directory
+
+**Recommended Fix**:
+Simplify to standard format and move metadata to README:
+
+```yaml
+---
+name: Cloudflare Vectorize
+description: |
+ Complete knowledge domain for Cloudflare Vectorize - globally distributed vector database for building
+ semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications.
+
+ Use when: creating vector indexes, inserting embeddings, querying vectors, implementing semantic search,
+ building RAG systems, configuring metadata filtering, or encountering metadata index timing errors,
+ dimension mismatches, or filter syntax issues.
+
+ Keywords: vectorize, vector database, vector index, vector search, similarity search, semantic search,
+ RAG, retrieval augmented generation, bge-base, @cf/baai/bge-base-en-v1.5, Workers AI embeddings,
+ text-embedding-3-small, insert vectors, upsert vectors, query vectors, metadata filtering, topK search,
+ cosine similarity, euclidean distance, wrangler vectorize, metadata index
+---
+```
+
+Move extra metadata to README.md:
+```markdown
+**Status**: Production Ready ✅
+**Last Updated**: 2025-10-21
+**Token Savings**: ~65%
+**Errors Prevented**: 8
+**Dev Time Saved**: 2.5 hours
+```
+
+**Priority**: MODERATE - Should fix for consistency
+
+---
+
+### 7. cloudflare-queues ✅ PASS
+
+**Status**: Production Ready
+**Compliance**: 100%
+
+**Strengths**:
+- ✅ Proper YAML frontmatter
+- ✅ README with keywords
+- ✅ Templates directory
+- ✅ Reference documentation
+- ✅ Latest versions documented
+- ✅ Token savings: ~50%
+
+**YAML Frontmatter**:
+```yaml
+---
+name: Cloudflare Queues
+description: |
+ Complete knowledge domain for Cloudflare Queues - flexible message queue...
+
+ Use when: creating message queues, async processing...
+
+ Keywords: cloudflare queues, queues workers, message queue...
+---
+```
+
+**Recommendation**: No changes needed.
+
+---
+
+## Package Version Verification
+
+**Latest Verified Versions** (as of 2025-10-21):
+- `wrangler`: **4.43.0** ✅
+- `@cloudflare/workers-types`: **4.20251014.0** ✅
+- `hono`: **4.10.1** ✅ (documented in cloudflare-worker-base)
+- `@cloudflare/vite-plugin`: **1.13.13** ✅ (documented in cloudflare-worker-base)
+- `aws4fetch`: **1.0.20** ✅ (documented in cloudflare-r2)
+
+All skills reference current package versions. ✅
+
+---
+
+## Standards Compliance Checklist
+
+### Required Elements (Per Official Standards)
+
+| Requirement | worker-base | d1 | r2 | kv | workers-ai | vectorize | queues |
+|-------------|-------------|----|----|----|-----------|-----------|----|
+| SKILL.md exists | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| Valid YAML frontmatter | ✅ | ✅ | ✅ | ✅ | ❌ | ⚠️ | ✅ |
+| `name` field | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
+| `description` field | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
+| "Use when" scenarios | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
+| Keywords in description | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
+| Clear instructions | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
+
+### Optional Elements (Our Additions)
+
+| Element | worker-base | d1 | r2 | kv | workers-ai | vectorize | queues |
+|---------|-------------|----|----|----|-----------|-----------|----|
+| README.md | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| templates/ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| reference/ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| Version documentation | ✅ | ✅ | ✅ | ✅ | ⚠️ | ⚠️ | ✅ |
+| Official docs linked | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| Known issues sourced | ✅ | ✅ | ✅ | ✅ | N/A | ✅ | ✅ |
+
+---
+
+## Recommendations
+
+### Immediate Actions Required
+
+1. **cloudflare-workers-ai** (CRITICAL):
+ - Add YAML frontmatter to SKILL.md
+ - Include comprehensive `description` with "Use when" and keywords
+ - Test skill discovery after fix
+
+2. **cloudflare-vectorize** (MODERATE):
+ - Simplify YAML frontmatter to standard format
+ - Move extra metadata to README.md
+ - Ensure consistency with other skills
+
+### Suggested Improvements (All Skills)
+
+1. **Standardize README format**:
+ - Add "Status", "Last Updated", "Production Example" headers (like cloudflare-worker-base)
+ - Makes it easier to see skill quality at a glance
+
+2. **Add production examples**:
+ - cloudflare-worker-base has deployed example (excellent!)
+ - Consider adding deployed examples for D1, R2, KV, Vectorize, Queues
+
+3. **Version update schedule**:
+ - Set quarterly reminder to check package versions
+ - Update "Last Updated" dates when verified
+
+4. **Cross-references**:
+ - Add "Dependencies" section to all skills
+ - Help users understand skill composition
+
+---
+
+## Conclusion
+
+**Overall Quality**: High ✅
+
+The Cloudflare skills collection is well-structured and follows best practices. 5 out of 7 skills are fully compliant with official Claude Code standards.
+
+**Critical Issue**: The cloudflare-workers-ai skill is currently invisible to Claude Code due to missing YAML frontmatter. This must be fixed immediately.
+
+**Moderate Issue**: The cloudflare-vectorize skill uses non-standard frontmatter fields which should be simplified for consistency.
+
+Once these two issues are addressed, all 7 Cloudflare skills will be production-ready and fully compliant.
+
+---
+
+## Next Steps
+
+1. Fix cloudflare-workers-ai YAML frontmatter ⚠️ CRITICAL
+2. Fix cloudflare-vectorize YAML frontmatter ⚠️ MODERATE
+3. Optional: Standardize README formats across all skills
+4. Optional: Add deployed examples for remaining skills
+5. Update ATOMIC-SKILLS-SUMMARY.md to reflect audit results
+6. Commit fixes to Git with detailed changelog
+
+---
+
+**Audit Complete** ✅
+**Date**: 2025-10-21
+**Next Review**: 2026-01-21 (quarterly)
diff --git a/skills/cloudflare-vectorize/SKILL.md b/skills/cloudflare-vectorize/SKILL.md
index f88f5c4e..d1b47a8e 100644
--- a/skills/cloudflare-vectorize/SKILL.md
+++ b/skills/cloudflare-vectorize/SKILL.md
@@ -1,28 +1,35 @@
---
-name: cloudflare-vectorize
-version: 1.0.0
-description: Complete guide for Cloudflare Vectorize - vector database for semantic search, RAG, and AI-powered applications
-author: Jezweb
-tags:
- - cloudflare
- - vectorize
- - vector-database
- - embeddings
- - semantic-search
- - RAG
- - workers-ai
- - openai
-category: cloudflare
-status: production
-token_savings: 65%
-errors_prevented: 8
-dev_time_saved: 2.5 hours
+name: Cloudflare Vectorize
+description: |
+ Complete knowledge domain for Cloudflare Vectorize - globally distributed vector database for building
+ semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications.
+
+ Use when: creating vector indexes, inserting embeddings, querying vectors, implementing semantic search,
+ building RAG systems, configuring metadata filtering, working with Workers AI embeddings, integrating
+ with OpenAI embeddings, or encountering metadata index timing errors, dimension mismatches, filter
+ syntax issues, or insert vs upsert confusion.
+
+ Keywords: vectorize, vector database, vector index, vector search, similarity search, semantic search,
+ nearest neighbor, knn search, ann search, RAG, retrieval augmented generation, chat with data,
+ document search, semantic Q&A, context retrieval, bge-base, @cf/baai/bge-base-en-v1.5,
+ text-embedding-3-small, text-embedding-3-large, Workers AI embeddings, openai embeddings,
+ insert vectors, upsert vectors, query vectors, delete vectors, metadata filtering, namespace filtering,
+ topK search, cosine similarity, euclidean distance, dot product, wrangler vectorize, metadata index,
+ create vectorize index, vectorize dimensions, vectorize metric, vectorize binding
---
-# Cloudflare Vectorize Skill
+# Cloudflare Vectorize
Complete implementation guide for Cloudflare Vectorize - a globally distributed vector database for building semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications with Cloudflare Workers.
+**Status**: Production Ready ✅
+**Last Updated**: 2025-10-21
+**Dependencies**: cloudflare-worker-base (for Worker setup), cloudflare-workers-ai (for embeddings)
+**Latest Versions**: [email protected], @cloudflare/[email protected]
+**Token Savings**: ~65%
+**Errors Prevented**: 8
+**Dev Time Saved**: ~3 hours
+
## What This Skill Provides
### Core Capabilities
diff --git a/skills/cloudflare-workers-ai/SKILL.md b/skills/cloudflare-workers-ai/SKILL.md
index e4e16842..bd3e387d 100644
--- a/skills/cloudflare-workers-ai/SKILL.md
+++ b/skills/cloudflare-workers-ai/SKILL.md
@@ -1,7 +1,30 @@
+---
+name: Cloudflare Workers AI
+description: |
+ Complete knowledge domain for Cloudflare Workers AI - Run AI models on serverless GPUs across Cloudflare's global network.
+
+ Use when: implementing AI inference on Workers, running LLM models, generating text/images with AI,
+ configuring Workers AI bindings, implementing AI streaming, using AI Gateway, integrating with
+ embeddings/RAG systems, or encountering "AI_ERROR", rate limit errors, model not found, token
+ limit exceeded, or neurons exceeded errors.
+
+ Keywords: workers ai, cloudflare ai, ai bindings, llm workers, @cf/meta/llama, workers ai models,
+ ai inference, cloudflare llm, ai streaming, text generation ai, ai embeddings, image generation ai,
+ workers ai rag, ai gateway, llama workers, flux image generation, stable diffusion workers,
+ vision models ai, ai chat completion, AI_ERROR, rate limit ai, model not found, token limit exceeded,
+ neurons exceeded, ai quota exceeded, streaming failed, model unavailable, workers ai hono,
+ ai gateway workers, vercel ai sdk workers, openai compatible workers, workers ai vectorize
+---
+
# Cloudflare Workers AI - Complete Reference
Production-ready knowledge domain for building AI-powered applications with Cloudflare Workers AI.
+**Status**: Production Ready ✅
+**Last Updated**: 2025-10-21
+**Dependencies**: cloudflare-worker-base (for Worker setup)
+**Latest Versions**: [email protected], @cloudflare/[email protected]
+
---
## Table of Contents