cloudflare-d1-knowledge-patch

cloudflare-d1-knowledge-patch is a skill for Claude Code, Codex from Nevaberry/nevaberry-plugins. It costs 13 tokens per session (1,732 once invoked), scanned A, original, MIT.

A reference guide for Cloudflare D1, a managed SQLite database service. It covers database bindings, SQL, replication, migrations, backups, placement, limits, and operational debugging.

In plain words
What is it for?
Use it when designing, implementing, migrating, operating, or debugging D1 databases, including SQL queries, read replication, migrations, backups, restores, imports, exports, placement, and error handling.
Why use it?
It helps prevent mistakes caused by different local and remote commands, database generations, account plans, permissions, or binding behavior.

Skill for Claude CodeCodex

Part of the knowledge-patch plugin — 57 skills, 1 hook shipped together

Install

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.

agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/cloudflare-d1-knowledge-patch
Any agent
npx skills add Nevaberry/nevaberry-plugins --skill cloudflare-d1-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code, Codex.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 57 skills, 1 hook.

Wrote 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.

agentmods badge for cloudflare-d1-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/cloudflare-d1-knowledge-patch.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/cloudflare-d1-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/cloudflare-d1-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/cloudflare-d1-knowledge-patch.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,732 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.01732
Opus 5 $0.00006 $0.00866
Sonnet 5 $0.00003 $0.00346
Haiku 4.5 $0.00001 $0.00173

Measured 4d ago against content hash 041372534a04, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare-d1-knowledge-patch 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 4d 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.

plugins/knowledge-patch/patches-claude/cloudflare-d1-knowledge-patch/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare D1 Knowledge Patch

Use this skill when designing, implementing, migrating, operating, or debugging Cloudflare D1 databases. Check the project’s Wrangler configuration, binding usage, database generation, account plan, and remote-versus-local command flags before applying guidance.

Reference index

Reference Topics
references/binding-and-sql.md Binding conversions, prepared statements, result modes, exec(), SQLite extensions, PRAGMAs
references/read-replication.md Sessions, bookmarks, consistency, replication controls, replica placement, metadata, billing
references/migrations-and-local-development.md Nested migration discovery, Pages bindings, local persistence, remote/local command safety
references/backup-restore-and-transfer.md Alpha dumps, Time Travel, restore undo, SQLite imports, exports, long-term retention
references/placement-jurisdictions-and-limits.md Primary placement, location hints, jurisdictions, storage limits
references/operations-and-debugging.md HTTP API permissions, retries, result diagnostics, error handling and remediation

Breaking behavior and removed paths

Require D1 write permission for HTTP API writes

Tokens that write through the D1 HTTP API must explicitly include D1:Edit. D1:Read combined with an edit permission for another product does not grant D1 write access.

Do not plan around alpha backup commands

wrangler d1 backup cannot create or access backups for alpha databases. An alpha backup created before that access was removed may still be used to migrate data into a new generally available database.

The binding’s dump() API is separate and works only for alpha-generation databases. Confirm generation with:

Read the full file on GitHub · 195 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 4d ago First seen · 195 lines · 13 tokens per session scan A 041372534a04

Subscribe to this mod's changes

cloudflare-d1-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (24 stars, last pushed 7d ago), licensed MIT. It adds 13 tokens to every session and 1,732 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/obsidian-mcp-server · 85 tokens

api-mirror

Stand up a persistent, self-refreshing local mirror of a bulk upstream dataset with the MirrorService (@cyanheads/mcp-ts-core/mirror). Use when a server wraps a large or slow API and should query a synced local index (embedded SQLite + FTS5) instead of paginating the live API per request.

cyanheads/obsidian-mcp-server · 68 tokens

openkb-deck-neon

Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow / glassmorphism look (赛博 / 科技风 / 暗色 / 霓虹 / 炫酷). Generates a polished single-file HTML deck in the Aurora Glass visual direction (near-black…

VectifyAI/OpenKB · 173 tokens

redteam-sqli-detail-pack

Domain routing and boundary guidance for authorized SQL injection testing, including union-based, blind, error-based, stacked query, and second-order SQL injection variants. Use when a task belongs to the SQL injection domain and needs scope, evidence, pivot, or exit criteria.

Netw0rkNoob/VulnClaw · 59 tokens

api-telemetry

Catalog of OpenTelemetry instrumentation built into framework @cyanheads/mcp-ts-core — spans, metrics, completion logs, env config, runtime caveats, custom instrumentation patterns, and cardinality rules. Use when enabling OTel export, adding custom spans or metrics in services, debugging missing telemetry, looking up…

cyanheads/obsidian-mcp-server · 85 tokens

maintenance

Investigate, adopt, and verify dependency updates — with special handling for @cyanheads/mcp-ts-core. Captures what changed, understands why, cross-references against the codebase, adopts framework improvements, syncs project skills, and runs final checks. Supports two entry modes: run the full flow end-to-end, or…

cyanheads/obsidian-mcp-server · 75 tokens