Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
refactor(agents): Add confidence ratings, coordination, and stop conditions
Jeremy Dawes7370a2451085
diff --git a/.claude/agents/api-method-checker.md b/.claude/agents/api-method-checker.mdindex f2a139cc..4b5b1a3d 100644--- a/.claude/agents/api-method-checker.md+++ b/.claude/agents/api-method-checker.md@@ -352,6 +352,93 @@ Flag for manual review:- Removed features with no direct replacement- Multiple possible replacements+## Confidence Ratings++Rate each API verification with confidence:++| Confidence | Meaning | Evidence Required |+|------------|---------|-------------------|+| **HIGH** | Definitively verified | Found in .d.ts exports, or confirmed not present |+| **MEDIUM** | Likely correct | Found in changelog, but can't verify types directly |+| **LOW** | Uncertain | Conflicting sources, or couldn't access package |++### Rating Guidelines++**HIGH confidence** when:+- Downloaded package and grep'd TypeScript definitions+- `npm view` returned definitive export list+- Method signature verified against .d.ts file++**MEDIUM confidence** when:+- Found info in changelog but couldn't verify types+- Method exists but signature might have changed+- Using web-researcher results (second-hand source)++**LOW confidence** when:+- Package download failed+- Multiple versions have different APIs+- Relying on documentation alone (docs can lag)++### Output Format with Confidence++```markdown+| Method | Status | Confidence | Verification Method |+|--------|--------|------------|---------------------|+| generateText | ✅ Exists | HIGH | Grep'd dist/index.d.ts |+| topK option | ❌ Not found | HIGH | Not in GenerateTextOptions interface |+| experimental_X | ⚠️ Still experimental | MEDIUM | Export pattern shows re-aliasing |+```++## Cross-Agent Coordination++### Findings to Share++| Finding | Suggest Agent | Reason |+|---------|---------------|--------|+| Method renamed | **code-example-validator** | Should update all usages in skill |+| New required parameter | **content-accuracy-auditor** | Should document the change |+| Deprecated method | **content-accuracy-auditor** | Should add to Known Issues |+| Signature changed | **code-example-validator** | Should verify examples still valid |++### Handoff Format++```markdown+### Suggested Follow-up++**For code-example-validator**: The `rerank()` function uses `topN` not `topK`.+Check all code examples in the skill for this parameter name.++**For content-accuracy-auditor**: The `experimental_telemetry` option has new+fields in v6.0.26. Check if documentation covers all options.+```++## Stop Conditions++### When to Stop Checking++**Stop and report** when:+- All documented methods have been verified+- Package clearly doesn't match documented version+- Found 5+ critical issues (batch report, ask to continue)++**Escalate to human** when:+- Package requires authentication to access+- Types are not published (JS-only package)+- Version mismatch between skill and npm (which to trust?)++### Verification Limits++**Don't over-verify**:+- Max 3 attempts to download/access package+- Max 2 web-researcher delegations per audit+- If types unavailable, note it and move on++**When package access fails**:+1. Note the failure+2. Mark findings as LOW confidence+3. Suggest manual verification+4. Continue with other methods+## IntegrationThis agent verifies API EXISTENCE. Related agents:diff --git a/.claude/agents/code-example-validator.md b/.claude/agents/code-example-validator.mdindex 841ca207..34e1daff 100644--- a/.claude/agents/code-example-validator.md+++ b/.claude/agents/code-example-validator.md@@ -322,6 +322,94 @@ Flag for manual review:- Multiple possible fixes- Context-dependent corrections+## Confidence Ratings++Rate each finding with confidence level:++| Confidence | Meaning | When to Use |+|------------|---------|-------------|+| **HIGH** | Certain this is wrong | Syntax error caught by parser, method definitively not in exports |+| **MEDIUM** | Likely wrong, needs verification | Pattern matches known error, but context unclear |+| **LOW** | Possibly wrong, uncertain | Might be correct for specific version/context |++### Rating Guidelines++**HIGH confidence** when:+- TypeScript compiler reports syntax error+- `npm view` confirms method/export doesn't exist+- Pattern exactly matches known error database++**MEDIUM confidence** when:+- Method name looks similar to known error (topK vs topN)+- Import uses experimental_ but might still be valid+- Code works but uses deprecated pattern++**LOW confidence** when:+- Can't verify without full context+- Multiple valid interpretations exist+- Might be intentional for compatibility++### Output Format with Confidence++```markdown+| Issue | Line | Confidence | Reasoning |+|-------|------|------------|-----------|+| `topK` should be `topN` | 234 | HIGH | Verified: topK not in [email protected] exports |+| `experimental_` prefix | 156 | MEDIUM | May still be experimental in current version |+| Missing await | 89 | LOW | Context unclear, might be sync variant |+```++## Cross-Agent Coordination++When findings need deeper verification, suggest follow-up:++| Finding | Suggest Agent | Reason |+|---------|---------------|--------|+| Uncertain method name | **api-method-checker** | Can verify against TypeScript definitions |+| experimental_ prefix | **api-method-checker** | Can check if API graduated to stable |+| Missing feature in code | **content-accuracy-auditor** | Can check if feature exists in official docs |+| Version mismatch suspected | **version-checker** | Can verify current package versions |++### Handoff Format++When suggesting follow-up:+```markdown+### Suggested Follow-up++**For api-method-checker**: Verify if `experimental_generateSpeech` has graduated+to stable `generateSpeech` in [email protected].++**For content-accuracy-auditor**: Check if the `rerank()` function uses `topK` or+`topN` in official Vercel AI SDK documentation.+```++## Stop Conditions++### When to Stop Validating++**Stop and report** when:+- All code blocks have been checked+- Found 10+ issues (report batch, ask if should continue)+- Encountered 3+ consecutive unverifiable blocks++**Escalate to human** when:+- Package not installable (`npm view` fails)+- Conflicting information (docs say X, types say Y)+- Code requires runtime to validate (API calls, env vars)++### Don't Over-Investigate++**Avoid rabbit holes**:+- Don't trace through entire dependency trees+- Don't attempt to run code that requires secrets/APIs+- Don't spend more than 2-3 verification attempts per issue++**When uncertain after reasonable effort**:+1. Mark confidence as LOW+2. Note what was tried+3. Suggest which agent could verify further+4. Move on to next issue+## IntegrationThis agent validates CODE SYNTAX. Related agents:diff --git a/.claude/agents/content-accuracy-auditor.md b/.claude/agents/content-accuracy-auditor.mdindex 0fab6149..cd5f9b5b 100644--- a/.claude/agents/content-accuracy-auditor.md+++ b/.claude/agents/content-accuracy-auditor.md@@ -319,6 +319,110 @@ For each missing feature identified:5. **Performance features** - New optimization options6. **Breaking changes** - Renamed/removed methods+## Confidence Ratings++Rate each gap/finding with confidence:++| Confidence | Meaning | Evidence Required |+|------------|---------|-------------------|+| **HIGH** | Definitely missing/wrong | Feature clearly in official docs, absent from skill |+| **MEDIUM** | Likely missing | Found in docs but context unclear, or fetch was partial |+| **LOW** | Possibly missing | Couldn't fully verify, or might be intentionally omitted |++### Rating Guidelines++**HIGH confidence** when:+- Feature prominently documented in official docs+- WebFetch returned complete page content+- Feature is core functionality (not edge case)++**MEDIUM confidence** when:+- Found feature in search results but couldn't fetch full docs+- Used Firecrawl fallback (may have missed content)+- Feature is in changelog but not main docs++**LOW confidence** when:+- Couldn't access official documentation+- Feature might be deprecated or version-specific+- Skill might intentionally exclude (advanced/edge case)++### Output Format with Confidence++```markdown+### Missing Features++| Feature | Confidence | Source | Impact |+|---------|------------|--------|--------|+| Factory helpers | HIGH | /docs/helpers/factory | Common use case |+| SSG helpers | MEDIUM | Found in search, partial fetch | Specialized |+| Context storage | LOW | Mentioned in changelog only | Advanced |+```++## Cross-Agent Coordination++### Findings to Share++| Finding | Suggest Agent | Reason |+|---------|---------------|--------|+| Wrong version in skill | **version-checker** | Should update package references |+| Deprecated pattern in skill | **code-example-validator** | Should check/update code examples |+| New API not in skill | **api-method-checker** | Should verify API exists before adding |+| Breaking change found | **code-example-validator** | Should check if examples still work |++### Handoff Format++```markdown+### Suggested Follow-up++**For version-checker**: Skill references Zod 4.3.5 but current stable is 3.24.1.+This is a major version error that needs correction.++**For api-method-checker**: Before adding the new `createMiddleware()` helper,+verify it exists in [email protected] exports.++**For code-example-validator**: The JWT middleware now requires explicit `alg`+parameter. Check if skill examples include this security requirement.+```++## Stop Conditions++### When to Stop Auditing++**Stop and report** when:+- Compared against all major documentation sections+- Found 15+ missing features (batch report, prioritize)+- Coverage score calculated++**Escalate to human** when:+- Documentation is behind a paywall/login+- Official docs are significantly outdated vs package+- Can't determine authoritative source (multiple conflicting docs)++### Fetch Limits++**Don't over-fetch**:+- Max 5 documentation pages per audit+- Max 2 web-researcher delegations+- If Firecrawl fails, note it and use search results++**When docs inaccessible**:+1. Note which URLs failed+2. Use WebSearch to find alternative sources+3. Mark findings as MEDIUM/LOW confidence+4. Suggest manual verification++### Scope Management++**Focus on high-impact gaps**:+- Core API features (most users need)+- Breaking changes (cause errors)+- Security updates (critical)++**Deprioritize**:+- Niche/advanced features+- Internal/private APIs+- Platform-specific variants+## Integration with Other AgentsThis agent focuses on WHAT is missing. Related agents handle: