duckdb-local-analytics-and-dev
Skill49 starsChanged 6 months agoMITView on GitHub
Guides agents through DuckDB-based local analytics and development workflows. Use when prototyping models locally, validating transformations, reproducing data issues quickly, or building lightweight analytical tooling without a full warehouse.
In this repository80 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-data-agent-core.mdcCursor rule
- .cursor/rules/10-spec-first.mdcCursor rule
- .cursor/rules/20-platform-preset-selector.mdcCursor rule
- .cursor/rules/30-quality-gates.mdcCursor rule
- airflow-and-workflow-orchestrationSkill
- apache-beam-unified-batch-and-streamSkill
- apache-hudi-lakehouseSkill
- api-and-saas-ingestion-patternsSkill
- avro-protobuf-json-schema-registrySkill
- bigquery-and-dataform-platform-engineeringSkill
- cdc-and-incremental-loadingSkill
- clickhouse-real-time-analyticsSkill
- data-catalog-and-discoverySkill
- data-contract-testing-with-schema-registrySkill
- data-lake-and-zone-architectureSkill
- data-mesh-and-domain-oriented-designSkill
- data-migration-and-platform-cutoverSkill
- data-observability-and-sla-managementSkill
- data-platform-ci-cd-and-release-managementSkill
- data-platform-disaster-recovery-and-business-continuitySkill
- data-platform-operating-model-and-service-ownershipSkill
- dataplex-and-bigquery-governanceSkill
- data-quality-and-contract-testingSkill
- data-quality-platforms-and-rule-managementSkill
- data-reconciliation-and-financial-controlsSkill
- data-resiliency-testing-and-failure-injectionSkill
- data-security-compliance-and-regulated-dataSkill
- data-sharing-and-publishing-contractsSkill
- data-specificationSkill
- dbt-and-analytics-engineeringSkill
- debezium-and-kafka-connect-cdcSkill
- delta-lake-and-medallion-architectureSkill
- enterprise-etl-and-data-integration-modernizationSkill
- esg-and-sustainability-regulatory-reportingSkill
- etl-elt-and-modernization-strategySkill
- feature-store-and-ml-data-pipelinesSkill
- file-and-partner-feed-ingestionSkill
- glue-data-catalog-and-lake-formation-governanceSkill
- great-expectations-deequ-and-cualleeSkill
- incident-triage-and-pipeline-recoverySkill
- java-data-engineering-and-integration-servicesSkill
- kafka-resilience-and-schema-evolutionSkill
- lakefs-and-data-versioningSkill
- lakehouse-table-format-engineeringSkill
- lineage-pii-and-governanceSkill
- lower-environment-data-masking-and-obfuscationSkill
- mainframe-modernization-and-data-offloadSkill
- master-data-and-entity-resolutionSkill
- mcp-data-observability-integrationSkill
- microsoft-purview-and-azure-data-governanceSkill
- notebook-to-production-hardeningSkill
- openmetadata-datahub-and-openlineageSkill
- operational-datastore-selection-relational-and-nosqlSkill
- orchestration-and-backfillsSkill
- pipeline-planning-and-task-breakdownSkill
- privacy-retention-and-right-to-deleteSkill
- python-data-engineering-and-pipeline-packagingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 15 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill when DuckDB is the fastest path to local analytical iteration.
- Distinctive: line 21
Do not use this when the workload requires production durability, concurrent access, or distributed processing.
- Distinctive: line 33
use sample files (CSV, Parquet, JSON) checked into the repository or downloaded by script
- Distinctive: line 34
document how sample data was generated or extracted
- Distinctive: line 35
keep sample sizes representative but small enough for fast iteration
- Distinctive: line 36
use DuckDB's ability to read Parquet, CSV, and JSON directly without import steps
- Distinctive: line 39
Write transformations that map cleanly to production equivalents.
- Distinctive: line 40
use standard SQL that translates to the target warehouse dialect
- Distinctive: line 41
avoid DuckDB-specific functions unless the workflow stays local permanently
- Very specific: line 43
when using dbt-duckdb: use the same model structure and tests as the production adapter
- Distinctive: line 44
document which DuckDB-specific features would need replacement in production
- Distinctive: line 47
run row count checks, null assertions, and key uniqueness tests
- Distinctive: line 49
use DuckDB's SUMMARIZE and descriptive statistics for quick sanity checks
- Distinctive: line 52
Document the production promotion path.
- Distinctive: line 59
Keep the local workflow maintainable.
- Distinctive: line 63
document expected execution time so developers know what's normal
- Distinctive: line 80
no Makefile or script to reproduce the workflow from scratch
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DuckDB Local Analytics And Dev
Overview
Use this skill when DuckDB is the fastest path to local analytical iteration. It helps agents build reproducible local workflows that accelerate development without confusing prototype convenience for production architecture.
When to Use
- prototyping data models and transformations locally before deploying to a warehouse
- reproducing production data issues with sample datasets
- running analytical queries during development without remote infrastructure
- building lightweight CLI tools, validators, or test harnesses
- validating dbt models locally with
dbt-duckdbadapter - creating proof-of-concept demonstrations with embedded analytics
Do not use this when the workload requires production durability, concurrent access, or distributed processing. DuckDB is a development and prototyping accelerator, not a production warehouse replacement.
Workflow
- Define the purpose and scope of the local workflow.
Include:
- what question or validation is this workflow answering?
- what sample data is needed and where does it come from?
- is this a one-time investigation or a repeatable development workflow?
- what is the promotion path to production if the prototype succeeds?
- Set up reproducible data inputs.
- use sample files (CSV, Parquet, JSON) checked into the repository or downloaded by script
- document how sample data was generated or extracted
- keep sample sizes representative but small enough for fast iteration
- use DuckDB's ability to read Parquet, CSV, and JSON directly without import steps
- for sensitive data: use anonymized or synthetic samples only
- Write transformations that map cleanly to production equivalents.
- use standard SQL that translates to the target warehouse dialect
- avoid DuckDB-specific functions unless the workflow stays local permanently
- structure queries in the same layered pattern (staging → intermediate → marts) as production
- when using
dbt-duckdb: use the same model structure and tests as the production adapter - document which DuckDB-specific features would need replacement in production
- Validate results locally with assertions and contract checks.
- run row count checks, null assertions, and key uniqueness tests
- compare output against expected results or golden files
- use DuckDB's SUMMARIZE and descriptive statistics for quick sanity checks
- integrate with the project's validation framework (Great Expectations, Cuallee, or custom)
- Document the production promotion path.
- what must change before this prototype runs in production?
- list DuckDB-specific assumptions: single-node, in-process, file-based storage
- define the target platform (Snowflake, BigQuery, Redshift, Spark) and dialect differences
- identify features that need distributed execution (large joins, window functions at scale)
- make promotion a conscious decision, not an accident
- Keep the local workflow maintainable.
- include a
Makefileor script that runs the full local workflow from scratch - pin DuckDB version in requirements to prevent drift
- clean up temporary databases between runs
- document expected execution time so developers know what's normal
- retire local workflows that no longer serve a purpose
- include a
Common Rationalizations
| Rationalization | Reality |
| "DuckDB is so fast, we can just use it in production." | DuckDB is single-process and file-based. Production workloads need concurrency, durability, and operational tooling that DuckDB does not provide. |
| "The local prototype is basically the same as production." | Local prototypes skip authentication, network, concurrency, and scale concerns. The gap between local and production must be explicitly documented. |
| "We don't need sample data management — just point at production files." | Pointing at production data from local machines creates security and size problems. Curated samples are safer and faster. |
| "It works locally so it will work in the warehouse." | DuckDB SQL is largely standard but not identical to Snowflake, BigQuery, or Redshift dialects. Promotion requires testing on the real target. |
Red Flags
- local DuckDB workflow is treated as production without a promotion plan
- sample data includes real PII or production secrets
- DuckDB-specific functions are used without documenting production equivalents
- no Makefile or script to reproduce the workflow from scratch
- local workflow runs against full production-scale files on a laptop
- prototype models are deployed to production without validation on the target platform
- temporary DuckDB databases accumulate without cleanup
- DuckDB version is not pinned, causing inconsistent results across team members
Verification
- The purpose and scope of the local workflow are documented
- Sample data is reproducible, appropriately sized, and free of sensitive content
- SQL transformations use standard patterns that map to the target production platform
- Local assertions and contract checks validate correctness
- The production promotion path is documented with explicit dialect differences
- A Makefile or script reproduces the full workflow from a clean state
- DuckDB version is pinned and consistent across the team
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

