In short.
motherduck-create-flight is an AI assistant skill for developers building automated Python data jobs on MotherDuck, but its templates need workload-specific validation and failure-handling review. It covers creation, scheduling, versioning, logs, secrets and shared run access through MCP tools or SQL functions. Its strongest practical features are complete ingestion examples, pinned dependencies, bulk-loading patterns and step-diagram instrumentation. Source inspection also reveals limitations: the S3 example separates deletion from insertion without an explicit transaction, and PostgreSQL refreshes can finish with only some tables updated. No code was executed; current compatibility, performance, reliability and exact service costs remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied selected scope: plugins/motherduck-skills/skills/motherduck-create-flight/SKILL.md, references/FLIGHTS_GUIDE.md and references/FLIGHT_EXAMPLES.md at revision a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b, plus the repository-root LICENSE notice. The original files and their relative reference paths should be preserved together. Excludes other repository skills, the MCP and CLI implementations, live service documentation, dependency source and external datasets. No installation, query, deployment, schedule or Flight execution was performed; runtime outcomes remain unassessed.
The overview
Identity
motherduck-create-flight is a loadable instruction skill in motherduckdb/agent-skills. Its selected folder contains SKILL.md and two reference documents. It helps an assistant author and manage Flights: single-file Python programs that MotherDuck runs on demand or on a recurring schedule.
The original source is available at [https://github.com/motherduckdb/agent-skills/tree/a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b/plugins/motherduck-skills/skills/motherduck-create-flight]. The skill supplies instructions and templates; the MotherDuck service supplies the execution environment.
Assessment
The material provides a useful starting point for developers who already use MotherDuck and want an assistant to create recurring ingestion or refresh jobs. It covers operational details that short examples often omit, including secret naming, configuration replacement, version-specific debugging and the distinction between Python runner compute and database compute.
The templates still need engineering review before production use. Their failure and concurrency behaviour matters as much as whether a first run succeeds. No supplied run logs or test results establish deployment success, throughput or recovery behaviour.
Users
The clearest audience is data engineers, analytics engineers and developers maintaining MotherDuck tables. Suitable jobs include importing API data, copying PostgreSQL tables, refreshing aggregates, exporting files and sending scheduled alerts.
Beginners get complete examples and explanations of configuration and secrets, but still need basic Python, SQL and database-permission knowledge. Experienced developers get details about update semantics, access grants and bulk loading. Assistant-specific installation steps and a verified compatibility matrix are not supplied.
Capabilities
The skill documents how an assistant can create Flights, edit their source, update dependencies or configuration, start runs, attach UTC cron schedules, inspect versions, retrieve logs and cancel runs. It also explains grants that let other users start a Flight and instrumentation that turns run progress into a step diagram.
Its three included templates demonstrate dlt ingestion with merge semantics, configurable PostgreSQL table mirroring with per-table retries, and replacement of one S3-backed Hive partition. Additional guidance covers dbt, exports, community DuckDB extensions and SQL-based AI enrichment, but these do not each have a complete included template.
Using it
Requirements
Use requires a compatible assistant environment and a MotherDuck account with the necessary database permissions. The main integration uses Model Context Protocol, or MCP, which exposes service operations as assistant tools. The reference also documents server-side SQL functions for environments without MCP; local-only DuckDB connections cannot perform those operations.
All three templates pin duckdb==1.5.2. The dlt example additionally pins dlt[motherduck]==1.27.0 and httpx==0.28.1; the PostgreSQL example pins tenacity==9.0.0. These are captured example versions, not established current compatibility. Credentialed sources need secrets, and private S3 access uses a separate account-level S3 secret.
Mechanism
The reference describes each run as an isolated Python runtime that receives environment variables, installs its requirements, executes main.py and records output and status. The injected MOTHERDUCK_TOKEN supports duckdb.connect("md:"). SQL sent through that connection runs on MotherDuck database compute, called a Duckling.
Ordinary settings arrive through configuration variables; sensitive settings come from Flight secrets, preferably through namespaced variables. Content changes create versions, and a running job stays on its starting version. Updates preserve omitted fields, but a supplied config map or secret-name list replaces that entire field. Schedule changes do not create a content version.
Setup
The documented starting sequence is to make the skill and references available to the assistant, retrieve the live get_flight_guide, confirm the destination database and adapt the closest template. Required secrets are created separately, with the skill recommending the MotherDuck UI so sensitive values do not pass through chat.
The deployment sequence creates an unscheduled Flight, starts an on-demand run, inspects its exact status and logs, and adds a requested schedule only after success. For ongoing workloads, the skill recommends a service-account token with narrow database access. These are documented steps; no installation or deployment was performed.
Example
For a nightly PostgreSQL mirror, the included example uses a Flight secret named pg, sets TARGET_DATABASE to postgres_ingest and can exclude schemas such as audit,scratch. It discovers base tables, applies inclusion and exclusion filters, then replaces each selected destination table through a streaming SQL statement. Successful copies are recorded in a tracker table; failed copies are logged, and any table failure makes the overall run exit unsuccessfully.
After validating an on-demand run, the documented cron expression 0 6 * * * would schedule it daily at 06:00 UTC. This example performs full table refreshes, so it does not establish continuous replication or a consistent snapshot across all copied tables.
Assessment & evidence
Limitations
The S3 template deletes a destination partition and inserts its replacement in separate statements without an explicit enclosing transaction. This creates a source-level recovery concern: if insertion fails after deletion succeeds, the partition could remain empty. Its final count reports destination rows without comparing them against an independently established expected count.
The PostgreSQL template refreshes tables independently, so an unsuccessful run can leave some tables updated and others unchanged. The dlt template permits append as well as merge and replace; choosing append can duplicate records on reruns. These details qualify the documentation's broad idempotency claims.
The reference allows concurrent runs of one Flight, while the examples show no explicit protection against overlapping writes to the same targets. Shared runs also use the owner's token and secrets. Current runtime limits, workload-specific memory use and isolation suitability require separate confirmation.
Reasoning
The strongest fit follows from the resource's concrete examples: bounded ingestion and refresh jobs whose durable output lives in MotherDuck. Bulk SQL loading, separate secret storage and version-specific logs address practical problems in those workloads. The live-guide requirement also acknowledges that service limits and tool contracts change.
Confidence is stronger in the documented structure than in operational outcomes. Claims about bounded memory, throughput or stable partition-refresh costs are design descriptions without supplied measurements. Production suitability depends on data volume, recovery requirements and overlapping-run behaviour.
Alternatives
For interactive exploration or a one-off query, the supplied guidance points to the MotherDuck SQL editor or motherduck-query. For orchestration across many external systems with complex dependencies, it names Airflow and Prefect as more suitable options.
Developers can also manage the same Flight service through SQL functions, while the references mention CLI workflows for editing local files. Those are alternative interfaces to Flights. No comparative benchmarks, migration effort estimates or cost comparisons are supplied.
Evidence
The source consists of SKILL.md, references/FLIGHTS_GUIDE.md and references/FLIGHT_EXAMPLES.md at repository revision a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b, together with the repository-root LICENSE. The examples contain Python source, dependency pins, configuration descriptions and deployment call examples.
No code was executed. The files support inspection of documented behaviour and visible implementation choices, but they do not establish successful installation, live tool compatibility, benchmark performance or production reliability. The examples describe their DuckDB pin as tested; supporting execution results are not supplied.
Access & freshness
Costs
The MIT licence permits use of the captured material without a licence fee. Hosted execution has separate costs: the reference describes Flight billing by run-hour, runner size and region, plus separate Duckling compute charges for SQL.
No monetary rates, worked cost examples or confirmed free-tier entitlement are supplied. Exact current rates and total job cost are unknown. External APIs and storage may introduce additional charges, but their terms are not established here. The runner-sizing guidance provides a starting point for estimation rather than a measured saving.
Rights
The repository-root MIT licence names MotherDuck as the 2026 copyright holder and permits use, modification, distribution, sublicensing and sale. Copies or substantial portions must retain the copyright and permission notice. The material is supplied without warranty.
This supports redistribution of the captured skill and reference files with the notice preserved. Rights and terms for MotherDuck service access, third-party dependencies, connected databases and external datasets are not established by that licence.
Freshness
The supplied snapshot was captured on 15 November 2026 at 21:53:45 UTC. It represents the identified revision, rather than a verified view of the repository's current main branch or live MotherDuck service.
The material explicitly defers current Python versions, plan limits and tool semantics to get_flight_guide. It also directs authors to resolve supported DuckDB versions through [https://motherduck.com/docs/duckdb-versions.json]. Current values from those sources, current pricing and compatibility of newer dependencies remain unknown.
Actions
For adoption, obtain the original skill folder with both references and retain its MIT notice. Confirm assistant integration, live Flight limits, supported DuckDB versions and applicable service rates. Choose the closest template and define the expected destination data before configuring credentials or a schedule.
Before production use, address transactional recovery for S3 partition replacement, decide how partial PostgreSQL refreshes should be handled and confirm dlt rerun semantics. Prevent conflicting concurrent writes where necessary. Validate an unscheduled run against expected data, inspect logs and failure behaviour, then add the requested UTC schedule and narrowly scoped run access.
