duckdb-knowledge-patch

duckdb-knowledge-patch is a skill for Claude Code, Codex from Nevaberry/nevaberry-plugins. It costs 9 tokens per session (2,083 once invoked), scanned A, original, MIT.

A reference guide for working with DuckDB, a database designed for analytical queries and local data processing. It tells the agent to check versions and consult topic-specific guidance before changing SQL or database files.

In plain words
What is it for?
Use it when writing DuckDB SQL, upgrading a database, using external files or lakehouse formats, configuring the command-line tool, or working with spatial data.
Why use it?
It reduces mistakes caused by differences in DuckDB versions, SQL behavior, storage formats, or extensions.

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/duckdb-knowledge-patch
Any agent
npx skills add Nevaberry/nevaberry-plugins --skill duckdb-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 duckdb-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/duckdb-knowledge-patch.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/duckdb-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/duckdb-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/duckdb-knowledge-patch.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,083 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00009 $0.02083
Opus 5 $0.00005 $0.01042
Sonnet 5 $0.00002 $0.00417
Haiku 4.5 $0.00001 $0.00208

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

Security

Grade A, and why

duckdb-knowledge-patch scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

The default `httpfs` backend uses curl. OpenSSL and settings such as
plugins/knowledge-patch/patches-claude/duckdb-knowledge-patch/SKILL.md · 248 lines

How it starts

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

DuckDB Knowledge Patch

Use this skill when writing DuckDB SQL, upgrading an existing database, working with external files or lakehouse formats, configuring the CLI, or using spatial data. Inspect the project's DuckDB version and load the relevant topic reference before relying on defaults, return types, parser behavior, storage compatibility, or extension behavior.

How to apply this skill

  1. Determine the exact DuckDB library, CLI, and extension versions in use.
  2. Review the compatibility checks below before changing existing SQL or files.
  3. Treat database storage versions separately from the engine version.
  4. Check extension and platform requirements before generating deployment steps.
  5. Load the topic reference that matches the task; it contains the complete semantics and directional caveats behind the quick reference.
  6. Prefer project manifests, code, tests, and observed behavior if the project is newer than the frontmatter version.

Reference index

Reference Topics
Compatibility and migrations Release-line support, changed SQL behavior, parser changes, deprecations, upgrade checks
SQL and types VARIANT, maps, date_trunc, UNPACK, secrets, direct database scans
Storage, security, and remote files Storage versions, encryption, compression, external cache, CSV, Azure, httpfs
Lakehouses and connectors DuckLake, Delta, Iceberg, ODBC, Teradata, database-wide copies
CLI and platforms Previous results, safe mode, direct file opening, installation, Linux requirements
Spatial and geometry Axis-order migration, core GEOMETRY, CRS typing, WKB boundaries

Compatibility checks first

Account for changed SQL results and types

  • date_trunc on a DATE returns TIMESTAMP. Add an explicit cast when an application, schema, or client contract still requires DATE.
  • map['key'] returns the value itself and is equivalent to map_extract_value. Use map_extract only when the required result is a single-element list.
  • current_time and current_date use the local timezone and require ICU.
  • A fixed random seed does not reproduce sequences from engines that used the earlier generator state.
  • Nested-structure serialization escapes quotes so values round-trip. Use array_to_string when code deliberately needs the old unquoted display.

Read the full file on GitHub · 248 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 · 248 lines · 9 tokens per session scan A bf153e995a92

Subscribe to this mod's changes

duckdb-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (24 stars, last pushed 7d ago), licensed MIT. It adds 9 tokens to every session and 2,083 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/obsidian-mcp-server · 62 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