Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add smicolon/ai-kit --skill cloudflare-bindingsgit clone --depth 1 https://github.com/smicolon/ai-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/smicolon/ai-kit/cloudflare-bindings)<a href="https://agentmods.dev/skills/smicolon/ai-kit/cloudflare-bindings"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/cloudflare-bindings/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/smicolon/ai-kit/cloudflare-bindings"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/cloudflare-bindings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.02223 |
| Opus 5.5 | $0.00019 | $0.00889 |
| Sonnet 5.5 | $0.00009 | $0.00445 |
| Haiku 4.5 | $0.00005 | $0.00222 |
Grade A, and why
cloudflare-bindings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 409 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cloudflare Bindings
Patterns for Cloudflare Workers bindings in Hono.
Type Definitions
Define all bindings in a central type:
// types/bindings.ts
export type Env = {
Bindings: {
// D1 Database
DB: D1Database
// KV Namespace
KV: KVNamespace
// R2 Bucket
BUCKET: R2Bucket
// Durable Object
COUNTER: DurableObjectNamespace
// Environment Variables
ENVIRONMENT: 'development' | 'staging' | 'production'
API_KEY: string
JWT_SECRET: string
}
Variables: {
user: User
requestId: string
}
}
D1 Database
Basic Queries
app.get('/users', async (c) => {
const db = c.env.DB
// Select all
const { results } = await db
.prepare('SELECT * FROM users WHERE deleted_at IS NULL')
.all()
return c.json({ data: results })
})
app.get('/users/:id', async (c) => {
const db = c.env.DB
const id = c.req.param('id')
// Select one
const user = await db
.prepare('SELECT * FROM users WHERE id = ?')
.bind(id)
.first()
if (!user) {
return c.json({ error: 'User not found' }, 404)
}
return c.json({ data: user })
})
Insert and Update
app.post('/users', async (c) => {
const db = c.env.DB
const { email, name } = c.req.valid('json')
const id = crypto.randomUUID()
const result = await db
.prepare('INSERT INTO users (id, email, name) VALUES (?, ?, ?)')
.bind(id, email, name)
.run()
return c.json({ data: { id, email, name } }, 201)
})
app.put('/users/:id', async (c) => {
const db = c.env.DB
const id = c.req.param('id')
const { name } = c.req.valid('json')
await db
.prepare('UPDATE users SET name = ?, updated_at = datetime("now") WHERE id = ?')
.bind(name, id)
.run()
return c.json({ data: { id, name } })
})
Transactions (Batch)
app.post('/transfer', async (c) => {
const db = c.env.DB
const { fromId, toId, amount } = c.req.valid('json')
// D1 batch for transaction-like behavior
const results = await db.batch([
db.prepare('UPDATE accounts SET balance = balance - ? WHERE id = ?')
.bind(amount, fromId),
db.prepare('UPDATE accounts SET balance = balance + ? WHERE id = ?')
.bind(amount, toId),
db.prepare('INSERT INTO transfers (from_id, to_id, amount) VALUES (?, ?, ?)')
.bind(fromId, toId, amount)
])
return c.json({ success: true })
})
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 409 lines · 47 tokens per session scan A 17b8ff0feee4
cloudflare-bindings is a skill published in the GitHub repository smicolon/ai-kit (7 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 2,223 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
cloudflare-bindings compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloudflare-bindingssmicolon/ai-kit | Skill | 7 | 2mo ago | MIT | A | 47 | Claude Code |
| sse-streamingfabioc-aloha/Alex_Skill_Mall | Skill | 6 | 2d ago | MIT | A | 26 | Claude Code, Codex |
| designing-architecturestelagod/code-abyss | Skill | 244 | 4mo ago | MIT | A | 43 | Claude Code |
| btpvigneshbarani24/sap-superpowers | Skill | 14 | 3mo ago | MIT | A | 46 | Claude Code |
| integration-suitevigneshbarani24/sap-superpowers | Skill | 14 | 3mo ago | MIT | A | 53 | Claude Code |
| Pynchy Opscrypdick/pynchy | Skill | 10 | 2mo ago | MIT | B | 110 | Claude Code |
| n8n-workflowinbharatai/claude-skills | Skill | 44 | 8mo ago | MIT | A | 26 | Claude Code, Codex |