Skip to content

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

Add comprehensive skill review system (skill-review v1.0.0)

Jezeebe4d85f418
diff --git a/ONE_PAGE_CHECKLIST.md b/ONE_PAGE_CHECKLIST.md
index ef6acbad..bb62cddd 100644
--- a/ONE_PAGE_CHECKLIST.md
+++ b/ONE_PAGE_CHECKLIST.md
@@ -262,6 +262,21 @@ Quarterly (every 3 months):
---
+## PERIODIC REVIEW ⏰
+
+For maintaining skill quality over time:
+
+- [ ] Run deep-dive review quarterly: `/review-skill <skill-name>`
+- [ ] After major package updates: Check GitHub changelog + run review
+- [ ] Before marketplace submission: Full audit required
+- [ ] Address all 🔴 Critical and 🟡 High issues found
+- [ ] Update "Last Verified" date in metadata after review
+- [ ] Create research log if significant research performed
+
+**Review Process**: See `planning/SKILL_REVIEW_PROCESS.md` for complete guide
+
+---
+
## FINAL SIGN-OFF
I certify that:
diff --git a/planning/SKILL_REVIEW_PROCESS.md b/planning/SKILL_REVIEW_PROCESS.md
new file mode 100644
index 00000000..e73536bf
--- /dev/null
+++ b/planning/SKILL_REVIEW_PROCESS.md
@@ -0,0 +1,1274 @@
+# Skill Review Process
+
+**Version**: 1.0.0
+**Last Updated**: 2025-11-08
+**Purpose**: Comprehensive deep-dive documentation review for claude-skills
+**Usage**: `/review-skill <skill-name>` or invoke `skill-review` skill
+
+---
+
+## Table of Contents
+
+1. [Introduction](#introduction)
+2. [When to Run a Review](#when-to-run-a-review)
+3. [Phase 1: Pre-Review Setup](#phase-1-pre-review-setup)
+4. [Phase 2: Standards Compliance](#phase-2-standards-compliance)
+5. [Phase 3: Official Documentation Verification](#phase-3-official-documentation-verification)
+6. [Phase 4: Code Examples & Templates Audit](#phase-4-code-examples--templates-audit)
+7. [Phase 5: Cross-File Consistency](#phase-5-cross-file-consistency)
+8. [Phase 6: Dependencies & Versions](#phase-6-dependencies--versions)
+9. [Phase 7: Issue Categorization](#phase-7-issue-categorization)
+10. [Phase 8: Fix Implementation](#phase-8-fix-implementation)
+11. [Phase 9: Post-Fix Verification](#phase-9-post-fix-verification)
+12. [Appendix A: Common Issue Patterns](#appendix-a-common-issue-patterns)
+13. [Appendix B: Example Audit Report](#appendix-b-example-audit-report)
+
+---
+
+## Introduction
+
+### Purpose
+
+This document defines the comprehensive process for performing deep-dive documentation reviews of skills in the claude-skills repository. A skill review systematically validates technical accuracy, documentation quality, and standards compliance.
+
+### What This Process Catches
+
+**Critical Issues**:
+- Non-existent API methods/adapters
+- Incorrect import statements
+- Incompatible package versions
+- Missing required dependencies
+- Invalid YAML frontmatter
+
+**High-Priority Issues**:
+- Contradictory examples across files
+- Inconsistent schema structures
+- Outdated setup scripts
+- Broken links to documentation
+- API method inconsistencies
+
+**Medium-Priority Issues**:
+- Stale package versions (>90 days)
+- Missing code comments
+- Vague instructions
+- Incomplete error documentation
+
+**Low-Priority Issues**:
+- Formatting inconsistencies
+- Missing optional metadata
+- Non-critical typos
+- Suboptimal organization
+
+### Design Principles
+
+1. **Official Docs First** - Always verify against official documentation
+2. **Evidence-Based** - Every issue must cite a source (GitHub URL, docs link, npm changelog)
+3. **No Assumptions** - Verify claims with current data, don't rely on memory
+4. **Minimal User Friction** - Fix unambiguous issues automatically, ask only when necessary
+5. **Systematic** - Same checklist every time for reproducible results
+6. **Documented** - Maintain audit trail in research logs and commit messages
+
+---
+
+## When to Run a Review
+
+### Triggers
+
+**Required**:
+- Major package version updates (e.g., better-auth 1.x → 2.x)
+- User reports errors following skill instructions
+- Before marketplace submission
+
+**Recommended**:
+- Skill last verified >90 days ago
+- After framework breaking changes
+- When adding new features to skill
+- Quarterly maintenance (every 3 months)
+
+**On-Demand**:
+- Suspected issues or outdated examples
+- Investigating user feedback
+- Quality assurance before release
+
+### Review Types
+
+**Quick Review** (1-1.5 hours):
+- Automated checks only
+- Spot verification of key sections
+- Version currency check
+- Best for: Minor updates, quarterly maintenance
+
+**Deep Review** (2-4 hours):
+- All 9 phases completed
+- Comprehensive verification
+- Full remediation
+- Best for: Major updates, suspected issues, new skills
+
+---
+
+## Phase 1: Pre-Review Setup
+
+**Time**: 5-10 minutes
+**Purpose**: Establish baseline and prepare environment
+
+### Step 1.1: Install Skill Locally
+
+```bash
+./scripts/install-skill.sh <skill-name>
+```
+
+**Verify**:
+- Skill appears in `~/.claude/skills/<skill-name>/`
+- SKILL.md is readable
+- No installation errors
+
+### Step 1.2: Identify Current Version
+
+Read `skills/<skill-name>/SKILL.md` and extract:
+- `metadata.version` (e.g., 1.0.0, 2.0.0)
+- `metadata.last_verified` (date)
+- `metadata.production_tested` (evidence)
+
+**Record**:
+```
+Current version: X.X.X
+Last verified: YYYY-MM-DD
+Production tested: [evidence or "none"]
+```
+
+### Step 1.3: Check Discovery
+
+Test if skill is discoverable by Claude:
+
+```bash
+# In Claude Code, type a trigger phrase
+"Use the <skill-name> skill to..."
+```
+
+**Expected**: Claude should recognize and propose using the skill
+
+**If fails**: Check YAML frontmatter and keywords
+
+### Step 1.4: Gather Context
+
+Read:
+- `skills/<skill-name>/README.md` - Quick reference
+- `planning/research-logs/<skill-name>.md` - Previous research (if exists)
+- GitHub issues related to the underlying package
+
+---
+
+## Phase 2: Standards Compliance
+
+**Time**: 10-15 minutes
+**Purpose**: Validate against official Anthropic skill standards
+
+### Step 2.1: YAML Frontmatter Validation
+
+**Location**: `skills/<skill-name>/SKILL.md` (lines 1-50 typically)
+
+**Required fields**:
+```yaml
+---
+name: skill-name # Must match directory name
+description: | # Multi-line, includes "Use when" scenarios
+ [description]
+license: MIT # Required by Anthropic standards
+---
+```
+
+**Check**:
+- ✅ `name` matches directory name exactly
+- ✅ `description` is multi-line (>100 words)
+- ✅ `description` includes "Use when" scenarios
+- ✅ `license` field present (usually MIT)
+- ✅ YAML syntax is valid (no tabs, proper indentation)
+
+**Optional but recommended**:
+```yaml
+metadata:
+ version: 1.0.0
+ last_verified: 2025-11-08
+ production_tested: [evidence]
+ package_version: X.X.X
+ token_savings: ~XX%
+ errors_prevented: XX
+ official_docs: [url]
+```
+
+**Validation command**:
+```bash
+# Use script's YAML check
+./scripts/review-skill.sh <skill-name> | grep "YAML"
+```
+
+### Step 2.2: Keywords Check
+
+**Location**: SKILL.md frontmatter or description
+
+**Required**: Comprehensive keyword list covering:
+- Package names (e.g., "better-auth", "drizzle-orm")
+- Technology stack (e.g., "cloudflare d1", "typescript")
+- Use cases (e.g., "authentication", "self-hosted auth")
+- Common searches (e.g., "clerk alternative", "d1 adapter")
+- Error patterns (e.g., "session serialization error", "cors auth")
+
+**Check**:
+- ✅ 20+ relevant keywords
+- ✅ Include package name
+- ✅ Include common alternatives/competitors
+- ✅ Include error messages users might search
+
+**Bad example**:
+```yaml
+Keywords: auth, database
+```
+
+**Good example**:
+```yaml
+Keywords: better-auth, authentication, cloudflare d1 auth, drizzle orm auth, kysely auth, self-hosted auth, typescript auth, clerk alternative, auth.js alternative, social login, oauth providers, session management, jwt tokens, 2fa, two-factor, passkeys, webauthn, d1 adapter
+```
+
+### Step 2.3: Description Quality
+
+**Location**: SKILL.md frontmatter `description`
+
+**Requirements**:
+- Third-person perspective ("This skill..." not "You will...")
+- Includes "Use this skill when:" scenarios
+- Mentions what it prevents/solves
+- 100-200 words
+- Lists key features
+
+**Check**:
+- ✅ Third-person style
+- ✅ Clear use-case scenarios
+- ✅ Problem/solution framing
+- ✅ Appropriate length
+
+**Bad example**:
+```
+You should use this when you need auth. It helps you set up authentication.
+```
+
+**Good example**:
+```
+Production-ready authentication framework for TypeScript with Cloudflare D1 support via Drizzle ORM or Kysely. Use this skill when building auth systems as a self-hosted alternative to Clerk or Auth.js, particularly for Cloudflare Workers projects. CRITICAL: better-auth requires Drizzle ORM or Kysely as database adapters - there is NO direct D1 adapter. Supports social providers, email/password, magic links, 2FA, passkeys, organizations, and RBAC. Prevents 12+ common authentication errors including D1 adapter misconfiguration, schema generation issues, session serialization, CORS, OAuth flows, and JWT token handling.
+```
+
+### Step 2.4: Directory Structure
+
+**Expected**:
+```
+skills/<skill-name>/
+├── SKILL.md # Required
+├── README.md # Recommended
+├── .claude-plugin/
+│ └── plugin.json # Marketplace manifest
+├── scripts/ # Optional: automation scripts
+│ └── setup-*.sh
+├── references/ # Optional: deep-dive docs
+│ ├── *-example.ts
+│ └── *.md
+├── templates/ # Optional: starter templates
+│ ├── package.json
+│ └── *.ts
+└── assets/ # Optional: diagrams, images
+ └── *.md
+```
+
+**Check**:
+- ✅ SKILL.md exists and is valid
+- ✅ README.md exists (recommended)
+- ✅ Referenced directories exist (if mentioned in "Bundled Resources")
+- ✅ No unexpected files (e.g., `.env`, `node_modules/`)
+
+---
+
+## Phase 3: Official Documentation Verification
+
+**Time**: 15-30 minutes
+**Purpose**: Ensure all documented patterns match current official docs
+
+### Step 3.1: Identify Official Documentation
+
+**For each package mentioned in the skill, find**:
+- Official documentation URL
+- GitHub repository
+- npm package page
+- Context7 MCP path (if available)
+
+**Example (better-auth)**:
+- Official: https://better-auth.com
+- GitHub: https://github.com/better-auth/better-auth
+- npm: https://www.npmjs.com/package/better-auth
+- Context7: (not available)
+
+**Record** these for evidence citations.
+
+### Step 3.2: Verify API Patterns
+
+**Use Context7 MCP** when available:
+```
+Use Context7 to fetch: /websites/better-auth_com
+Search for: "database adapter"
+```
+
+**Or use WebFetch**:
+```
+Fetch: https://better-auth.com/docs/integrations/d1
+Look for: Correct adapter usage
+```
+
+**Check**:
+- ✅ Import statements exist in official docs
+- ✅ API method signatures match
+- ✅ Configuration objects match structure
+- ✅ Example code patterns are current
+
+**Common issues**:
+- Non-existent exports (e.g., `d1Adapter` when only `drizzleAdapter` exists)
+- Deprecated methods still documented
+- Changed API signatures
+- Renamed packages
+
+**Document findings**:
+```
+❌ SKILL.md line 50: import { d1Adapter } from 'better-auth/adapters/d1'
+✅ Official docs: import { drizzleAdapter } from 'better-auth/adapters/drizzle'
+📎 Source: https://better-auth.com/docs/integrations/drizzle
+```
+
+### Step 3.3: Check GitHub for Recent Changes
+
+**Visit**: `https://github.com/<org>/<repo>/commits/main`
+
+**Check**:
+- Last commit date (active maintenance?)
+- Recent commits related to documented features
+- Breaking changes in last 6 months
+- Migration guides in docs
+
+**Look for**:
+- 🟢 Active (commits in last 30 days)
+- 🟡 Maintained (commits in last 90 days)
+- 🔴 Stale (no commits in 6+ months)
+
+**Check issues**:
+- Visit `https://github.com/<org>/<repo>/issues`
+- Search for keywords from skill (e.g., "D1", "adapter", "cloudflare")
+- Note any open issues affecting documented patterns
+
+**Document**:
+```
+GitHub status: Active (last commit: 2025-11-05)
+Relevant issues:
+- #234: D1 adapter deprecated (closed 2025-09-15) ← We document old pattern!
+- #567: Drizzle adapter recommended (open)
+```
+
+### Step 3.4: Verify Package Versions
+
+**Use npm**:
+```bash
+npm view <package> version
+npm view <package> time
+```
+
+**Example**:
+```bash
+npm view better-auth version
+# Output: 1.3.34
+
+npm view better-auth time
+# Output shows last publish date
+```
+
+**Check**:
+- ✅ Skill documents current or recent version
+- ✅ Breaking changes noted if major version jump
+- ✅ "Last Verified" date is recent
+
+**Document**:
+```
+Package: better-auth
+Current: 1.3.34 (published 2025-10-28)
+Skill docs: 1.2.0 (outdated by 0.1.34)
+Breaking changes: Yes (v1.3 changed D1 integration)
+```
+
+### Step 3.5: Production Repository Verification
+
+**Find real-world usage**:
+```bash
+# GitHub code search
+site:github.com "<package>" "cloudflare" "d1"
+```
+
+**Or use WebSearch**:
+```
+Search: "better-auth cloudflare d1 github"
+Filter: Last year only
+```
+
+**Check 2-3 production repositories**:
+- What patterns do they use?
+- Do they match our skill's documented approach?
+- Any workarounds or caveats?
+
+**Document**:
+```
+Production examples:
+1. github.com/user/repo-1 - Uses drizzleAdapter (matches our v2.0.0)
+2. github.com/user/repo-2 - Uses Kysely (matches our alternative)
+3. github.com/user/repo-3 - Old d1Adapter (deprecated pattern)
+
+✅ Our v2.0.0 matches production best practices
+```
+
+---
+
+## Phase 4: Code Examples & Templates Audit
+
+**Time**: 20-40 minutes
+**Purpose**: Verify all code examples are correct and consistent
+
+### Step 4.1: Import Statement Consistency
+
+**Check all code examples** in:
+- SKILL.md Quick Start
+- README.md examples
+- `references/*.ts` files
+- `templates/*.ts` files
+
+**Verify**:
+- ✅ Import statements use correct package names
+- ✅ Imports consolidate when from same package
+- ✅ No duplicate imports
+- ✅ All imports actually exist (verify against official docs)
+
+**Bad**:
+```typescript
+import { createAuthClient } from 'better-auth/client'
+import { useSession } from 'better-auth/client' // Duplicate source
+```
+
+**Good**:
+```typescript
+import { createAuthClient, useSession } from 'better-auth/client'
+```
+
+**Document issues**:
+```
+❌ references/react-hooks.tsx:15 - Duplicate imports
+✅ Fix: Consolidate to single import statement
+```
+
+### Step 4.2: API Method Accuracy
+
+**For each API method documented**:
+1. Verify it exists in current package version
+2. Check signature matches (parameters, return type)
+3. Ensure configuration objects are correct
+
+**Example**:
+```typescript
+// Documented
+const session = await auth.getSession(c.req.raw)
+
+// Check against official docs
+// ✅ Current: await auth.api.getSession({ headers: c.req.raw.headers })
+// ❌ Old pattern documented, API changed
+```
+
+**Common issues**:
+- Method renamed (`.getSession()` → `.api.getSession()`)
+- Parameters changed (raw request → headers object)
+- Return type changed
+- Async/await requirements changed
+
+**Document**:
+```
+❌ cloudflare-worker-example.ts:134
+ Old: auth.getSession(c.req.raw)
+ New: auth.api.getSession({ headers: c.req.raw.headers })
+📎 Source: https://better-auth.com/docs/api#getSession
+```
+
+### Step 4.3: Schema Consistency
+
+**If skill involves database schemas**, verify:
+- Table names consistent across all files
+- Column names consistent (camelCase vs snake_case)
+- Primary keys match
+- Foreign keys match
+- Indexes consistent
+
+**Example issue**:
+```
+❌ Inconsistent table names:
+ - database-schema.ts: "user" (singular)
+ - drizzle-schema.ts: "users" (plural)
+
+✅ Should all use: "user" (matches better-auth expectations)
+```
+
+**Check**:
+- `references/database-schema.ts`
+- `references/*-schema.ts`
+- SKILL.md schema examples
+- Migration files in `scripts/`
+
+**Document**:
+```
+Schema inconsistency:
+- File A uses: user, session, account
+- File B uses: users, sessions, accounts
+- File C uses: user, session, accounts (mixed!)
+
+✅ Fix: Standardize to singular (matches official better-auth schema)
+```
+
+### Step 4.4: Template Completeness
+
+**If skill includes templates/**:
+1. Check if all required files present
+2. Verify package.json is complete
+3. Test templates actually work
+
+**Test**:
+```bash
+# Copy template to temp directory
+cp -r skills/<skill>/templates/example-project /tmp/test-template
+cd /tmp/test-template
+
+# Install dependencies
+npm install
+
+# Try to build/run
+npm run build # Should succeed
+npm run dev # Should start
+```
+
+**Document**:
+```
+✅ Templates tested:
+ - example-project builds successfully
+ - All dependencies resolve
+ - No TypeScript errors
+
+❌ Missing files:
+ - wrangler.toml not included in template
+ - .gitignore missing
+```
+
+### Step 4.5: Hook/Function Usage
+
+**If React/client code**, check:
+- `useState` used correctly (not confused with `useEffect`)
+- `useEffect` has dependency arrays
+- Event handlers properly typed
+- No infinite render loops
+
+**Common mistakes**:
+```typescript
+// ❌ Wrong: useState as useEffect
+useState(() => {
+ fetchData()
+})
+
+// ✅ Correct: useEffect
+useEffect(() => {
+ fetchData()
+}, [])
+```
+
+---
+
+## Phase 5: Cross-File Consistency
+
+**Time**: 15-25 minutes
+**Purpose**: Ensure all files tell the same story
+
+### Step 5.1: SKILL.md vs README.md
+
+**Compare**:
+- Quick Start sections
+- Installation steps
+- Code examples
+- Package versions mentioned
+
+**Check**:
+- ✅ Same packages listed
+- ✅ Same version numbers
+- ✅ Same basic code pattern
+- ✅ No contradictions
+
+**Document**:
+```
+✅ SKILL.md Quick Start matches README.md example
+❌ README shows v1.2.0, SKILL.md shows v1.3.34 (inconsistent)
+```
+
+### Step 5.2: Bundled Resources List
+
+**Location**: SKILL.md near end
+
+**Verify**:
+```markdown
+## Bundled Resources
+
+1. `scripts/setup-d1-drizzle.sh` - Setup automation
+2. `references/cloudflare-worker-drizzle.ts` - Complete example
+...
+```
+
+**Check**:
+- ✅ All listed files actually exist
+- ✅ All existing files are listed (or intentionally excluded)
+- ✅ File descriptions are accurate
+
+**Common issue**:
+```
+❌ SKILL.md lists: scripts/setup-d1.sh
+ File exists: scripts/setup-d1-drizzle.sh (renamed)
+
+✅ Fix: Update Bundled Resources section
+```
+
+### Step 5.3: Configuration Examples
+
+**Compare all config files**:
+- SKILL.md examples
+- README.md examples
+- `references/` examples
+- `templates/` files
+
+**Check**:
+- ✅ Environment variables consistent
+- ✅ Binding names consistent
+- ✅ Configuration structure matches
+
+**Example issue**:
+```
+❌ Inconsistent binding names:
+ - SKILL.md: binding = "DB"
+ - Example: binding = "DATABASE"
+
+✅ Fix: Standardize on "DB"
+```
+
+### Step 5.4: Error Count Validation
+
+**If skill claims "prevents X errors"**:
+1. Count documented errors in SKILL.md
+2. Verify each has a solution
+3. Confirm number matches claim
+
+**Example**:
+```yaml
+metadata:
+ errors_prevented: 12
+```
+
+**Verify**: Count "Issue 1", "Issue 2", etc. in SKILL.md = 12 ✅
+
+---
+
+## Phase 6: Dependencies & Versions
+
+**Time**: 10-15 minutes
+**Purpose**: Ensure all dependencies are current and compatible
+
+### Step 6.1: Run Version Check Script
+
+```bash
+./scripts/check-versions.sh <skill-name>
+```
+
+**Output interpretation**:
+```
+✓ [email protected] (up-to-date)
+⚠ [email protected] → 0.36.0 available
+⚠ [email protected] → 4.0.0 available (major version!)
+```
+
+**Document**:
+```
+Version status:
+- better-auth: ✅ Current
+- drizzle-orm: 🟡 Minor update available (0.35 → 0.36)
+- hono: 🔴 Major update available (3.x → 4.x, breaking changes?)
+```
+
+### Step 6.2: Check Breaking Changes
+
+**For packages with updates**:
+1. Visit package GitHub
+2. Read CHANGELOG.md or RELEASES
+3. Identify breaking changes
+
+**Example**:
+```
+hono v3 → v4 breaking changes:
+- API route syntax changed
+- Middleware signature different
+- Context object restructured
+
+Impact on our skill: HIGH
+Action: Review all hono examples, update if adopting v4
+```
+
+### Step 6.3: Verify "Last Verified" Date
+
+**Location**: SKILL.md metadata
+
+**Check**:
+```yaml
+metadata:
+ last_verified: 2025-08-15 # 85 days ago
+```
+
+**Classification**:
+- 🟢 < 30 days: Fresh
+- 🟡 30-90 days: Acceptable
+- 🔴 > 90 days: Stale
+
+**If stale**: Full verification required (all phases)
+
+### Step 6.4: Dependency Conflicts
+
+**Check for known conflicts**:
+- TypeScript version mismatches
+- Peer dependency warnings
+- Runtime compatibility
+
+**Test**:
+```bash
+cd /tmp
+mkdir test-install
+cd test-install
+npm init -y
+
+# Install packages from skill
+npm install better-auth drizzle-orm drizzle-kit @cloudflare/workers-types
+
+# Check for warnings
+# Look for: WARN peer dependencies, WARN deprecated
+```
+
+---
+
+## Phase 7: Issue Categorization
+
+**Time**: 10-20 minutes
+**Purpose**: Classify all findings by severity and impact
+
+### Severity Levels
+
+**🔴 CRITICAL** - Breaks functionality
+- Non-existent API methods
+- Incorrect imports
+- Invalid configuration
+- Missing required dependencies
+- Incorrect type definitions
+
+**🟡 HIGH** - Causes confusion or errors
+- Contradictory examples
+- Inconsistent patterns
+- Outdated major versions
+- Incorrect setup scripts
+- Broken links to critical docs
+
+**🟠 MEDIUM** - Reduces quality
+- Stale minor versions
+- Missing code comments
+- Inconsistent formatting
+- Incomplete documentation
+- Non-critical broken links
+
+**🟢 LOW** - Polish issues
+- Typos
+- Missing optional metadata
+- Suboptimal organization
+- Formatting inconsistencies
+
+### Issue Template
+
+For each issue found, document:
+
+```markdown
+### Issue #N: [Short Description]
+
+**Severity**: 🔴 CRITICAL / 🟡 HIGH / 🟠 MEDIUM / 🟢 LOW
+
+**Location**: `file.ts:123` or section in SKILL.md
+
+**Problem**:
+[Clear description of what's wrong]
+
+**Evidence**:
+- Official docs: [URL]
+- GitHub issue: [URL] (if applicable)
+- npm: `npm view package version` output
+- Production example: [GitHub repo URL]
+
+**Impact**:
+[What happens if not fixed]
+
+**Fix**:
+```diff
+- old code
++ new code
+```
+
+**Breaking Change**: Yes/No
+```
+
+### Example Issues
+
+```markdown
+### Issue #1: Non-existent d1Adapter
+
+**Severity**: 🔴 CRITICAL
+
+**Location**: `references/cloudflare-worker-example.ts:17`
+
+**Problem**:
+Code imports `d1Adapter` from `'better-auth/adapters/d1'` but this export doesn't exist in better-auth v1.3.34. better-auth requires Drizzle ORM or Kysely for D1 integration.
+
+**Evidence**:
+- Official docs: https://better-auth.com/docs/integrations/drizzle
+- GitHub search: No `d1Adapter` export found in codebase
+- Production examples: All use `drizzleAdapter` or Kysely
+
+**Impact**:
+Users copying this code will get "Module not found" error. Code will not run.
+
+**Fix**:
+```diff
+- import { d1Adapter } from 'better-auth/adapters/d1'
++ import { drizzleAdapter } from 'better-auth/adapters/drizzle'
++ import { drizzle } from 'drizzle-orm/d1'
+
+- database: d1Adapter(env.DB)
++ const db = drizzle(env.DB, { schema })
++ database: drizzleAdapter(db, { provider: "sqlite" })
+```
+
+**Breaking Change**: Yes - Requires v2.0.0 bump
+```
+
+---
+
+## Phase 8: Fix Implementation
+
+**Time**: Varies (30 minutes to 4 hours)
+**Purpose**: Remediate issues systematically
+
+### Decision Tree: Auto-Fix vs Ask User
+
+**Auto-fix** when:
+- ✅ Fix is unambiguous (e.g., correct import statement)
+- ✅ Evidence is clear (official docs show correct pattern)
+- ✅ No architectural impact (doesn't change approach)
+- ✅ Low risk (can't break working code)
+
+**Ask user** when:
+- ❓ Multiple valid approaches (Drizzle vs Kysely)
+- ❓ Breaking change decision (bump to v2.0.0?)
+- ❓ Architectural choice (KV vs D1 for sessions?)
+- ❓ Unclear requirements from user
+
+**Report only** when:
+- 📋 Low priority (user can decide later)
+- 📋 Requires manual testing
+- 📋 Needs user preference (formatting style)
+
+### Fix Priority Order
+
+1. **🔴 Critical** first - Fix immediately, these break functionality
+2. **🟡 High** second - Fix in same session
+3. **🟠 Medium** third - Fix if time allows or defer
+4. **🟢 Low** last - Batch with other updates or defer
+
+### Breaking Change Assessment
+
+**Requires version bump** if:
+- API patterns change (old code won't work)
+- File structure changes
+- Configuration format changes
+- Dependencies have breaking changes
+
+**Version bump rules**:
+- Major: v1.0.0 → v2.0.0 (breaking changes)
+- Minor: v1.0.0 → v1.1.0 (new features, backward compatible)
+- Patch: v1.0.0 → v1.0.1 (bug fixes only)
+
+### Fix Implementation Process
+
+For each issue:
+
+**Step 1: Create fix branch** (if major changes)
+```bash
+git checkout -b fix/skill-name-v2
+```
+
+**Step 2: Fix all occurrences**
+- Update SKILL.md
+- Update README.md
+- Update all `references/*` files
+- Update all `templates/*` files
+- Update scripts if needed
+
+**Step 3: Update metadata**
+```yaml
+metadata:
+ version: 2.0.0 # Bump if breaking
+ last_verified: 2025-11-08 # Today
+ breaking_changes: v2.0.0 - Corrected D1 adapter patterns
+```
+
+**Step 4: Document in commit message**
+```
+skill-name v2.0.0 - BREAKING: Correct D1 adapter patterns
+
+Critical fixes:
+- Replace fake d1Adapter with drizzleAdapter
+- Update all examples to use Drizzle ORM
+- Remove contradictory reference files
+
+Files changed: 7
+Lines removed: 665 (incorrect patterns)
+Lines added: 1,931 (correct patterns)
+
+Breaking change: Yes
+Migration: See SKILL.md for new setup workflow
+
+Fixes: #123
+Verified: [production repo URLs]
+```
+
+---
+
+## Phase 9: Post-Fix Verification
+
+**Time**: 10-15 minutes
+**Purpose**: Ensure fixes are correct and complete
+
+### Step 9.1: Discovery Test
+
+Test skill can still be discovered:
+```
+In Claude Code: "Use the <skill-name> skill to..."
+```
+
+**Expected**: Claude recognizes skill and loads correctly
+
+### Step 9.2: Template Test
+
+If skill has templates, test they work:
+```bash
+cp -r skills/<skill>/templates/example /tmp/verify-template
+cd /tmp/verify-template
+npm install
+npm run build # Should succeed
+```
+
+### Step 9.3: Cross-Reference Verification
+
+**Verify no contradictions remain**:
+- Re-check SKILL.md vs README.md
+- Ensure all reference files use same patterns
+- Confirm "Bundled Resources" list is accurate
+
+### Step 9.4: TODO Markers
+
+Search for any remaining TODOs:
+```bash
+grep -r "TODO\|FIXME\|XXX" skills/<skill-name>/
+```
+
+**Expected**: None (or only intentional placeholders)
+
+### Step 9.5: Commit and Push
+
+```bash
+git add skills/<skill-name>
+git commit -m "[Detailed message from Phase 8]"
+git push origin main
+```
+
+**Generate marketplace manifest** if updated:
+```bash
+./scripts/generate-plugin-manifests.sh
+git add skills/<skill-name>/.claude-plugin/
+git commit -m "Update marketplace manifest for <skill-name> v2.0.0"
+git push
+```
+
+---
+
+## Appendix A: Common Issue Patterns
+
+### Pattern 1: Fake Adapters
+
+**Symptom**: Import from non-existent package path
+**Example**: `import { d1Adapter } from 'better-auth/adapters/d1'`
+**Root cause**: Documentation guessed at API without verifying
+**Fix**: Check official docs for actual exports
+**Severity**: 🔴 CRITICAL
+
+### Pattern 2: Stale API Methods
+
+**Symptom**: Method signature doesn't match current package
+**Example**: `auth.getSession(req)` → `auth.api.getSession({ headers })`
+**Root cause**: Package updated after skill created
+**Fix**: Verify against latest official docs
+**Severity**: 🟡 HIGH
+
+### Pattern 3: Schema Inconsistency
+
+**Symptom**: Table names differ across files
+**Example**: `users` vs `user` tables
+**Root cause**: Multiple contributors or file copies
+**Fix**: Standardize to official schema naming
+**Severity**: 🟡 HIGH
+
+### Pattern 4: Outdated Scripts
+
+**Symptom**: Setup script uses deprecated approach
+**Example**: Manual SQL vs ORM migrations
+**Root cause**: Better tooling released after script written
+**Fix**: Update to use official tools (drizzle-kit, etc.)
+**Severity**: 🟡 HIGH
+
+### Pattern 5: Version Drift
+
+**Symptom**: Package versions >90 days old
+**Example**: Skill docs v1.2.0, current is v1.3.34
+**Root cause**: No periodic reviews
+**Fix**: Update versions, check for breaking changes
+**Severity**: 🟠 MEDIUM
+
+### Pattern 6: Contradictory Examples
+
+**Symptom**: Multiple reference files show different patterns
+**Example**: File A uses Drizzle, File B uses fake adapter
+**Root cause**: Incomplete refactor or multiple iterations
+**Fix**: Remove outdated files, ensure consistency
+**Severity**: 🟡 HIGH
+
+---
+
+## Appendix B: Example Audit Report
+
+### better-auth Skill Audit (2025-11-08)
+
+**Audit Type**: Deep review
+**Trigger**: User reported D1 integration issues
+**Time Spent**: 3.5 hours
+**Result**: v2.0.0 with comprehensive fixes
+
+---
+
+#### Executive Summary
+
+**Status**: ❌ FAIL (6 critical/high issues found)
+
+**Findings**:
+- 🔴 Critical: 2 issues
+- 🟡 High: 3 issues
+- 🟠 Medium: 1 issue
+- 🟢 Low: 2 issues
+
+**Action Required**: Comprehensive refactor with version bump
+
+**Version Bump**: v1.0.0 → v2.0.0 (breaking changes)
+
+---
+
+#### Detailed Findings
+
+**Issue #1: Non-existent d1Adapter** 🔴 CRITICAL
+
+*Location*: `references/cloudflare-worker-example.ts:17,50`
+
+*Problem*: Imports `d1Adapter` from `'better-auth/adapters/d1'` which doesn't exist. better-auth v1.3.34 requires Drizzle ORM or Kysely for D1.
+
+*Evidence*:
+- Official docs: https://better-auth.com/docs/integrations/drizzle
+- GitHub: No `d1Adapter` export in better-auth codebase
+- Production: 4 repos verified, all use Drizzle/Kysely
+
+*Impact*: Users get "Module not found" error, code won't run
+
+*Fix*: Remove file, create new `cloudflare-worker-drizzle.ts` with correct pattern
+
+---
+
+**Issue #2: Inconsistent Schema Structure** 🔴 CRITICAL
+
+*Location*: `references/drizzle-schema.ts` vs `references/database-schema.ts`
+
+*Problem*: Two schema files with different table names:
+- File A: `users`, `sessions`, `accounts`
+- File B: `user`, `session`, `account`
+
+*Evidence*: better-auth official schema uses singular names
+
+*Impact*: Confusion, potential database errors if wrong schema used
+
+*Fix*: Delete old `drizzle-schema.ts`, keep only `database-schema.ts` with correct naming
+
+---
+
+**Issue #3: Outdated Setup Script** 🟡 HIGH
+
+*Location*: `scripts/setup-d1.sh`
+
+*Problem*: Generates raw SQL manually instead of using Drizzle Kit migrations
+
+*Evidence*: Drizzle docs recommend `drizzle-kit generate` approach
+
+*Impact*: Users miss benefits of migration tracking, harder to maintain
+
+*Fix*: Replace with `setup-d1-drizzle.sh` using Drizzle Kit workflow
+
+---
+
+**Issue #4: React Hooks Bug** 🟡 HIGH
+
+*Location*: `references/react-client-hooks.tsx:382`
+
+*Problem*: Uses `useState(() => { fetchData() })` instead of `useEffect`
+
+*Evidence*: React docs - useState for state, useEffect for side effects
+
+*Impact*: Code won't work as intended, infinite render potential
+
+*Fix*: Change to `useEffect(() => { fetchData() }, [])`
+
+---
+
+**Issue #5: Misorganized Next.js Example** 🟡 HIGH
+
+*Location*: `references/nextjs-api-route.ts`
+
+*Problem*: Next.js + PostgreSQL example in root of references/ alongside Cloudflare D1 examples
+
+*Evidence*: Skill is D1-focused, causes confusion
+
+*Impact*: Users might use wrong example for their stack
+
+*Fix*: Move to `references/nextjs/postgres-example.ts` with README explaining difference
+
+---
+
+**Issue #6: Stale Version** 🟠 MEDIUM
+
+*Location*: SKILL.md metadata
+
+*Problem*: Last verified 2024-08-15 (85 days ago), docs show v1.2.0 but current is v1.3.34
+
+*Evidence*: `npm view better-auth version` → 1.3.34
+
+*Impact*: Users may encounter issues with newer versions
+
+*Fix*: Update to v1.3.34, verify all examples work
+
+---
+
+#### Remediation Summary
+
+**Files Deleted** (3):
+- `references/cloudflare-worker-example.ts` (fake adapter)
+- `references/drizzle-schema.ts` (inconsistent)
+- `scripts/setup-d1.sh` (outdated)
+
+**Files Created** (3):
+- `references/cloudflare-worker-drizzle.ts` (correct pattern)
+- `references/cloudflare-worker-kysely.ts` (alternative)
+- `scripts/setup-d1-drizzle.sh` (modern approach)
+
+**Files Fixed** (2):
+- `references/react-client-hooks.tsx` (hooks bug)
+- `references/nextjs-api-route.ts` → moved to `nextjs/postgres-example.ts`
+
+**Files Updated** (2):
+- `SKILL.md` (comprehensive rewrite, 1,260 lines)
+- `README.md` (updated examples)
+
+**Lines Changed**:
+- Removed: 665 (incorrect patterns)
+- Added: 1,931 (correct patterns)
+- Net: +1,266 lines
+
+---
+
+#### Version Update
+
+**Version**: 1.0.0 → 2.0.0
+
+**Reason**: Breaking changes in adapter approach
+
+**Migration Path**: Documented in SKILL.md v2.0.0
+
+**Changelog**:
+```
+v2.0.0 (2025-11-08)
+BREAKING: Corrected D1 adapter patterns
+
+Critical:
+- Removed fake d1Adapter() imports
+- Added correct Drizzle/Kysely patterns
+- Increased errors prevented: 10 → 12
+
+High:
+- Fixed schema inconsistencies
+- Updated setup scripts to use Drizzle Kit
+- Fixed React hooks bugs
+- Reorganized reference files
+
+Medium:
+- Updated to better-auth v1.3.34
+- Refreshed "Last Verified" date
+
+Migration: See SKILL.md for new Drizzle setup workflow
+```
+
+---
+
+#### Post-Fix Verification
+
+✅ Discovery test passed
+✅ Templates build successfully
+✅ Cross-file consistency verified
+✅ No TODO markers remaining
+✅ Committed: `3f47f4c`
+✅ Pushed to GitHub
+
+---
+
+#### Lessons Learned
+
+1. **Verify API exports exist** - Don't assume package structure
+2. **Check production repos** - Real usage reveals correct patterns
+3. **Keep reference files minimal** - Fewer files = less chance of contradictions
+4. **Regular reviews essential** - 85 days led to significant drift
+5. **Breaking changes need major bump** - v2.0.0 appropriate for this scope
+
+---
+
+**Audit Complete**: 2025-11-08
+**Auditor**: Claude (Sonnet 4.5)
+**Review Time**: 3.5 hours
+**Result**: Skill upgraded to v2.0.0, all issues resolved
+
+---
+
+## Conclusion
+
+This process ensures systematic, evidence-based reviews that catch issues before they impact users. Follow all 9 phases for comprehensive audits, or use quick reviews for minor updates. Always document findings with evidence and maintain audit trails.
+
+**Questions?** See claude-skills repository: https://github.com/jezweb/claude-skills
diff --git a/scripts/review-skill.sh b/scripts/review-skill.sh
new file mode 100755
index 00000000..128c3be3
--- /dev/null
+++ b/scripts/review-skill.sh
@@ -0,0 +1,568 @@
+#!/usr/bin/env bash
+
+# review-skill.sh - Comprehensive skill review automation
+# Part of claude-skills review process
+# Usage: ./scripts/review-skill.sh <skill-name> [--quick]
+#
+# Performs automated validation checks for skill documentation,
+# providing structured report for manual verification phases.
+#
+# See: planning/SKILL_REVIEW_PROCESS.md for complete guide
+
+set -euo pipefail
+
+# Colors
+RED='\033[0;31m'
+GREEN='\033[0;32m'
+YELLOW='\033[1;33m'
+BLUE='\033[0;34m'
+CYAN='\033[0;36m'
+NC='\033[0m' # No Color
+
+# Emoji for scanning
+PASS="✅"
+WARN="⚠️"
+FAIL="❌"
+INFO="ℹ️"
+MANUAL="🔍"
+
+# Paths
+REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+SKILLS_DIR="$REPO_ROOT/skills"
+
+# Counters
+CRITICAL=0
+HIGH=0
+MEDIUM=0
+LOW=0
+MANUAL_CHECKS=0
+
+# Results arrays
+declare -a CRITICAL_LIST
+declare -a HIGH_LIST
+declare -a MEDIUM_LIST
+declare -a LOW_LIST
+declare -a MANUAL_LIST
+
+# Add findings
+add_critical() { CRITICAL_LIST+=("$1"); ((CRITICAL++)); }
+add_high() { HIGH_LIST+=("$1"); ((HIGH++)); }
+add_medium() { MEDIUM_LIST+=("$1"); ((MEDIUM++)); }
+add_low() { LOW_LIST+=("$1"); ((LOW++)); }
+add_manual() { MANUAL_LIST+=("$1"); ((MANUAL_CHECKS++)); }
+
+# Helper functions
+error() { echo -e "${RED}${FAIL} $1${NC}"; }
+success() { echo -e "${GREEN}${PASS} $1${NC}"; }
+warning() { echo -e "${YELLOW}${WARN} $1${NC}"; }
+info() { echo -e "${BLUE}${INFO} $1${NC}"; }
+manual() { echo -e "${CYAN}${MANUAL} $1${NC}"; }
+
+# Usage
+usage() {
+ cat << EOF
+Usage: $0 <skill-name> [options]
+
+Options:
+ --quick Quick check only (skip deep verification)
+ --help Show this help message
+
+Examples:
+ $0 better-auth
+ $0 cloudflare-worker-base --quick
+
+EOF
+ exit 0
+}
+
+# ============================================================================
+# Phase 1: Setup & Validation
+# ============================================================================
+
+validate_skill_exists() {
+ local skill="$1"
+ local skill_dir="$SKILLS_DIR/$skill"
+
+ if [ ! -d "$skill_dir" ]; then
+ error "Skill '$skill' not found in $SKILLS_DIR"
+ echo ""
+ echo "Available skills:"
+ ls -1 "$SKILLS_DIR" 2>/dev/null | head -10
+ exit 1
+ fi
+
+ if [ ! -f "$skill_dir/SKILL.md" ]; then
+ error "SKILL.md missing for $skill"
+ add_critical "Missing SKILL.md (required file)"
+ return 1
+ fi
+
+ success "Skill directory found: $skill_dir"
+ return 0
+}
+
+# ============================================================================
+# Phase 2: YAML Frontmatter Validation
+# ============================================================================
+
+check_yaml_frontmatter() {
+ local skill_file="$1"
+ echo ""
+ echo "📋 Checking YAML frontmatter..."
+
+ # Extract frontmatter (between --- markers)
+ local frontmatter=$(sed -n '/^---$/,/^---$/p' "$skill_file" | head -n -1 | tail -n +2)
+
+ if [ -z "$frontmatter" ]; then
+ error "No YAML frontmatter found"
+ add_critical "Missing YAML frontmatter (skill won't be discovered)"
+ return 1
+ fi
+
+ # Check required fields
+ local has_name=$(echo "$frontmatter" | grep -c "^name:" || true)
+ local has_description=$(echo "$frontmatter" | grep -c "^description:" || true)
+ local has_license=$(echo "$frontmatter" | grep -c "^license:" || true)
+
+ if [ "$has_name" -eq 0 ]; then
+ error "Missing 'name' field in frontmatter"
+ add_critical "YAML frontmatter missing required 'name' field"
+ else
+ success "Field 'name' present"
+ fi
+
+ if [ "$has_description" -eq 0 ]; then
+ error "Missing 'description' field in frontmatter"
+ add_critical "YAML frontmatter missing required 'description' field"
+ else
+ local desc_lines=$(echo "$frontmatter" | sed -n '/^description:/,/^[a-z]/p' | wc -l)
+ if [ "$desc_lines" -lt 5 ]; then
+ warning "Description seems short ($desc_lines lines)"
+ add_medium "Description may be too brief (< 5 lines)"
+ else
+ success "Field 'description' present (multi-line)"
+ fi
+ fi
+
+ if [ "$has_license" -eq 0 ]; then
+ warning "Missing 'license' field (recommended: MIT)"
+ add_low "YAML frontmatter missing 'license' field"
+ else
+ success "Field 'license' present"
+ fi
+
+ # Check name matches directory
+ local yaml_name=$(echo "$frontmatter" | grep "^name:" | head -1 | sed 's/name:[[:space:]]*//')
+ local dir_name=$(basename "$(dirname "$skill_file")")
+
+ if [ "$yaml_name" != "$dir_name" ]; then
+ error "Name mismatch: YAML='$yaml_name', directory='$dir_name'"
+ add_critical "Skill name doesn't match directory name"
+ else
+ success "Name matches directory"
+ fi
+
+ # Check for metadata fields (optional but recommended)
+ if echo "$frontmatter" | grep -q "metadata:"; then
+ success "Metadata section present"
+
+ # Check for version
+ if ! echo "$frontmatter" | grep -q "version:"; then
+ info "Metadata: version field missing (recommended)"
+ fi
+
+ # Check for last_verified
+ if echo "$frontmatter" | grep -q "last_verified:"; then
+ local last_verified=$(echo "$frontmatter" | grep "last_verified:" | sed 's/.*last_verified:[[:space:]]*//')
+ local days_ago=$(( ($(date +%s) - $(date -d "$last_verified" +%s 2>/dev/null || echo 0)) / 86400 ))
+
+ if [ "$days_ago" -gt 90 ]; then
+ warning "Last verified ${days_ago} days ago (>90 days is stale)"
+ add_medium "Skill hasn't been verified in ${days_ago} days"
+ else
+ success "Recently verified (${days_ago} days ago)"
+ fi
+ else
+ info "Metadata: last_verified field missing (recommended)"
+ fi
+ else
+ info "No metadata section (optional but recommended)"
+ fi
+
+ return 0
+}
+
+# ============================================================================
+# Phase 3: Package Version Checks
+# ============================================================================
+
+check_package_versions() {
+ local skill_dir="$1"
+ echo ""
+ echo "📦 Checking package versions..."
+
+ # Look for package.json in skill directory or templates/
+ local package_json=""
+ if [ -f "$skill_dir/templates/package.json" ]; then
+ package_json="$skill_dir/templates/package.json"
+ elif [ -f "$skill_dir/package.json" ]; then
+ package_json="$skill_dir/package.json"
+ else
+ info "No package.json found (not a Node.js skill)"
+ return 0
+ fi
+
+ info "Found: $(basename "$(dirname "$package_json")")/package.json"
+
+ # Use existing check-versions.sh if available
+ if [ -x "$REPO_ROOT/scripts/check-versions.sh" ]; then
+ "$REPO_ROOT/scripts/check-versions.sh" "$(basename "$skill_dir")" 2>/dev/null | \
+ grep -E "⚠|available" | while read -r line; do
+ warning "$line"
+ add_medium "Package update available: $line"
+ done
+ else
+ info "check-versions.sh not available, skipping detailed version check"
+ fi
+
+ return 0
+}
+
+# ============================================================================
+# Phase 4: Link Validation
+# ============================================================================
+
+check_broken_links() {
+ local skill_dir="$1"
+ echo ""
+ echo "🔗 Checking for broken links..."
+
+ # Extract URLs from markdown files
+ local urls=$(grep -rhoE 'https?://[^)"\s]+' "$skill_dir" 2>/dev/null | sort -u | head -20)
+
+ if [ -z "$urls" ]; then
+ info "No HTTP links found"
+ return 0
+ fi
+
+ local checked=0
+ local broken=0
+
+ while IFS= read -r url; do
+ ((checked++))
+
+ # Skip npm view URLs (not actual links)
+ if [[ "$url" == *"npm view"* ]]; then
+ continue
+ fi
+
+ # Check HTTP status (with timeout)
+ local status=$(timeout 3 curl -s -o /dev/null -w "%{http_code}" "$url" 2>/dev/null || echo "000")
+
+ if [ "$status" = "000" ] || [ "$status" -ge 400 ]; then
+ warning "Broken link [$status]: $url"
+ add_high "Broken link: $url (HTTP $status)"
+ ((broken++))
+ fi
+ done <<< "$urls"
+
+ if [ "$broken" -eq 0 ]; then
+ success "All links reachable ($checked checked)"
+ else
+ warning "$broken broken link(s) found"
+ fi
+
+ return 0
+}
+
+# ============================================================================
+# Phase 5: TODO Markers
+# ============================================================================
+
+check_todo_markers() {
+ local skill_dir="$1"
+ echo ""
+ echo "📝 Checking for TODO markers..."
+
+ local todos=$(grep -rn "TODO\|FIXME\|XXX" "$skill_dir" 2>/dev/null | \
+ grep -v "node_modules" | grep -v ".git" || true)
+
+ if [ -z "$todos" ]; then
+ success "No TODO markers found"
+ return 0
+ fi
+
+ local count=$(echo "$todos" | wc -l)
+ warning "Found $count TODO/FIXME marker(s):"
+ echo "$todos" | head -5 | while read -r line; do
+ echo " $line"
+ done
+
+ if [ "$count" -gt 5 ]; then
+ echo " ... and $(( count - 5 )) more"
+ fi
+
+ add_low "$count TODO/FIXME marker(s) remaining"
+ return 0
+}
+
+# ============================================================================
+# Phase 6: File Organization
+# ============================================================================
+
+check_file_organization() {
+ local skill_dir="$1"
+ echo ""
+ echo "📂 Checking file organization..."
+
+ # Check for README.md
+ if [ -f "$skill_dir/README.md" ]; then
+ success "README.md present"
+ else
+ warning "README.md missing (recommended)"
+ add_medium "Missing README.md for quick reference"
+ fi
+
+ # Check bundled resources section in SKILL.md
+ if grep -q "## Bundled Resources" "$skill_dir/SKILL.md"; then
+ info "Bundled Resources section found, verifying..."
+
+ # Extract resource paths
+ local resources=$(grep -A 20 "## Bundled Resources" "$skill_dir/SKILL.md" | \
+ grep -oE '`[^`]+\.(sh|ts|tsx|md|js|json)`' | tr -d '`')
+
+ while IFS= read -r resource; do
+ if [ -n "$resource" ] && [ ! -f "$skill_dir/$resource" ]; then
+ warning "Listed resource not found: $resource"
+ add_medium "Bundled resource missing: $resource"
+ fi
+ done <<< "$resources"
+ fi
+
+ # Check for common directories
+ if [ -d "$skill_dir/scripts" ]; then
+ local script_count=$(find "$skill_dir/scripts" -type f -name "*.sh" | wc -l)
+ success "scripts/ directory present ($script_count files)"
+ fi
+
+ if [ -d "$skill_dir/references" ]; then
+ local ref_count=$(find "$skill_dir/references" -type f | wc -l)
+ success "references/ directory present ($ref_count files)"
+ fi
+
+ if [ -d "$skill_dir/templates" ]; then
+ local template_count=$(find "$skill_dir/templates" -type f | wc -l)
+ success "templates/ directory present ($template_count files)"
+ fi
+
+ return 0
+}
+
+# ============================================================================
+# Phase 7: Manual Verification Prompts
+# ============================================================================
+
+generate_manual_checks() {
+ local skill_name="$1"
+ echo ""
+ echo "👤 Manual verification required..."
+ echo ""
+
+ manual "MANUAL: Verify API methods against official documentation"
+ add_manual "Verify all API methods exist in current package version"
+ echo " → Use Context7 MCP or WebFetch to check official docs"
+ echo " → Search for: package API reference"
+ echo ""
+
+ manual "MANUAL: Check GitHub repository for recent updates"
+ add_manual "Check if package has been updated recently (last 6 months)"
+ echo " → Visit GitHub /commits/main"
+ echo " → Look for relevant changes"
+ echo ""
+
+ manual "MANUAL: Review known issues"
+ add_manual "Check GitHub issues for problems affecting documented patterns"
+ echo " → Visit GitHub /issues"
+ echo " → Search for skill-related keywords"
+ echo ""
+
+ manual "MANUAL: Verify code examples compile/run"
+ add_manual "Test that code examples actually work"
+ echo " → Copy examples to temp directory"
+ echo " → Try: npm install && npm run build"
+ echo ""
+
+ manual "MANUAL: Cross-file consistency check"
+ add_manual "Ensure SKILL.md, README.md, and references/ are consistent"
+ echo " → Compare import statements"
+ echo " → Verify configuration examples match"
+ echo ""
+}
+
+# ============================================================================
+# Report Generation
+# ============================================================================
+
+generate_report() {
+ local skill_name="$1"
+
+ echo ""
+ echo "═══════════════════════════════════════════════"
+ echo " SKILL REVIEW REPORT: $skill_name"
+ echo "═══════════════════════════════════════════════"
+ echo ""
+
+ # Critical issues
+ if [ $CRITICAL -gt 0 ]; then
+ echo -e "${RED}🔴 CRITICAL ($CRITICAL):${NC}"
+ printf ' - %s\n' "${CRITICAL_LIST[@]}"
+ echo ""
+ fi
+
+ # High issues
+ if [ $HIGH -gt 0 ]; then
+ echo -e "${YELLOW}🟡 HIGH ($HIGH):${NC}"
+ printf ' - %s\n' "${HIGH_LIST[@]}"
+ echo ""
+ fi
+
+ # Medium issues
+ if [ $MEDIUM -gt 0 ]; then
+ echo -e "${BLUE}🟠 MEDIUM ($MEDIUM):${NC}"
+ printf ' - %s\n' "${MEDIUM_LIST[@]}"
+ echo ""
+ fi
+
+ # Low issues
+ if [ $LOW -gt 0 ]; then
+ echo -e "${GREEN}🟢 LOW ($LOW):${NC}"
+ printf ' - %s\n' "${LOW_LIST[@]}"
+ echo ""
+ fi
+
+ # Manual checks
+ if [ $MANUAL_CHECKS -gt 0 ]; then
+ echo -e "${CYAN}${MANUAL} MANUAL VERIFICATION ($MANUAL_CHECKS):${NC}"
+ printf ' - %s\n' "${MANUAL_LIST[@]}"
+ echo ""
+ fi
+
+ echo "═══════════════════════════════════════════════"
+
+ # Final assessment
+ local total_issues=$((CRITICAL + HIGH + MEDIUM + LOW))
+
+ if [ $CRITICAL -gt 0 ]; then
+ error "REQUIRES IMMEDIATE ATTENTION"
+ echo " $CRITICAL critical issue(s) must be fixed"
+ echo ""
+ echo " Recommendation: Comprehensive review required"
+ echo " Estimated effort: 2-4 hours"
+ echo " See: planning/SKILL_REVIEW_PROCESS.md"
+ return 1
+ elif [ $HIGH -gt 0 ]; then
+ warning "REQUIRES ATTENTION"
+ echo " $HIGH high-priority issue(s) found"
+ echo ""
+ echo " Recommendation: Fix high-priority issues"
+ echo " Estimated effort: 1-2 hours"
+ return 0
+ elif [ $total_issues -gt 0 ]; then
+ info "ACCEPTABLE WITH MINOR ISSUES"
+ echo " $total_issues low/medium issue(s) found"
+ echo ""
+ echo " Recommendation: Address when convenient"
+ echo " Estimated effort: 30-60 minutes"
+ return 0
+ else
+ success "EXCELLENT - No automated issues found"
+ echo ""
+ echo " Complete manual verification to confirm:"
+ if [ $MANUAL_CHECKS -gt 0 ]; then
+ echo " - $MANUAL_CHECKS manual checks above"
+ fi
+ echo " - API method accuracy"
+ echo " - Code example correctness"
+ echo ""
+ return 0
+ fi
+}
+
+# ============================================================================
+# Main Execution
+# ============================================================================
+
+main() {
+ local skill_name=""
+ local quick_mode=false
+
+ # Parse arguments
+ while [[ $# -gt 0 ]]; do
+ case $1 in
+ --quick)
+ quick_mode=true
+ shift
+ ;;
+ --help)
+ usage
+ ;;
+ *)
+ if [ -z "$skill_name" ]; then
+ skill_name="$1"
+ fi
+ shift
+ ;;
+ esac
+ done
+
+ if [ -z "$skill_name" ]; then
+ error "Skill name required"
+ echo ""
+ usage
+ fi
+
+ echo "═══════════════════════════════════════════════"
+ echo " SKILL REVIEW: $skill_name"
+ echo "═══════════════════════════════════════════════"
+ if [ "$quick_mode" = true ]; then
+ info "Mode: Quick check"
+ else
+ info "Mode: Comprehensive review"
+ fi
+ echo ""
+
+ # Validate skill exists
+ validate_skill_exists "$skill_name" || exit 1
+
+ local skill_dir="$SKILLS_DIR/$skill_name"
+
+ # Run automated checks
+ check_yaml_frontmatter "$skill_dir/SKILL.md"
+ check_package_versions "$skill_dir"
+
+ if [ "$quick_mode" = false ]; then
+ check_broken_links "$skill_dir"
+ check_todo_markers "$skill_dir"
+ check_file_organization "$skill_dir"
+ generate_manual_checks "$skill_name"
+ fi
+
+ # Generate report
+ generate_report "$skill_name"
+ exit_code=$?
+
+ echo ""
+ echo "Next steps:"
+ echo "1. Review findings above"
+ echo "2. Complete manual verification checks"
+ echo "3. Follow: planning/SKILL_REVIEW_PROCESS.md"
+ echo "4. Fix issues and update skill"
+ echo ""
+
+ exit $exit_code
+}
+
+# Run main if executed directly
+if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
+ main "$@"
+fi
diff --git a/skills/skill-review/.claude-plugin/plugin.json b/skills/skill-review/.claude-plugin/plugin.json
new file mode 100644
index 00000000..1b56b9f4
--- /dev/null
+++ b/skills/skill-review/.claude-plugin/plugin.json
@@ -0,0 +1,12 @@
+{
+ "name": "skill-review",
+ "description": "Comprehensive deep-dive documentation review process for claude-skills repository. Use this skill when investigating suspected issues in a skill, major package version updates detected (e.g., better-auth 1.x → 2.x), skill last verified >3 months ago, before marketplace submission, or when examples seem outdated. Performs systematic 9-phase audit: pre-review setup, standards compliance, official docs verification (Context7/WebFetch), code examples audit, cross-file consistency, dependency versi",
+ "version": "1.0.0",
+ "author": {
+ "name": "Jeremy Dawes",
+ "email": "[email protected]"
+ },
+ "license": "MIT",
+ "repository": "https://github.com/jezweb/claude-skills",
+ "keywords": ["skill review","skill audit","documentation review","version check","api verification","package updates","skill maintenance","quality assurance","standards compliance","breaking changes","github verification","official docs check","context7 verification","skill-review","audit-skill"]
+}
diff --git a/skills/skill-review/README.md b/skills/skill-review/README.md
new file mode 100644
index 00000000..a66a6c5c
--- /dev/null
+++ b/skills/skill-review/README.md
@@ -0,0 +1,305 @@
+# Skill Review Skill
+
+Comprehensive deep-dive documentation review for claude-skills repository.
+
+**Version**: 1.0.0 | **Last Verified**: 2025-11-08
+
+---
+
+## Quick Example
+
+**User**: "Review the better-auth skill"
+
+**Claude** (invokes skill-review):
+1. Runs automated checks (`./scripts/review-skill.sh`)
+2. Verifies against official docs (Context7/WebFetch)
+3. Finds 6 issue categories (2 critical, 3 high, 1 medium)
+4. Fixes automatically where clear
+5. Reports findings with evidence citations
+
+**Result**: better-auth v2.0.0 with correct D1 patterns
+
+---
+
+## What It Does
+
+### Automated Checks ✅
+
+- YAML frontmatter validity (syntax, required fields)
+- Package version currency (vs npm registry)
+- Broken links (HTTP status codes)
+- TODO markers in code
+- File organization (expected directories exist)
+- "Last Verified" date staleness (>90 days)
+
+### Manual Verification 🔍
+
+- API method correctness (vs official docs)
+- GitHub maintenance status (commits, issues)
+- Production repository patterns (real usage)
+- Code example accuracy (imports, signatures)
+- Schema consistency across files
+
+### Issue Classification 🎯
+
+- 🔴 **CRITICAL**: Breaks functionality (fake imports, invalid config)
+- 🟡 **HIGH**: Causes confusion (contradictory examples, outdated major versions)
+- 🟠 **MEDIUM**: Reduces quality (stale versions, missing sections)
+- 🟢 **LOW**: Polish issues (typos, formatting)
+
+---
+
+## Usage
+
+### Slash Command (Explicit)
+
+```
+/review-skill <skill-name>
+```
+
+**Examples**:
+- `/review-skill better-auth`
+- `/review-skill cloudflare-worker-base`
+
+### Skill Invocation (Proactive)
+
+Claude can suggest reviews when it notices:
+- "X skill seems outdated"
+- "Package Y just released v2.0"
+- "Skill last verified 6 months ago"
+
+**Trigger phrases**:
+- "review this skill"
+- "audit the better-auth skill"
+- "check if cloudflare-worker-base needs updates"
+- "is tailwind-v4-shadcn current?"
+
+---
+
+## Installation
+
+```bash
+./scripts/install-skill.sh skill-review
+```
+
+**Verify**:
+```
+ls ~/.claude/skills/skill-review
+```
+
+---
+
+## 9-Phase Process
+
+1. **Pre-Review Setup** - Install, version check, discovery test
+2. **Standards Compliance** - YAML, keywords, description
+3. **Official Docs Verification** - Context7, GitHub, npm
+4. **Code Examples Audit** - Imports, APIs, schemas
+5. **Cross-File Consistency** - SKILL.md vs README vs references
+6. **Dependencies & Versions** - Currency, breaking changes
+7. **Issue Categorization** - Severity classification
+8. **Fix Implementation** - Auto-fix or ask user
+9. **Post-Fix Verification** - Test, commit
+
+**Detailed guide**: `planning/SKILL_REVIEW_PROCESS.md`
+
+---
+
+## Output Example
+
+```
+═══════════════════════════════════════════════
+ SKILL REVIEW REPORT: better-auth
+═══════════════════════════════════════════════
+
+🔴 CRITICAL (2):
+ - Non-existent API: d1Adapter (line 17)
+ - Schema inconsistency: users vs user tables
+
+🟡 HIGH (3):
+ - Package outdated: v1.2.0 → v1.3.34
+ - Contradictory examples in 3 files
+ - Setup script uses deprecated pattern
+
+🟠 MEDIUM (1):
+ - Last verified 85 days ago
+
+═══════════════════════════════════════════════
+RECOMMENDATION: Comprehensive review required
+Estimated effort: 3-4 hours
+Breaking changes: Yes (v2.0.0 bump)
+═══════════════════════════════════════════════
+```
+
+---
+
+## When to Use
+
+### Required
+
+- Major package version updates (e.g., better-auth 1.x → 2.x)
+- User reports errors following skill
+- Before marketplace submission
+
+### Recommended
+
+- Skill last verified >90 days ago
+- After framework breaking changes
+- When adding new features to skill
+- Quarterly maintenance
+
+### On-Demand
+
+- Suspected issues
+- Investigating user feedback
+- Quality assurance before release
+
+---
+
+## Auto-Trigger Keywords
+
+Claude recognizes these phrases and may suggest review:
+- "review this skill"
+- "review the X skill"
+- "audit [skill-name]"
+- "check if X needs updates"
+- "is X skill current?"
+- "verify X documentation"
+- "X skill seems outdated"
+
+---
+
+## Example Audit: better-auth v2.0.0
+
+**Trigger**: User reported D1 integration issues
+
+**Findings**:
+- 6 issues found (2 critical, 3 high, 1 medium)
+- Main problem: Documented fake `d1Adapter()` API
+- Required: Complete refactor with v2.0.0 bump
+
+**Remediation**:
+- Deleted: 3 files (665 lines of incorrect code)
+- Created: 3 files (correct Drizzle/Kysely patterns)
+- Updated: 2 files (SKILL.md, README.md)
+- Lines changed: +1,266 net
+
+**Time**: 3.5 hours
+
+**Result**: Skill upgraded with correct patterns, all users unblocked
+
+**Evidence**:
+- GitHub: https://github.com/better-auth/better-auth
+- Docs: https://better-auth.com/docs/integrations/drizzle
+- Production: 4 repos verified using Drizzle/Kysely
+
+---
+
+## Token Efficiency
+
+**Without skill**: ~25,000 tokens
+- Trial-and-error verification
+- Repeated doc lookups
+- Inconsistent fixes
+- Missing evidence
+
+**With skill**: ~5,000 tokens
+- Systematic process
+- Clear decision trees
+- Evidence-based fixes
+- Comprehensive audit
+
+**Savings**: ~80% (20,000 tokens)
+
+---
+
+## Common Issues Prevented
+
+| Issue Category | Examples | Severity |
+|----------------|----------|----------|
+| Fake APIs | Non-existent imports/adapters | 🔴 Critical |
+| Stale methods | Changed API signatures | 🔴 Critical |
+| Schema inconsistency | Different table names | 🟡 High |
+| Outdated scripts | Deprecated patterns | 🟡 High |
+| Version drift | Packages >90 days old | 🟠 Medium |
+| Contradictory examples | Multiple conflicting patterns | 🟡 High |
+| Broken links | 404 documentation URLs | 🟡 High |
+| YAML errors | Invalid frontmatter | 🔴 Critical |
+
+---
+
+## Scripts & Commands
+
+**Review script** (automated checks):
+```bash
+./scripts/review-skill.sh <skill-name>
+./scripts/review-skill.sh <skill-name> --quick # Fast check
+```
+
+**Slash command** (full process):
+```
+/review-skill <skill-name>
+```
+
+**Skill invocation** (proactive):
+```
+"Review the better-auth skill"
+```
+
+---
+
+## Resources
+
+**Full Process Guide**: `planning/SKILL_REVIEW_PROCESS.md` (~3,500 words)
+
+**Slash Command**: `.claude/commands/review-skill.md`
+
+**Review Script**: `scripts/review-skill.sh`
+
+**Repository**: https://github.com/jezweb/claude-skills
+
+**Example Audit**: See process guide Appendix B
+
+---
+
+## Best Practices
+
+1. ✅ **Always cite sources** - GitHub URL, docs link, npm changelog
+2. ✅ **No assumptions** - Verify against current official docs
+3. ✅ **Be systematic** - Follow all 9 phases
+4. ✅ **Fix consistency** - Update all files, not just one
+5. ✅ **Document thoroughly** - Detailed commit messages
+6. ✅ **Test after fixes** - Verify skill still works
+
+---
+
+## Contributing
+
+Found an issue with the review process? Suggestions for improvement?
+
+1. Open issue: https://github.com/jezweb/claude-skills/issues
+2. Describe: What phase could be improved?
+3. Provide: Example where current process fell short
+
+---
+
+## Version History
+
+**v1.0.0** (2025-11-08)
+- Initial release
+- 9-phase systematic audit process
+- Automated script + manual guide
+- Slash command + skill wrapper
+- Production-tested on better-auth v2.0.0 audit
+
+---
+
+## License
+
+MIT License - See LICENSE file in repository root
+
+---
+
+**Maintained by**: claude-skills project
+**Last verified**: 2025-11-08
+**Production status**: ✅ Tested (better-auth v2.0.0)
diff --git a/skills/skill-review/SKILL.md b/skills/skill-review/SKILL.md
new file mode 100644
index 00000000..20a83847
--- /dev/null
+++ b/skills/skill-review/SKILL.md
@@ -0,0 +1,412 @@
+---
+name: skill-review
+description: |
+ Comprehensive deep-dive documentation review process for claude-skills repository. Use this skill when investigating suspected issues in a skill, major package version updates detected (e.g., better-auth 1.x → 2.x), skill last verified >3 months ago, before marketplace submission, or when examples seem outdated. Performs systematic 9-phase audit: pre-review setup, standards compliance, official docs verification (Context7/WebFetch), code examples audit, cross-file consistency, dependency version checks, issue categorization by severity, fix implementation with minimal user questions, and post-fix verification. Prevents outdated documentation, incorrect API patterns, contradictory examples, version drift, broken links, YAML errors, schema inconsistencies, and missing dependencies. Combines automated technical checks (YAML syntax, package versions via npm, link validation, TODO markers) with AI-powered verification. Auto-fixes unambiguous issues, asks user only for architectural decisions or breaking change confirmations. Outputs severity-classified issue list (🔴 Critical / 🟡 High / 🟠 Medium / 🟢 Low) with evidence citations (GitHub URLs, official docs, npm changelogs) and detailed remediation plan. Production-tested on better-auth v2.0.0 audit (found 6 critical/high issues, removed 665 lines of incorrect code, added 1,931 lines of correct patterns).
+
+ Keywords: skill review, skill audit, documentation review, version check, api verification, package updates, skill maintenance, quality assurance, standards compliance, breaking changes, github verification, official docs check, context7 verification, skill-review, audit-skill, review-documentation, check-skill-currency, verify-skill-accuracy, outdated skill, skill needs update, review better-auth, check cloudflare skill, verify api methods, package version drift, stale documentation, contradictory examples, broken links check, yaml frontmatter validation, skill discovery test, production testing
+
+license: MIT
+metadata:
+ version: 1.0.0
+ last_verified: 2025-11-08
+ production_tested: better-auth v2.0.0 audit (2025-11-08)
+ token_savings: ~80%
+ errors_prevented: 20+
+ official_docs: https://github.com/jezweb/claude-skills
+ triggers:
+ - "review this skill"
+ - "review the X skill"
+ - "audit the skill"
+ - "check if X needs updates"
+ - "is X skill current"
+ - "verify X documentation"
+ - "X skill seems outdated"
+allowed-tools:
+ - Read
+ - Bash
+ - Glob
+ - Grep
+ - WebFetch
+ - WebSearch
+ - Edit
+ - Write
+---
+
+# Skill Review Skill
+
+## Overview
+
+The skill-review skill provides a comprehensive, systematic process for auditing skills in the claude-skills repository. It combines automated technical validation with AI-powered verification to ensure skills remain accurate, current, and high-quality.
+
+**Use this skill when**:
+- Investigating suspected issues in a skill
+- Major package version updates released (e.g., better-auth 1.x → 2.x)
+- Skill last verified >90 days ago
+- Before submitting skill to marketplace
+- User reports errors following skill instructions
+- Examples seem outdated or contradictory
+
+**Production evidence**: Successfully audited better-auth skill (2025-11-08), found 6 critical/high issues including non-existent API imports, removed 665 lines of incorrect code, implemented v2.0.0 with correct patterns.
+
+---
+
+## Quick Start
+
+### Invoke via Slash Command
+
+```
+/review-skill <skill-name>
+```
+
+**Example**:
+```
+/review-skill better-auth
+```
+
+### Invoke via Skill (Proactive)
+
+When Claude notices potential issues, it can suggest:
+```
+User: "I'm having trouble with better-auth and D1"
+
+Claude: "I notice the better-auth skill was last verified 6 months ago.
+Would you like me to review it? Better-auth recently released v1.3
+with D1 changes."
+```
+
+---
+
+## What This Skill Does
+
+### 9-Phase Systematic Audit
+
+1. **Pre-Review Setup** (5-10 min)
+ - Install skill locally: `./scripts/install-skill.sh <skill-name>`
+ - Check current version and last verified date
+ - Test skill discovery
+
+2. **Standards Compliance** (10-15 min)
+ - Validate YAML frontmatter (name, description, license)
+ - Check keyword comprehensiveness
+ - Verify third-person description style
+ - Ensure directory structure matches spec
+
+3. **Official Documentation Verification** (15-30 min)
+ - Use Context7 MCP or WebFetch to verify API patterns
+ - Check GitHub for recent updates and issues
+ - Verify package versions against npm registry
+ - Compare with production repositories
+
+4. **Code Examples & Templates Audit** (20-40 min)
+ - Verify import statements exist in current packages
+ - Check API method signatures match official docs
+ - Ensure schema consistency across files
+ - Test templates build and run
+
+5. **Cross-File Consistency** (15-25 min)
+ - Compare SKILL.md vs README.md examples
+ - Verify "Bundled Resources" section matches actual files
+ - Ensure configuration examples consistent
+
+6. **Dependencies & Versions** (10-15 min)
+ - Run `./scripts/check-versions.sh <skill-name>`
+ - Check for breaking changes in package updates
+ - Verify "Last Verified" date is recent
+
+7. **Issue Categorization** (10-20 min)
+ - Classify by severity: 🔴 Critical / 🟡 High / 🟠 Medium / 🟢 Low
+ - Document with evidence (GitHub URL, docs link, npm changelog)
+
+8. **Fix Implementation** (30 min - 4 hours)
+ - Auto-fix unambiguous issues
+ - Ask user only for architectural decisions
+ - Update all affected files consistently
+ - Bump version if breaking changes
+
+9. **Post-Fix Verification** (10-15 min)
+ - Test skill discovery
+ - Verify templates work
+ - Check no contradictions remain
+ - Commit with detailed changelog
+
+### Automated Checks (via script)
+
+The skill runs `./scripts/review-skill.sh <skill-name>` which checks:
+- ✅ YAML frontmatter syntax and required fields
+- ✅ Package version currency (npm)
+- ✅ Broken links (HTTP status)
+- ✅ TODO markers in code
+- ✅ File organization (expected directories exist)
+- ✅ "Last Verified" date staleness
+
+### Manual Verification (AI-powered)
+
+Claude performs:
+- 🔍 API method verification against official docs
+- 🔍 GitHub activity and issue checks
+- 🔍 Production repository comparisons
+- 🔍 Code example correctness
+- 🔍 Schema consistency validation
+
+---
+
+## Process Workflow
+
+### Step 1: Run Automated Checks
+
+```bash
+./scripts/review-skill.sh <skill-name>
+```
+
+Interpret output to identify technical issues.
+
+### Step 2: Execute Manual Verification
+
+For **Phase 3: Official Documentation Verification**:
+
+1. Use Context7 MCP (if available):
+ ```
+ Use Context7 to fetch: /websites/<package-docs>
+ Search for: [API method from skill]
+ ```
+
+2. Or use WebFetch:
+ ```
+ Fetch: https://<official-docs-url>
+ Verify: [specific patterns]
+ ```
+
+3. Check GitHub:
+ ```
+ Visit: https://github.com/<org>/<repo>/commits/main
+ Check: Last commit, recent changes
+ Search issues: [keywords from skill]
+ ```
+
+4. Find production examples:
+ ```
+ WebSearch: "<package> cloudflare production github"
+ Compare: Do real projects match our patterns?
+ ```
+
+For **Phase 4: Code Examples Audit**:
+
+- Verify all imports exist (check official docs)
+- Check API method signatures match
+- Ensure schema consistency across files
+- Test templates actually work
+
+### Step 3: Categorize Issues
+
+**🔴 CRITICAL** - Breaks functionality:
+- Non-existent API methods/imports
+- Invalid configuration
+- Missing required dependencies
+
+**🟡 HIGH** - Causes confusion:
+- Contradictory examples across files
+- Inconsistent patterns
+- Outdated major versions
+
+**🟠 MEDIUM** - Reduces quality:
+- Stale minor versions (>90 days)
+- Missing documentation sections
+- Incomplete error lists
+
+**🟢 LOW** - Polish issues:
+- Typos, formatting inconsistencies
+- Missing optional metadata
+
+### Step 4: Fix Issues
+
+**Auto-fix** when:
+- ✅ Fix is unambiguous (correct import from docs)
+- ✅ Evidence is clear
+- ✅ No architectural impact
+
+**Ask user** when:
+- ❓ Multiple valid approaches
+- ❓ Breaking change decision
+- ❓ Architectural choice
+
+**Format for questions**:
+```
+I found [issue]. There are [N] approaches:
+
+1. [Approach A] - [Pros/Cons]
+2. [Approach B] - [Pros/Cons]
+
+Recommendation: [Default based on evidence]
+
+Which would you prefer?
+```
+
+### Step 5: Version Bump Assessment
+
+If breaking changes:
+- Major: v1.0.0 → v2.0.0 (API patterns change)
+- Minor: v1.0.0 → v1.1.0 (new features, backward compatible)
+- Patch: v1.0.0 → v1.0.1 (bug fixes only)
+
+### Step 6: Generate Audit Report
+
+```markdown
+## Skill Review Report: <skill-name>
+
+**Date**: YYYY-MM-DD
+**Trigger**: [Why review performed]
+**Time Spent**: [Duration]
+
+### Findings
+
+🔴 CRITICAL (N): [List with evidence]
+🟡 HIGH (N): [List with evidence]
+🟠 MEDIUM (N): [List with evidence]
+🟢 LOW (N): [List with evidence]
+
+### Remediation
+
+**Files Modified**: [List]
+**Version Update**: [old] → [new]
+**Breaking Changes**: Yes/No
+
+### Verification
+
+✅ Discovery test passed
+✅ Templates work
+✅ Committed: [hash]
+
+### Recommendation
+
+[Final assessment]
+```
+
+---
+
+## Example: better-auth Audit
+
+### Findings
+
+**Issue #1: Non-existent d1Adapter** 🔴 CRITICAL
+
+*Location*: `references/cloudflare-worker-example.ts:17`
+
+*Problem*: Imports `d1Adapter` from `'better-auth/adapters/d1'` which doesn't exist
+
+*Evidence*:
+- Official docs: https://better-auth.com/docs/integrations/drizzle
+- GitHub: No `d1Adapter` export in codebase
+- Production: 4 repos use Drizzle/Kysely
+
+*Fix*: Replace with `drizzleAdapter` from `'better-auth/adapters/drizzle'`
+
+### Result
+
+- **Files deleted**: 3 (obsolete patterns)
+- **Files created**: 3 (correct patterns)
+- **Lines changed**: +1,266 net
+- **Version**: v1.0.0 → v2.0.0
+- **Time**: 3.5 hours
+
+---
+
+## Bundled Resources
+
+This skill references:
+
+1. **`planning/SKILL_REVIEW_PROCESS.md`** - Complete 9-phase manual guide
+2. **`scripts/review-skill.sh`** - Automated validation script
+3. **`.claude/commands/review-skill.md`** - Slash command definition
+
+---
+
+## When Claude Should Invoke This Skill
+
+**Proactive triggers**:
+- User mentions skill seems outdated
+- Package major version mentioned
+- User reports errors following skill
+- Checking metadata shows >90 days since verification
+
+**Explicit triggers**:
+- "review the X skill"
+- "audit better-auth skill"
+- "is cloudflare-worker-base up to date?"
+- "check if tailwind-v4-shadcn needs updating"
+
+---
+
+## Token Efficiency
+
+**Without this skill**: ~25,000 tokens
+- Trial-and-error verification
+- Repeated doc lookups
+- Inconsistent fixes across files
+- Missing evidence citations
+
+**With this skill**: ~5,000 tokens
+- Systematic process
+- Clear decision trees
+- Evidence-based fixes
+- Comprehensive audit trail
+
+**Savings**: ~80% (20,000 tokens)
+
+---
+
+## Common Issues Prevented
+
+1. **Fake API adapters** - Non-existent imports
+2. **Stale API methods** - Changed signatures
+3. **Schema inconsistency** - Different table names
+4. **Outdated scripts** - Deprecated approaches
+5. **Version drift** - Packages >90 days old
+6. **Contradictory examples** - Multiple conflicting patterns
+7. **Broken links** - 404 documentation URLs
+8. **YAML errors** - Invalid frontmatter syntax
+9. **Missing keywords** - Poor discoverability
+10. **Incomplete bundled resources** - Listed files don't exist
+
+---
+
+## Best Practices
+
+1. **Always cite sources** - GitHub URL, docs link, npm changelog
+2. **No assumptions** - Verify against current official docs
+3. **Be systematic** - Follow all 9 phases
+4. **Fix consistency** - Update all files, not just one
+5. **Document thoroughly** - Detailed commit messages
+6. **Test after fixes** - Verify skill still works
+
+---
+
+## Known Limitations
+
+- Link checking requires network access
+- Package version checks need npm installed
+- Context7 MCP availability varies by package
+- Production repo search may need GitHub API
+- Manual phases require human judgment
+
+---
+
+## Version History
+
+**v1.0.0** (2025-11-08)
+- Initial release
+- 9-phase systematic audit process
+- Automated script + manual guide
+- Slash command + skill wrapper
+- Production-tested on better-auth v2.0.0 audit
+
+---
+
+## Additional Resources
+
+- **Full Process Guide**: `planning/SKILL_REVIEW_PROCESS.md`
+- **Repository**: https://github.com/jezweb/claude-skills
+- **Example Audit**: See process guide Appendix B (better-auth v2.0.0)
+
+---
+
+**Last verified**: 2025-11-08 | **Version**: 1.0.0
diff --git a/skills/skill-review/references/audit-report-template.md b/skills/skill-review/references/audit-report-template.md
new file mode 100644
index 00000000..9b110675
--- /dev/null
+++ b/skills/skill-review/references/audit-report-template.md
@@ -0,0 +1,178 @@
+# Skill Review Audit Report Template
+
+Use this template to document skill audit findings.
+
+---
+
+## Skill Review Report: [SKILL-NAME]
+
+**Date**: YYYY-MM-DD
+**Audit Type**: Deep review / Quick check
+**Trigger**: [Why review was performed]
+**Time Spent**: [Duration]
+**Auditor**: Claude (Sonnet 4.5) / Human
+
+---
+
+### Executive Summary
+
+**Status**: ✅ PASS / ⚠️ WARN / ❌ FAIL
+
+**Findings**:
+- 🔴 Critical: [N] issues
+- 🟡 High: [N] issues
+- 🟠 Medium: [N] issues
+- 🟢 Low: [N] issues
+
+**Action Required**: [None / Minor fixes / Comprehensive refactor]
+
+**Version Bump**: [None / Patch / Minor / Major]
+
+---
+
+### Detailed Findings
+
+#### Issue #1: [Short Description]
+
+**Severity**: 🔴 CRITICAL / 🟡 HIGH / 🟠 MEDIUM / 🟢 LOW
+
+**Location**: `file.ts:123` or SKILL.md section
+
+**Problem**:
+[Clear description of what's wrong]
+
+**Evidence**:
+- Official docs: [URL]
+- GitHub issue: [URL] (if applicable)
+- npm: `npm view package version` output
+- Production example: [GitHub repo URL]
+
+**Impact**:
+[What happens if not fixed]
+
+**Fix**:
+```diff
+- old code
++ new code
+```
+
+**Breaking Change**: Yes / No
+
+---
+
+[Repeat for each issue]
+
+---
+
+### Remediation Summary
+
+**Files Deleted** ([N]):
+- `path/to/file.ts` (reason)
+
+**Files Created** ([N]):
+- `path/to/file.ts` (purpose)
+
+**Files Modified** ([N]):
+- `path/to/file.ts` (changes)
+
+**Lines Changed**:
+- Removed: [N] lines
+- Added: [N] lines
+- Net: [±N] lines
+
+---
+
+### Version Update
+
+**Version**: [old] → [new]
+
+**Reason**: [Breaking changes / New features / Bug fixes]
+
+**Migration Path**: [If breaking changes, how to upgrade]
+
+**Changelog**:
+```markdown
+v[new] (YYYY-MM-DD)
+[BREAKING if applicable]: [Summary]
+
+Critical:
+- [List critical fixes]
+
+High:
+- [List high-priority fixes]
+
+Medium:
+- [List medium fixes]
+
+Low:
+- [List low fixes]
+
+Migration: [How to upgrade if breaking]
+```
+
+---
+
+### Post-Fix Verification
+
+**Discovery Test**:
+- ✅ / ❌ Skill recognized by Claude
+- ✅ / ❌ Metadata loads correctly
+
+**Template Test** (if applicable):
+- ✅ / ❌ Templates build successfully
+- ✅ / ❌ No TypeScript errors
+- ✅ / ❌ Dependencies resolve
+
+**Consistency Check**:
+- ✅ / ❌ SKILL.md vs README.md match
+- ✅ / ❌ No contradictions in references/
+- ✅ / ❌ Bundled Resources list accurate
+
+**Code Quality**:
+- ✅ / ❌ No TODO markers
+- ✅ / ❌ No broken links
+- ✅ / ❌ All imports valid
+
+**Commit**:
+- Hash: [git hash]
+- Pushed: ✅ / ❌
+
+---
+
+### Lessons Learned
+
+1. [Key takeaway #1]
+2. [Key takeaway #2]
+3. [Key takeaway #3]
+
+---
+
+### Recommendations
+
+**Immediate**:
+- [Action items that must be done now]
+
+**Future**:
+- [Improvements for next review cycle]
+
+**Process**:
+- [Suggestions for improving review process]
+
+---
+
+### Appendix
+
+**Automation Output** (`./scripts/review-skill.sh`):
+```
+[Paste relevant script output]
+```
+
+**Manual Verification Notes**:
+- [Additional observations]
+- [Edge cases discovered]
+- [Questions for maintainer]
+
+---
+
+**Audit Complete**: YYYY-MM-DD
+**Result**: [Summary of final state]