跪拜 Guibai
← All articles
Claude · AI Programming · Open Source

Running Cloudflare's 37k-Star Security Audit Skill in Claude Code Without Burning the Budget

By 孟健AI编程 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

An unmodified full scan can break a one-person company's budget in a single run, and Cloudflare has published no accuracy, false-positive, or token-cost numbers to plan around. Scoping the skill to the paths that actually take payments and isolate tenants turns it from a cost risk into a usable safety net.

Summary

Cloudflare's `security-audit-skill` is an MIT-licensed Agent Skill that grew from about 450 lines into the framework behind continuous scans of Cloudflare's 128 codebases. It passed 37,000 GitHub stars by October 22, 2026, after a September refactor split the runtime into six phases and eight audit dimensions. Cloudflare has not published accuracy, false-positive, or token-cost numbers, and the skill is designed for agents that support parallel sub-agents, which is exactly what makes an unmodified run expensive.

A state-machine gate in CLAUDE.md, built by independent developer Meng Jian, keeps audits accountable. The rules only enter reconnaissance when a diff touches auth, payment callbacks, tenant queries, or prompt assembly; they cap concurrent hunters at two, verify candidates with the skill's local Node.js validators, and abort when context limits are hit or changes are pure UI. The recommended path is to run targeted audits on payment and multi-tenant paths and to skip the skill entirely for static sites, local scripts, and layout-only tools.

Takeaways
— Cloudflare open-sourced `security-audit-skill` under MIT in June 2026; a September 2026 refactor reworked the workflow, result format, and validators.
— The skill started around 450 lines and became, within about six weeks, the framework that continuously scans Cloudflare's 128 codebases; the full cluster-level framework remains private.
— GitHub stars climbed from 25.6k in early October to 33k on October 20, then 37k by October 22, with growth around 2,000 stars per day.
— The runtime is six phases: reconnaissance, coverage-driven hunting, candidate validation, structured output, and independent record verification.
— It checks eight security dimensions, from web/auth and client-side code to supply chain, RPC, tenant isolation, native/mobile, and AI/LLM-specific files.
— Cloudflare has not published the skill's accuracy, false-positive rate, per-run token cost, or best model choices; discovery and validation use different models.
— A scoped state machine in CLAUDE.md uses four states: RECON_SCOPED, HUNT_TARGETED, VERIFY_LOCAL, and AUDIT_ABORT.
— RECON_SCOPED triggers only when a diff touches auth, payment callbacks, tenant data queries, or LLM prompt assembly, and stops after 15 files if nothing is hit.
— HUNT_TARGETED caps concurrent sub-agents at two and only traces paths in the listed files.
— VERIFY_LOCAL uses the skill's built-in Node.js validators to drop theoretical false positives.
— AUDIT_ABORT suspends the workflow when cumulative context exceeds a threshold or changes are pure UI/layout.
— The adoption test: use the skill when Stripe/PayPal webhooks or multi-tenant data exist; skip it for static sites, local scripts, and pure layout tools.
Conclusions

The expensive part of a full scan sits in the context sub-agents drag in while hunting through dimensions irrelevant to the codebase, such as native mobile checks on a web project or stylesheet-heavy diffs in RPC analysis.

Because Cloudflare has not published accuracy, false-positive, or cost baselines, the 37,000-star skill is still an unmeasured tool; the state-machine constraints are a practical substitute for missing vendor metrics.

The AAIF handover changes governance rather than day-to-day use: loading, folder format, and runtime interface stay identical, so the standardization is mainly a migration-cost play, not a breaking change.

For a solo operator, tokens are production overhead, not a magic resource; the 'maximize sales, minimize expenses' framing makes AI context throughput a line item to trim like any other cost.

Concepts & terms
Agent Skills
An open standard for defining reusable agent capabilities. Skills are loaded by coding agents as folders, and Anthropic donated the standard to AAIF in October 2026.
AAIF
The Linux Foundation-affiliated body that now hosts Agent Skills and other agent-related projects. Anthropic, Block, and OpenAI co-founded it in late 2025.
security-audit-skill
Cloudflare's MIT-licensed Agent Skill for automated security auditing. It runs a six-phase workflow across eight security dimensions and is built for coding agents that support tool calling and parallel sub-agents.
zero-dependency validator
A bundled Node.js script that verifies the skill's structured output without external packages. It runs locally and is used to discard candidates that cannot form a real call chain.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗