Dart Drift
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
Own this skill? Claim it
What it does
- Covers SQLite via
package:drift/native.dartand PostgreSQL viadrift_postgreswithpackage: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, targeteddart 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-driftinstead
Install
$ npx -y skills add madteacher/mad-agents-skills --skill dart-drift -yInstalls 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 11Similar to Dart Drift
More Databasesflutter-driftmadteacher/mad-agents-skills704 installsComprehensive workflow for implementing, migrating, and testing Drift local persistence in Flutter apps.
drizzle-migrationsbobmatnyc/claude-mpm-skills1.3K installsMigration-first Drizzle ORM workflow for TypeScript projects that writes SQL migrations before schema code.
netlify-databasenetlify/context-and-tools3.3K installsNetlify-managed Postgres skill covering provisioning, querying, Drizzle ORM setup, migrations, and branch-based dev workflows.
prisma-cliprisma/skills444.7K installsReference for the Prisma ORM 7 CLI covering init, generate, migrate, db, dev, studio, and mcp commands.
drizzle-orm-patternsgiuseppe-trisciuoglio/developer-kit6K installsComprehensive Drizzle ORM guide for type-safe schemas, queries, relations, transactions, and migrations across five databases.
database-designsickn33/agentic-awesome-skills2.3K installsDecision-focused guide for choosing databases, ORMs, and schema designs, with indexing and migration guidance for each choice.