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 hamzabellouch/agent-skills --skill duckdb-and-polars-fast-datagit clone --depth 1 https://github.com/hamzabellouch/agent-skillsWrote 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/hamzabellouch/agent-skills/duckdb-and-polars-fast-data)<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/duckdb-and-polars-fast-data"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/duckdb-and-polars-fast-data/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/hamzabellouch/agent-skills/duckdb-and-polars-fast-data"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/duckdb-and-polars-fast-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00041 | $0.01575 |
| Opus 5.5 | $0.00016 | $0.00630 |
| Sonnet 5.5 | $0.00008 | $0.00315 |
| Haiku 4.5 | $0.00004 | $0.00158 |
Grade A, and why
duckdb-and-polars-fast-data 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 2mo 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 — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DuckDB & Polars: Fast Local & In-Process Data Engineering
Production guide for architecting ultra-fast, single-node data processing engines using DuckDB and Polars. Ideal for sub-second analytics, serverless micro-ETL pipelines, and memory-efficient out-of-core computations.
1. Architectural Foundation & Comparison
| Feature | DuckDB | Polars |
|---|---|---|
| Engine Architecture | In-process vectorized C++ SQL OLAP Database | Multi-threaded Rust DataFrame Engine |
| Primary Interface | SQL, Python DB-API, Relational API | Expression API, LazyFrame / DataFrame |
| Execution Model | Vectorized Query Execution (Morsel Driven) | Query Engine with Expression Fusion & Pushdowns |
| Out-Of-Core Execution | Native automatic disk spilling for larger-than-RAM | Native sink_parquet() / streaming engine |
| Data Interop | Zero-copy Apache Arrow, Parquet, Iceberg | Zero-copy PyArrow, Arrow C Data Interface |
2. Zero-Copy Interoperability & Memory Pipeline
┌─────────────────────────┐ Apache Arrow Interop ┌─────────────────────────┐
│ DuckDB (SQL Engine) │ ◄───────────────────────────► │ Polars (Lazy Engine) │
│ Direct Parquet Scan │ (Zero Copy) │ Expressions & Streaming │
└─────────────────────────┘ └─────────────────────────┘
By leveraging Apache Arrow as a unified in-memory representation, datasets can be passed between DuckDB and Polars with zero memory duplication overhead.
3. Idempotent Write Patterns & Partitioning
3.1 DuckDB Atomic Partition Overwrite
import duckdb
conn = duckdb.connect("analytics.duckdb")
# Atomic replacement of table partition within transaction block
conn.execute("""
BEGIN TRANSACTION;
DELETE FROM sales_fact WHERE sale_date = '2026-07-18';
INSERT INTO sales_fact
SELECT * FROM read_parquet('s3://ingest/2026-07-18/*.parquet');
COMMIT;
""")
3.2 Polars Atomic Out-of-Core Partition Sink
import polars as pl
# Write LazyFrame stream to Parquet atomically
lazy_df = pl.scan_parquet("s3://raw-events/*.parquet") \
.filter(pl.col("event_date") == "2026-07-18") \
.with_columns([
(pl.col("raw_amount") * pl.col("fx_rate")).alias("amount_usd")
])
# Sink directly to disk with chunked memory allocation
lazy_df.sink_parquet(
"s3://silver-events/event_date=2026-07-18/data.parquet",
compression="snappy",
statistics=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.
- 2mo ago First seen · 174 lines · 41 tokens per session scan A 2820d8b30f1c
duckdb-and-polars-fast-data is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 1,575 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.
duckdb-and-polars-fast-data compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| duckdb-and-polars-fast-datahamzabellouch/agent-skills | Skill | 8 | 1mo ago | MIT | A | 41 | Claude Code, Codex |
| spec-investigatebenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 229 | Claude Code |
| spec-implementbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 137 | Claude Code |
| spec-shipbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 119 | Claude Code |
| spec-walkthroughbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 172 | Claude Code |
| spec-setupbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 223 | Claude Code |
| spec-escapesbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 148 | Claude Code |