matlab-use-duckdb

Official

Query big files in MATLAB with SQL speed.

Authormatlab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you avoid slow and memory-heavy MATLAB data pipelines by generating correct DuckDB-backed MATLAB code that performs filtering, aggregation, and file-to-table analytics directly in SQL.

Core Features & Use Cases

  • DuckDB connection guidance: Uses duckdb() (optionally file-backed) with proper isopen(conn) verification and safe closing via close(conn).
  • File analytics pushdown: Uses fetch with SQL read_csv/read_parquet/read_xlsx patterns to prevent the load-then-query anti-pattern.
  • In-database workflows: Supports creating portable development databases via duckdb("file.duckdb"), importing with sqlwrite, and querying with sqlread or complex SQL via fetch.
  • Extensions support: Installs and loads extensions (e.g., excel) when the query requires them.
  • Guardrails and correctness: Warns against unsupported patterns such as databasePreparedStatement for DuckDB and encourages reserved-keyword-safe column handling (e.g., using renamevars).

Quick Start

Ask the agent to generate a DuckDB-powered MATLAB solution that queries your large CSV or Parquet file directly with SQL filtering and aggregation using fetch and read_csv or read_parquet.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: matlab-use-duckdb
Download link: https://github.com/matlab/matlab-agentic-toolkit/archive/main.zip#matlab-use-duckdb

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.