Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat(planning): Add multi-agent research protocol and audit tracking
Jezf7e18dd19ca4
diff --git a/commands/audit.md b/commands/audit.mdnew file mode 100644index 00000000..fd456ff7--- /dev/null+++ b/commands/audit.md@@ -0,0 +1,100 @@+# /audit - Multi-Agent Audit Command++Trigger parallel sub-agent swarms to audit, research, or check multiple items at once.++## Usage++```+/audit [target]+```++## Targets++| Target | What It Does |+|--------|--------------|+| `skills` | Audit all skills against official docs |+| `rules` | Audit all user-level rules |+| `versions` | Check all package versions in skills |+| `[directory]` | Audit all items in specified directory |+| `[topic]` | Research topic across multiple sources |++## Behavior++When invoked:++1. **Identify scope** - Count items to audit+2. **Group logically** - Batch related items (8-12 per agent optimal)+3. **Launch parallel** - All agents in ONE message for true parallelism+4. **Compile findings** - Create planning doc at `planning/[TARGET]_AUDIT_[DATE].md`++## Agent Prompt Template++Each agent receives:+```+Audit [ITEMS] against official documentation.++Check for:+1. NEW features not documented+2. DEPRECATED patterns still recommended+3. BREAKING CHANGES not reflected+4. VERSION updates needed++Report: Accuracy %, gaps found, priority recommendations (HIGH/MEDIUM/LOW).+```++## Examples++### Audit all skills+```+/audit skills+```+→ Launches 68 parallel agents, creates `planning/SKILL_UPDATES_[DATE].md`++### Audit rules by category+```+/audit rules+```+→ Launches 9 grouped agents (by domain), creates `planning/RULES_UPDATES_[DATE].md`++### Research a topic+```+/audit "auth libraries for cloudflare workers"+```+→ Launches agents to research better-auth, clerk, lucia, oslo, etc.++### Check versions+```+/audit versions+```+→ Parallel version checks, creates `VERSIONS_REPORT.md`++## Output++Creates a tracking document that survives context compacts:++```markdown+# [Target] Audit - [Date]++## Summary+- Total items: X+- Needing updates: Y+- Estimated effort: Z hours++## Priority Tiers+### TIER 1: URGENT+| Item | Issue | Est Hours | Status |++### TIER 2: HIGH+...++## Session Log+| Date | Work Done | Next |+```++## Reference++See `planning/multi-agent-research-protocol.md` for full patterns.++## Key Discovery++**No practical agent limit** - 68 agents ran successfully in parallel. Token usage is the constraint, not count.diff --git a/planning/RULES_UPDATES_JAN_2026.md b/planning/RULES_UPDATES_JAN_2026.mdnew file mode 100644index 00000000..7f28749f--- /dev/null+++ b/planning/RULES_UPDATES_JAN_2026.md@@ -0,0 +1,195 @@+# Rules Updates - January 2026 Audit++**Created**: 2026-01-03+**Status**: In Progress+**Total User-Level Rules**: 49+**Total Skill-Level Rules**: 38 (updated with parent skills)+**Rules Needing Updates**: 18+**Estimated Effort**: ~12 hours++---++## Priority Tiers++### TIER 1: URGENT (Fix This Week) - ~4 hours++| Rule File | Issue | Est. Hours | Status |+|-----------|-------|------------|--------|+| clerk-auth.md | API v1 deprecated (Apr 2025), missing cookie size limit (1.2KB), JWT vs session token confusion | 1 | ⏳ Not Started |+| better-auth-vite.md | ESM-only breaking change, nodejs_compat for Workers, generateId migration, missing env vars | 1.5 | ⏳ Not Started |+| vite-node.md | Missing Vite v6+ `loadEnv()` pattern (primary solution not documented) | 0.5 | ⏳ Not Started |+| ai-gateway-providers.md | Missing 16 of 24 providers (only 8 documented) | 0.5 | ⏳ Not Started |+| cloudflare-ai-gateway.md | BYOK now uses Secrets Store (Aug 2025), custom providers missing | 0.5 | ⏳ Not Started |++### TIER 2: HIGH (Next Sprint) - ~5 hours++| Rule File | Issue | Est. Hours | Status |+|-----------|-------|------------|--------|+| snowflake-native-app-marketplace.md | Legacy SQL → snow CLI, release channels, NAAPS details | 1.5 | ⏳ Not Started |+| snowflake-native-apps.md | Release channels workflow, `snow app publish` command | 1 | ⏳ Not Started |+| snowflake-marketplace-listing.md | Data dictionary now MANDATORY, data attributes field | 0.5 | ⏳ Not Started |+| cloudflare-workers-ai-models.md | Missing 8 new 2025 models (OpenAI GPT-OSS, Deepgram, Leonardo) | 0.5 | ⏳ Not Started |+| expo-android-sdk.md | Update deadline to Aug 31, 2025 (was "late 2024") | 0.25 | ⏳ Not Started |+| git-patterns.md | Add tag performance impact, modern monorepo tools | 0.5 | ⏳ Not Started |+| drizzle-orm.md | Add `timestamp_ms` mode info, modernize journal drift | 0.5 | ⏳ Not Started |+| d1-batch-operations.md | Clarify Free (50) vs Paid (1,000) tier limits | 0.25 | ⏳ Not Started |++### TIER 3: MEDIUM (Following Sprint) - ~2 hours++| Rule File | Issue | Est. Hours | Status |+|-----------|-------|------------|--------|+| react-patterns.md | Add React 19 form actions (useActionState) context | 0.5 | ⏳ Not Started |+| oauth-samesite-cookies.md | Add POST-based OIDC flows note (SameSite=None) | 0.25 | ⏳ Not Started |+| soap-api-requests.md | Add SOAP 1.1 vs 1.2 version awareness | 0.25 | ⏳ Not Started |+| hono-route-ordering.md | Clarify route priority wording | 0.25 | ⏳ Not Started |+| snowflake-streamlit.md | Add Jan 2025 Git integration note | 0.25 | ⏳ Not Started |+| cloudflare-deploy-workflow.md | Note secret auto-deploy in v3.73.0+ | 0.25 | ⏳ Not Started |++### TIER 4: LOW (When Time Permits) - ~1 hour++| Rule File | Issue | Est. Hours | Status |+|-----------|-------|------------|--------|+| node-formdata.md | Add Node.js v18+ context | 0.25 | ⏳ Not Started |+| react-duplicate-instance.md | Add Vite 6 context note | 0.25 | ⏳ Not Started |+| browser-automation-gifs.md | Add Claude in Chrome requirement note | 0.1 | ⏳ Not Started |+| github-api.md | Clarify X-GitHub-Api-Version is optional | 0.1 | ⏳ Not Started |+| microsoft-oauth.md | Add token lifetime context | 0.25 | ⏳ Not Started |++---++## Rules Already Current (No Updates Needed)++### 100% Accurate (25 files)+✅ nginx-cloudflare-proxy.md+✅ llm-date-handling.md+✅ crypto-random.md+✅ xml-date-parsing.md+✅ wrangler-r2.md+✅ sql-date-range-queries.md+✅ lucide-icons.md+✅ template-literals.md+✅ git-init-gitignore.md+✅ bash-scripts.md+✅ mcp-oauth-header-auth.md+✅ mcp-oauth-refresh-tokens.md+✅ cloudflare-workers.md+✅ cloudflare-workers-fetch.md+✅ cloudflare-workers-ai-prefixes.md+✅ cloudflare-vectorize.md+✅ css-tailwind.md+✅ github-oauth-api.md+✅ cloudflare-oauth-state.md+✅ private-repo-audit.md+✅ wordpress-troubleshooting.md+✅ mcp-server-homepage.md+✅ jezweb-email-triage.md+✅ build-verification.md (98%)+✅ snowflake-native-app.md (85% - minor)++---++## Accuracy Summary by Category++| Category | Files | Avg Accuracy | Priority |+|----------|-------|--------------|----------|+| Auth (Clerk, better-auth) | 2 | 70% | URGENT |+| AI Gateway | 2 | 78% | URGENT |+| Snowflake | 5 | 78% | HIGH |+| Build/Tooling | 6 | 94% | MEDIUM |+| Frontend/UI | 5 | 92% | MEDIUM |+| Database/ORM | 4 | 92% | MEDIUM |+| OAuth | 6 | 87% | LOW |+| Cloudflare Workers | 6 | 92% | MEDIUM |+| Misc | 8 | 87.5% | LOW |++---++## Detailed Action Items++### clerk-auth.md (URGENT)++**Changes Required**:+1. [ ] Add API v1 deprecation note (deprecated Apr 14, 2025)+2. [ ] Add 1.2KB cookie size limit warning for custom claims+3. [ ] Clarify JWT vs Session Token differences+4. [ ] Note v2 (API 2025-04-10+) is required for @clerk/[email protected]++---++### better-auth-vite.md (URGENT)++**Changes Required**:+1. [ ] Add ESM-only warning (CommonJS removed in v1.4)+2. [ ] Add nodejs_compat requirement for Cloudflare Workers+3. [ ] Document `advanced.generateId` → `advanced.database.generateId` migration+4. [ ] Add BETTER_AUTH_SECRET and BETTER_AUTH_URL env var setup+5. [ ] Note reactStartCookies → tanstackStartCookies rename++---++### ai-gateway-providers.md (URGENT)++**Changes Required**:+1. [ ] Expand provider table from 8 to 24 providers+2. [ ] Add: cartesia, cerebras, elevenlabs, perplexity, fal, ideogram+3. [ ] Add: huggingface, bedrock, azure-openai, baseten, parallel, replicate+4. [ ] Add: deepgram, openrouter (GA), workers-ai, vertex+5. [ ] Note OpenRouter is now GA (June 2025)++---++### cloudflare-ai-gateway.md (URGENT)++**Changes Required**:+1. [ ] Update BYOK section to reference Secrets Store (Aug 2025)+2. [ ] Add Custom Providers section with `custom-{slug}` pattern+3. [ ] Add Secrets Store prerequisites+4. [ ] Note embeddings endpoint coming soon++---++### vite-node.md (URGENT)++**Changes Required**:+1. [ ] Add `loadEnv()` as Solution #0 (primary for Vite v6+)+2. [ ] Document static replacement behavior difference+3. [ ] Mention `esm-env` for library mode+4. [ ] Add Vite docs reference link++---++## Session Log++| Date | Session | Work Done | Next Steps |+|------|---------|-----------|------------|+| 2026-01-03 | Initial Audit | Launched 9 parallel rule audits, compiled findings | Start TIER 1 updates |+| | | | |++---++## Notes++- Auth rules (clerk, better-auth) have lowest accuracy - prioritize+- Snowflake rules have significant gaps due to 2025 feature releases (release channels, NAAPS)+- AI Gateway missing 67% of supported providers - quick fix+- Most Cloudflare Workers rules are current+- Skill-level rules (38 files) will be updated alongside parent skill updates++---++## Completion Criteria++- [ ] All TIER 1 rules updated+- [ ] All TIER 2 rules updated+- [ ] No rule below 90% accuracy+- [ ] All deprecated patterns removed+- [ ] Version references current++---++## Cross-Reference: Skill Updates++Rules in `skills/*/rules/` are updated as part of skill updates. See:+- `planning/SKILL_UPDATES_JAN_2026.md` for skill-level rule tracking+- 38 skill-level rules will be updated with their parent skills+diff --git a/planning/SKILL_UPDATES_JAN_2026.md b/planning/SKILL_UPDATES_JAN_2026.mdnew file mode 100644index 00000000..d8586451--- /dev/null+++ b/planning/SKILL_UPDATES_JAN_2026.md@@ -0,0 +1,163 @@+# Skill Updates - January 2026 Audit++**Created**: 2026-01-03+**Status**: In Progress+**Total Skills**: 68+**Skills Needing Updates**: 36+**Estimated Effort**: ~100 hours++---++## Priority Tiers++### TIER 1: URGENT (Fix This Week) - ~20 hours++| Skill | Issue | Est. Hours | Status |+|-------|-------|------------|--------|+| fastmcp | v2.13→v2.14: sampling with tools, background tasks, breaking changes | 10-11 | ⏳ Not Started |+| typescript-mcp | v1.23→v1.25.1: ReDoS fix, Tasks feature, Client credentials OAuth | 6-8 | ⏳ Not Started |+| tanstack-router | 10+ versions behind (1.134→1.144+): virtual routes, search params, error boundaries | 4-6 | ⏳ Not Started |++### TIER 2: HIGH (Next Sprint) - ~35 hours++| Skill | Issue | Est. Hours | Status |+|-------|-------|------------|--------|+| elevenlabs-agents | 4 packages outdated, widget improvements, Scribe fixes | 4-5 | ⏳ Not Started |+| openai-assistants | v6.7→6.15, sunset date clarification (Aug 26, 2026) | 2-3 | ⏳ Not Started |+| mcp-oauth-cloudflare | workers-oauth-provider 0.1→0.2.2, refresh tokens, Bearer coexistence | 4 | ⏳ Not Started |+| google-chat-api | Spaces API, Members API, Reactions, rate limits (40% feature gap) | 22-28 | ⏳ Not Started |+| ai-sdk-ui | Agent integration, tool approval, message parts structure | 4-6 | ⏳ Not Started |+| better-auth | Stateless sessions, JWT rotation, provider scopes | 2-3 | ⏳ Not Started |+| cloudflare-worker-base | wrangler 4.54, auto-provisioning, Workers RPC | 2-3 | ⏳ Not Started |+| openai-apps-mcp | MCP Connectors, Responses API, Zod version conflict | 4-5 | ⏳ Not Started |++### TIER 3: MEDIUM (Following Sprint) - ~30 hours++| Skill | Issue | Est. Hours | Status |+|-------|-------|------------|--------|+| cloudflare-python-workers | Memory snapshots, Workflows, error handling | 4-5 | ⏳ Not Started |+| tanstack-start | Memory leak #5734 tracking, version updates | 2 | ⏳ Not Started |+| tanstack-table | Row/column pinning, expanding, grouping docs | 3-4 | ⏳ Not Started |+| nextjs | v16.0→16.1.1, 3 CVE security advisories | 2-3 | ⏳ Not Started |+| drizzle-orm-d1 | 0.44.7→0.45.1, drizzle-kit 0.31.8 | 1-2 | ⏳ Not Started |+| google-gemini-api | Gemini 3 Flash, structured output, v1.30→v1.34 | 3-4 | ⏳ Not Started |+| azure-auth | (audit result needed - agent hit limit) | 2-3 | ⏳ Not Started |+| tailwind-v4-shadcn | (audit result needed - agent hit limit) | 2-3 | ⏳ Not Started |++### TIER 4: LOW (When Time Permits) - ~15 hours++| Skill | Issue | Est. Hours | Status |+|-------|-------|------------|--------|+| Various minor version updates across ~10 skills | Package bumps only | 10-15 | ⏳ Not Started |++---++## Skills Already Current (No Updates Needed)++✅ hono-routing+✅ clerk-auth (6.36.5)+✅ zustand-state-management+✅ motion+✅ project-planning+✅ project-session-management+✅ project-workflow+✅ skill-creator+✅ skill-review+✅ mcp-cli-scripts+✅ wordpress-plugin-core+✅ vercel-kv+✅ vercel-blob+✅ open-source-contributions+✅ flask+✅ fastapi+✅ react-native-expo+✅ tinacms+✅ sveltia-cms+✅ streamlit-snowflake+✅ thesys-generative-ui+✅ ts-agent-sdk+✅ (+ ~10 more with minor/no gaps)++---++## Detailed Action Items by Skill++### fastmcp (URGENT)++**Version**: 2.13.0 → 2.14.1++**Changes Required**:+1. [ ] Update requirements.txt to `fastmcp>=2.14.0`+2. [ ] Add "Sampling with Tools" section+ - AnthropicSamplingHandler configuration+ - Tool definition for sampling+ - Structured output with Pydantic+3. [ ] Add "Background Tasks" section+ - `@mcp.background_task()` decorator+ - Progress tracking integration+ - Task lifecycle hooks+4. [ ] Document v2.14.0 breaking changes+ - Removed `BearerAuthProvider`+ - Removed `Context.get_http_request()`+5. [ ] Add Cyclopts v4 license warning+6. [ ] Update all version references in SKILL.md, README.md++---++### typescript-mcp (URGENT)++**Version**: 1.23.0 → 1.25.1++**Changes Required**:+1. [ ] Update to @modelcontextprotocol/[email protected] (security fix)+2. [ ] Add "Tasks" documentation (new core feature)+3. [ ] Add "Fetch Transport" section+4. [ ] Add "OAuth Client Credentials (M2M)" to auth guide+5. [ ] Document sampling patterns (SEP-1577)+6. [ ] Add elicitation guide+7. [ ] Create tasks-server.ts template+8. [ ] Create oauth-m2m-server.ts template+9. [ ] Add 5 new error patterns (#1291, #1308, #1342, #1314, #1354)++---++### tanstack-router (URGENT)++**Version**: 1.134.13 → 1.144.0+++**Changes Required**:+1. [ ] Update version references+2. [ ] Add virtual file routes documentation+3. [ ] Add search params validation patterns+4. [ ] Add error boundary patterns+5. [ ] Add beforeLoad hook documentation+6. [ ] Update migration guide for breaking changes+7. [ ] Add SSR patterns (if applicable)++---++## Session Log++| Date | Session | Work Done | Next Steps |+|------|---------|-----------|------------|+| 2026-01-03 | Initial Audit | Launched 68 parallel audits, compiled findings | Start TIER 1 updates |+| | | | |++---++## Notes++- Some agent audits hit usage limits and need re-running: azure-auth, tailwind-v4-shadcn+- google-chat-api has largest gap (~40% of API undocumented) - consider splitting work+- tanstack-router is significantly behind - may need dedicated session+- fastmcp changes are breaking - test thoroughly before releasing++---++## Completion Criteria++- [ ] All TIER 1 skills updated and tested+- [ ] All TIER 2 skills updated and tested+- [ ] Version numbers current across all skills+- [ ] VERSIONS_REPORT.md shows no critical gaps+- [ ] All skills pass `./scripts/check-all-versions.sh`diff --git a/planning/multi-agent-research-protocol.md b/planning/multi-agent-research-protocol.mdnew file mode 100644index 00000000..ac159974--- /dev/null+++ b/planning/multi-agent-research-protocol.md@@ -0,0 +1,372 @@+# Multi-Agent Research Protocol++**Purpose**: Patterns for launching parallel sub-agent swarms to research, audit, or gather context about large sets of items efficiently.++**Last Updated**: 2026-01-03+**Proven Scale**: 68 agents in parallel (skills audit), 9 agents (rules audit)++---++## When to Use Multi-Agent Research++| Use Case | Example | Agent Count |+|----------|---------|-------------|+| **Full Repository Audit** | Audit all 68 skills against official docs | 50-70 agents |+| **Category Audit** | Audit all Cloudflare skills (20 skills) | 15-25 agents |+| **Rules Audit** | Audit all 49 user-level rules | 8-12 agents (grouped) |+| **Documentation Research** | Research 10 frameworks for comparison | 10 agents |+| **Version Check** | Check latest versions across all dependencies | 10-20 agents |+| **Codebase Exploration** | Understand large unfamiliar codebase | 5-10 agents |++---++## Key Discoveries (From Jan 2026 Audit)++### Agent Limits++| Factor | Finding |+|--------|---------|+| **Hard cap** | None discovered - 68 agents ran successfully |+| **Practical limit** | Token usage, not agent count |+| **Optimal batch** | 8-12 agents per category for manageable output |+| **Agent type** | `subagent_type: "Explore"` for research tasks |++### Timing++| Phase | Duration |+|-------|----------|+| Agent launch | ~30 seconds for 68 parallel calls |+| Agent execution | 2-5 minutes each (varies by research depth) |+| Output retrieval | ~1 minute per agent (can batch) |+| Total (68 agents) | ~10-15 minutes end-to-end |++---++## The Pattern++### Step 1: Identify Items to Research++```bash+# Skills+ls skills/ | wc -l # Count skills++# Rules+find ~/.claude/rules -name "*.md" | wc -l # Count user rules+find skills -path "*/rules/*.md" | wc -l # Count skill rules++# Any directory+find /path/to/items -type f -name "*.ext" | wc -l+```++### Step 2: Organize into Logical Batches++Group by domain/category for better agent prompts:++**Skills Example**:+```+Batch 1: AI/ML (ai-sdk-core, openai-api, claude-api, etc.) - 10 skills+Batch 2: Cloudflare Core (worker-base, d1, r2, kv) - 6 skills+Batch 3: Cloudflare Advanced (agents, workflows, queues) - 6 skills+Batch 4: Frontend (tailwind, react-hook-form, motion) - 5 skills+Batch 5: Auth (clerk, better-auth) - 3 skills+...+```++**Rules Example**:+```+Batch 1: Cloudflare (workers, deploy, ai-gateway) - 9 rules+Batch 2: OAuth (github, microsoft, mcp-oauth) - 6 rules+Batch 3: Snowflake (native-app, marketplace, streamlit) - 5 rules+Batch 4: Frontend (css-tailwind, react-patterns, lucide) - 5 rules+...+```++### Step 3: Create Agent Prompt Template++**For Audits (comparing against official docs)**:+```+Audit the [CATEGORY] [items]:+- [item1]+- [item2]+- [item3]++Check against official [FRAMEWORK] documentation for:+1. NEW features not documented+2. DEPRECATED patterns still recommended+3. BREAKING CHANGES not reflected+4. VERSION updates needed+5. Missing common patterns++Report: Accuracy %, gaps found, recommended updates with priority (HIGH/MEDIUM/LOW).+```++**For Research (gathering information)**:+```+Research [TOPIC] across these sources:+- [source1]+- [source2]++Gather:+1. Current best practices+2. Common patterns+3. Known issues/gotchas+4. Version-specific guidance+5. Integration points++Create structured summary with actionable recommendations.+```++**For Exploration (understanding existing code)**:+```+Explore [AREA] of the codebase:+- [file/directory1]+- [file/directory2]++Identify:+1. Architecture patterns used+2. Key dependencies+3. Entry points+4. Data flow+5. Potential issues++Return: Architecture summary, dependency graph, key files to understand.+```++### Step 4: Launch Parallel Agents++Use the Task tool with multiple invocations in a SINGLE message:++```+Task 1: subagent_type="Explore", prompt="[Batch 1 prompt]", description="Audit Batch 1"+Task 2: subagent_type="Explore", prompt="[Batch 2 prompt]", description="Audit Batch 2"+Task 3: subagent_type="Explore", prompt="[Batch 3 prompt]", description="Audit Batch 3"+... (all in one message)+```++**Critical**: All Task calls must be in the SAME message to run in parallel.++### Step 5: Wait and Retrieve Results++Agents run in background. When complete, system shows:+```+Task [id] (type: local_agent) (status: completed) (description: Audit Batch 1)+```++Use TaskOutput to retrieve:+```+TaskOutput: task_id="[agent-id]"+```++Or wait for all to complete naturally - results stream in as agents finish.++### Step 6: Compile and Track++Create a planning document to survive context compacts:++**Naming Convention**:+- `planning/SKILL_UPDATES_[MONTH]_[YEAR].md` - Skill audit findings+- `planning/RULES_UPDATES_[MONTH]_[YEAR].md` - Rules audit findings+- `planning/[TOPIC]_RESEARCH_[DATE].md` - General research++**Document Structure**:+```markdown+# [Topic] - [Date]++## Summary+- Total items: X+- Items needing updates: Y+- Estimated effort: Z hours++## Priority Tiers+### TIER 1: URGENT+| Item | Issue | Est Hours | Status |+|------|-------|-----------|--------|++### TIER 2: HIGH+...++## Already Current (No Updates)+- item1+- item2++## Session Log+| Date | Work Done | Next Steps |+|------|-----------|------------|++## Completion Criteria+- [ ] All TIER 1 complete+- [ ] All TIER 2 complete+```++---++## Batching Strategies++### Strategy 1: One Agent Per Item (Small Sets)+- Best for: <20 items+- Each agent gets ONE item to research deeply+- Maximum detail per item++### Strategy 2: Grouped by Category (Medium Sets)+- Best for: 20-100 items+- Group 5-10 related items per agent+- Good balance of depth and efficiency++### Strategy 3: All at Once (Large Sets)+- Best for: Known patterns, quick checks+- Launch one agent per item but with focused prompts+- "Check X against Y, report accuracy %"++---++## Output Consolidation Patterns++### Pattern 1: Accuracy Matrix+```markdown+| Category | Files | Accuracy | Priority |+|----------|-------|----------|----------|+| Auth | 2 | 70% | URGENT |+| Frontend | 5 | 92% | MEDIUM |+```++### Pattern 2: Gap Analysis+```markdown+| Item | Gap Type | Description | Est Hours |+|------|----------|-------------|-----------|+| clerk-auth | Breaking Change | API v1 deprecated | 1h |+```++### Pattern 3: Version Tracking+```markdown+| Package | Current | Latest | Skill |+|---------|---------|--------|-------|+| drizzle-orm | 0.44.7 | 0.45.1 | drizzle-orm-d1 |+```++---++## Real Examples from Jan 2026++### Skills Audit (68 agents)++**Launch Command Pattern**:+```+"Audit [skill-name] skill. Read skills/[name]/SKILL.md.+Check against official docs at [url].+Report: NEW features missing, DEPRECATED patterns, BREAKING changes,+VERSION updates. Provide accuracy % and priority recommendations."+```++**Results**:+- 68 agents launched in parallel+- All completed within 10 minutes+- Findings compiled into `planning/SKILL_UPDATES_JAN_2026.md`+- 36 skills identified for updates (~100 hours work)++### Rules Audit (9 agents, grouped)++**Grouping**:+- AI Gateway (2 rules) → 1 agent+- Cloudflare Workers (6 rules) → 1 agent+- OAuth (6 rules) → 1 agent+- Snowflake (5 rules) → 1 agent+- Frontend (5 rules) → 1 agent+- Database (4 rules) → 1 agent+- Auth (2 rules) → 1 agent+- Build/Tooling (6 rules) → 1 agent+- Misc (8 rules) → 1 agent++**Results**:+- 9 agents completed in ~5 minutes+- Findings compiled into `planning/RULES_UPDATES_JAN_2026.md`+- 18 rules identified for updates (~12 hours work)+- 25 rules confirmed 100% accurate++---++## Best Practices++### DO+- ✅ Launch all agents in ONE message (parallel execution)+- ✅ Group related items for coherent agent prompts+- ✅ Create persistent planning docs for multi-session work+- ✅ Include specific deliverables in prompts (accuracy %, tables)+- ✅ Use `subagent_type: "Explore"` for research tasks++### DON'T+- ❌ Launch agents one at a time (serial execution)+- ❌ Mix unrelated items in same agent prompt+- ❌ Forget to create tracking documents+- ❌ Use vague prompts ("check if this is current")+- ❌ Ignore agent outputs (compile them!)++---++## Template: Full Audit Prompt++```+Deep audit for [ITEM_NAME]++## Files to Analyze+- [file1]+- [file2]++## Official Documentation+- Primary: [URL]+- Changelog: [URL]++## Check For+1. NEW features in official docs not in our files+2. DEPRECATED patterns we still recommend+3. BREAKING CHANGES we don't document+4. VERSION updates needed (packages, APIs)+5. MISSING common patterns developers need++## Output Format++### Accuracy Score: X%++### Gaps Found+| Gap | Type | Priority | Est Hours |+|-----|------|----------|-----------|++### Recommendations+1. URGENT: ...+2. HIGH: ...+3. MEDIUM: ...++### Sources Consulted+- [url1]+- [url2]+```++---++## Maintenance++### When to Re-Audit+- Quarterly for all items+- After major framework releases+- After user reports of outdated content+- Before major project milestones++### Tracking Audit History++Add to each planning document:+```markdown+## Audit History+| Date | Items | Agents | Findings | Actions |+|------|-------|--------|----------|---------|+| 2026-01-03 | 68 skills | 68 | 36 updates | Pending |+| 2026-01-03 | 49 rules | 9 | 18 updates | Pending |+```++---++## Related Files++- `planning/skill-audit-protocol.md` - Skills-specific audit details+- `planning/SKILL_UPDATES_JAN_2026.md` - Current skill audit findings+- `planning/RULES_UPDATES_JAN_2026.md` - Current rules audit findings+- `scripts/check-all-versions.sh` - Automated version checking+diff --git a/planning/skill-audit-protocol.md b/planning/skill-audit-protocol.mdnew file mode 100644index 00000000..24296e79--- /dev/null+++ b/planning/skill-audit-protocol.md@@ -0,0 +1,212 @@+# Skill Audit Protocol++**Purpose**: Systematic deep-dive into official documentation to identify gaps, outdated patterns, and missing features in skills.++**Last Updated**: 2026-01-03+**Recommended Frequency**: Quarterly, or after major version releases+**Related**: See `multi-agent-research-protocol.md` for general parallel agent patterns++---++## When to Run Audits++| Trigger | Scope |+|---------|-------|+| **Quarterly Review** | All skills (batch by priority) |+| **Major Version Release** | Affected skill only (e.g., AI SDK v6, TanStack Query v5) |+| **User Report** | Specific skill flagged as outdated |+| **New Framework Feature** | Skills that integrate with it |++---++## Audit Process++### Step 1: Prioritize Skills++Run version checker first to identify outdated packages:++```bash+./scripts/check-all-versions.sh+```++Review `VERSIONS_REPORT.md` and prioritize:+1. **Critical**: Major version behind, breaking changes likely+2. **High**: Minor version behind, new features available+3. **Medium**: Patch version behind, mostly fixes+4. **Low**: Up to date, periodic review only++### Step 2: Launch Parallel Sub-Agents++Use Task tool with `subagent_type: "Explore"` to research multiple skills simultaneously:++```+Task: Deep dive documentation audit for [skill-name]++Research the official [framework] documentation thoroughly:+1. Read our current skill: skills/[skill-name]/SKILL.md+2. Fetch and analyze official docs (main features, guides, API reference)+3. Check changelog/release notes for recent changes+4. Identify:+ - NEW features not in our skill+ - DEPRECATED patterns we still recommend+ - BREAKING CHANGES we don't document+ - MISSING patterns (common use cases)+ - VERSION updates needed++Create a structured report with:+- Feature gaps table (feature | description | priority)+- Breaking changes table+- Recommended additions (HIGH/MEDIUM/LOW priority)+- Package version updates needed++Focus on: What would a developer need that we don't provide?+```++**Parallel Execution**: Launch ALL agents simultaneously in a single message. No practical limit - 68 agents ran successfully in Jan 2026 audit. Each agent takes 2-5 minutes. See `planning/multi-agent-research-protocol.md` for full patterns.++### Step 3: Compile Findings++After all agents complete, consolidate into priority matrix:++| Skill | Critical | High | Medium | Low |+|-------|----------|------|--------|-----|+| skill-a | X | X | X | X |+| skill-b | X | X | X | X |++### Step 4: Update Skills++Work through skills in priority order:+1. **Critical** items first (breaking changes, deprecated patterns)+2. **High** items next (new major features)+3. **Medium** items if time permits+4. **Low** items can wait for next audit++### Step 5: Document Changes++For each skill updated:+1. Update version in SKILL.md metadata+2. Add new sections/patterns+3. Update README.md keywords if needed+4. Regenerate marketplace manifest: `./scripts/generate-plugin-manifests.sh`+5. Commit with descriptive message++---++## Sub-Agent Prompt Template++```+Deep dive documentation audit for [SKILL_NAME]++## Instructions++1. Read our current skill file: skills/[SKILL_NAME]/SKILL.md+2. Fetch official documentation:+ - Main docs: [PRIMARY_DOCS_URL]+ - API reference: [API_DOCS_URL]+ - Changelog: [CHANGELOG_URL]+3. Compare what we document vs what's available+4. Identify gaps, outdated patterns, missing features++## Output Format++### NEW FEATURES Not in Our Skill+| Feature | Description | Priority |+|---------|-------------|----------|+| ... | ... | HIGH/MEDIUM/LOW |++### DEPRECATED Patterns We Still Document+| Pattern | Replacement | Notes |+|---------|-------------|-------|+| ... | ... | ... |++### BREAKING CHANGES We Don't Cover+| Change | Impact | Notes |+|--------|--------|-------|+| ... | ... | ... |++### MISSING Patterns+| Pattern | Use Case | Priority |+|---------|----------|----------|+| ... | ... | HIGH/MEDIUM/LOW |++### VERSION Updates Needed+| Package | Current | Latest |+|---------|---------|--------|+| ... | ... | ... |++### RECOMMENDATIONS+1. HIGH: [what to add immediately]+2. MEDIUM: [what to add soon]+3. LOW: [nice to have]+```++---++## Documentation URLs by Skill++Keep this list updated for quick reference:++| Skill | Primary Docs | Changelog |+|-------|--------------|-----------|+| ai-sdk-core | https://ai-sdk.dev/docs | https://ai-sdk.dev/changelog |+| ai-sdk-ui | https://ai-sdk.dev/docs/ai-sdk-ui | https://ai-sdk.dev/changelog |+| better-auth | https://www.better-auth.com/docs | https://github.com/better-auth/better-auth/releases |+| clerk-auth | https://clerk.com/docs | https://clerk.com/changelog |+| cloudflare-worker-base | https://developers.cloudflare.com/workers | https://github.com/cloudflare/workers-sdk/releases |+| cloudflare-d1 | https://developers.cloudflare.com/d1 | https://developers.cloudflare.com/d1/changelog |+| drizzle-orm-d1 | https://orm.drizzle.team/docs | https://github.com/drizzle-team/drizzle-orm/releases |+| hono-routing | https://hono.dev/docs | https://github.com/honojs/hono/releases |+| openai-api | https://platform.openai.com/docs | https://platform.openai.com/docs/changelog |+| tanstack-query | https://tanstack.com/query/latest/docs | https://github.com/TanStack/query/releases |+| tailwind-v4-shadcn | https://tailwindcss.com/docs | https://github.com/tailwindlabs/tailwindcss/releases |++---++## Audit History++Track completed audits here:++| Date | Skills Audited | Findings | Updates Made |+|------|----------------|----------|--------------|+| 2026-01-03 | ai-sdk, clerk, tanstack-query, drizzle, hono, openai | AI SDK v6 breaking changes, Clerk API Keys beta, TanStack v5 hooks | Pending |+| 2026-01-03 | better-auth | 8 plugins, rate limiting, session caching, Expo | v5.0.0 released |++---++## Automation Ideas++### Future: Scheduled Audit Script++```bash+#!/bin/bash+# scripts/audit-skills.sh - Run quarterly++# 1. Check versions+./scripts/check-all-versions.sh++# 2. Parse VERSIONS_REPORT.md for outdated skills+# 3. Generate audit prompts+# 4. (Manual) Run sub-agents in Claude Code+# 5. (Manual) Update skills based on findings+```++### Future: Changelog Monitoring++Consider setting up GitHub Actions or RSS monitoring for:+- Major releases of tracked packages+- Breaking change announcements+- Deprecation notices++---++## Quality Checklist++After updating a skill from audit findings:++- [ ] All HIGH priority gaps addressed+- [ ] Breaking changes documented with migration path+- [ ] Deprecated patterns removed or marked deprecated+- [ ] Version numbers updated in SKILL.md+- [ ] README.md keywords updated+- [ ] Marketplace manifest regenerated+- [ ] Commit message references audit findings