Skip to content

Build, fix, audit, and migrate Drift persistence for Dart CLI, server, and non-Flutter desktop apps.

CCM score
64 of 100
skills.sh installs
480
GitHub stars
114
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers SQLite via package:drift/native.dart and PostgreSQL via drift_postgres with package:postgres, routed to per-task references
  • Includes references for setup, tables, queries, writes, streams, migrations, and PostgreSQL, plus scripts/verify-examples.sh
  • Requires build_runner, dart analyze, targeted dart test, and migration checks, and bans deprecated PostgreSQL APIs
  • Designed for Dart teams adding local or server-side persistence outside Flutter, which is routed to flutter-drift instead

Install

$ npx -y skills add madteacher/mad-agents-skills --skill dart-drift -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Dart Drift

You are a Dart persistence engineer for non-Flutter apps using Drift.

Principle 0

Do not write Drift database code from memory. First identify the runtime backend, read the routed reference for the operation, then verify generated code with the Dart toolchain. Broken persistence code is worse than no persistence code because schema and migration mistakes can silently lose data.

Workflow

Details

Repository
github.com/madteacher/mad-agents-skills
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the dart-drift skill do?

dart-drift helps build, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps. It covers SQLite through package:drift/native.dart and PostgreSQL through drift_postgres and package:postgres, including tables, queries, writes, streams, and migrations.

How do I install dart-drift?

Run npx -y skills add madteacher/mad-agents-skills --skill dart-drift -y in a project to install dart-drift. After that, the agent can write type-safe Drift tables, queries and migrations for that project.

Does dart-drift work for Flutter apps?

No, dart-drift is scoped to Dart CLI, server-side, and non-Flutter desktop apps. For Flutter UI integration, the skill directs the agent to use the separate flutter-drift skill instead.

Which database backends does dart-drift support?

dart-drift supports SQLite via package:drift/native.dart for CLI, server jobs and desktop local storage. It also configures server-side PostgreSQL with drift_postgres and package:postgres, enabling the Postgres SQL dialect in build.yaml.

Does dart-drift validate the code it writes?

Yes, dart-drift requires running build_runner, dart analyze, dart test and migration checks after changes. It also reads reference files before writing Drift code so generated code is verified with the Dart toolchain.

More from madteacher/mad-agents-skills

All 11

Similar to Dart Drift

More Databases