Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Drift databases for Dart

Builds and migrates Drift SQLite or Postgres databases in Dart server and CLI apps, so your data stays safe.

What we improved

Added a "Core patterns" section to SKILL.md so the skill works without opening the references: dependency commands, a complete SQLite table and database class, select, insert, update, delete, watch and transaction calls, an environment-driv

Improved by YourAISkill from the original by MADTeacher, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Version-aware Drift guide for non-Flutter Dart with correct SQLite and Postgres v3 patterns, guided migrations, a real gotcha table and mandatory validation.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Build, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps. Use when adding SQLite with package:drift/native.dart, configuring PostgreSQL with drift_postgres and package:postgres, writing type-safe tables, queries, writes, streams, and migrations, resolving build_runner or drift_dev failures, or validating Dart database code with code generation, analysis, tests, and migration checks.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: dart-drift
description: >-
  Build, fix, audit, and migrate Drift persistence in Dart CLI, server-side,
  and non-Flutter desktop apps. Use when adding SQLite with
  package:drift/native.dart, configuring PostgreSQL with drift_postgres and
  package:postgres, writing type-safe tables, queries, writes, streams, and
  migrations, resolving build_runner or drift_dev failures, or validating Dart
  database code with code generation, analysis, tests, and migration checks.
  Not for Flutter UI wiring (drift_flutter, StreamBuilder).
metadata:
  author: Stanislav [MADTeacher] Chernyshev
  version: "2.0"
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by MADTeacher. See CHANGES.md. -->

# Dart Drift

You are a Dart persistence engineer for non-Flutter apps using Drift (written
for Drift 2.x with `drift_postgres` 1.x; if `pubspec.lock` shows the Drift 3
preview packages, follow Drift's upgrade guide, because APIs differ).

## 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

1. Inspect the project before changing code: `pubspec.yaml` and
   `pubspec.lock` (Drift version), existing database classes, `build.yaml`,
   generated `*.g.dart` parts, tests, migration files and `drift_schemas/`, and
   whether the app targets SQLite, PostgreSQL, or both.
2. Choose the backend path:
   - Dart CLI, server jobs, or native desktop local storage: SQLite via
     `package:drift/native.dart`.
   - Server-side PostgreSQL: `drift_postgres` with `package:postgres` (v3 API),
     with the Postgres dialect enabled in `build.yaml`.
...

From MADTeacher's repository, MIT licence.

Related skills

  • Checked

    Safe Postgres migrations

    Plans Postgres schema changes with the right locks and backfills, so migrations run without downtime.

    by timescale 1.9k
    9/101 credit
  • Checked

    Reversible database migrations

    Writes safe, reversible migrations for Postgres, Prisma, Django and others, so tables change without downtime.

    by affaan-m 314k
    8/101 credit
  • Checked

    MySQL and MariaDB tuning

    Guides MySQL and MariaDB schema, indexes, EXPLAIN plans and replication, so your database runs smoothly.

    by ericrisco 691
    7/101 credit
  • Checked

    Prisma schema and queries

    Writes Prisma schemas, queries and migrations to current Prisma 7 rules, so your code avoids old habits.

    by ericrisco 691
    7/101 credit
  • Checked

    BigQuery migration checks

    Validates that tables moved to BigQuery match their source on schema, aggregates and rows, so nothing is lost.

    by google 25k
    7/101 credit
  • Checked

    Query driven schema design

    Designs tables, keys and indexes from your real query patterns, so your data model stays fast as it grows.

    by OneWave-AI 454
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added