motherduck-build-cfa-a…
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Create, run, schedule, or debug MotherDuck Flights, Python jobs executed on MotherDuck compute.
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-create-flight --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/motherduck-create-flightContext preview
The summary Claude sees to decide when to auto-load this skill.
Create, run, schedule, or debug MotherDuck Flights, Python jobs executed on MotherDuck compute.
name: motherduck-create-flight description: Create, run, schedule, or debug MotherDuck Flights, Python jobs executed on MotherDuck compute. license: MIT
1. Classify the job: ingestion, transformation/refresh, export or alerting, or admin automation. If the job is interactive analysis or a one-off query, use `motherduck-query` instead — no Flight needed. 2. Call `get_flight_guide` (MCP) and confirm which database the flight writes to with `motherduck-explore`. 3. Reuse a matching template in `references/FLIGHT_EXAMPLES.md` when it fits; otherwise write a focused script that preserves the runtime, secrets, and idempotency contracts. 4. Create any required `TYPE flights` secret first, then `create_flight` with `name`, `source_code`, pinned `requirements_txt`, `config`, and secret names — no `schedule_cron` yet. 5. `run_flight`, poll `get_flight_run` when available (or `list_flight_runs` as a fallback) until terminal, and read `get_flight_logs`. Iterate with `edit_flight_source` (surgical) or `update_flight` (full field replacement); each content change creates a new version. 6. If scheduling was requested, set it only after a successful run with `update_flight(schedule_cron = ...)` and state that cron is UTC. Clear it with `schedule_cron = ""` only when requested; preserve an existing schedule during unrelated edits.
For answer, review, or planning requests, do not create or schedule a Flight. For create or update requests, complete the requested in-scope deployment and on-demand validation; attaching a recurring schedule is authorized only when the request includes scheduling.
Read only the reference sections needed for the current task.
Load related skills only for missing capabilities; reuse established context.
Opinionated AI agent skills for building applications with MotherDuck
Repo: motherduckdb/agent-skills
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Build a MotherDuck dashboard as a Dive, choosing the analytical story, metrics, and section queries.
Build ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication.
Use the MotherDuck CLI for terminal queries, authentication, and file-based Dive or Flight workflows.
Set up or troubleshoot MotherDuck connections, authentication, client runtimes, and read scaling.
Create, edit, publish, share, or embed MotherDuck Dives using their React and SQL runtime.