Handles Drift persistence for Dart CLI, server, and non-Flutter desktop apps where you need type-safe SQLite or PostgreSQL without the UI layer. Routes you to the right reference docs before you write schema, queries, or migrations, then enforces validation with build_runner, analyzer, and generated migration tests. The workflow is strict about not writing database code from memory because schema mistakes silently lose data. If you're building a backend service or command-line tool that needs real SQL persistence in Dart, this walks you through native.dart setup, table definitions, query builders, and Postgres-specific types without dragging in Flutter dependencies.

skills.sh installs
474
GitHub stars
112
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/madteacher/mad-agents-skills
Categories
Backend & APIs, DevOps & CI/CD, Documentation, Debugging, Mobile Development, CLI & Terminal, Databases
First seen
Jun 3, 2026

More from madteacher/mad-agents-skills

All 11
1ccheney avatarmermaid-diagramsccheney/robust-skillsProactively suggest diagrams when explaining complex systems. Triggers on diagrams, charts, visualizations, flowcharts, sequence diagrams, architecture diagrams473skills.sh installs
2manutej avatarnextjs-developmentmanutej/luxor-claude-marketplaceComprehensive Next.js development skill covering App Router, Server Components, data fetching, routing patterns, API routes, middleware, and full-stack Next.js 473skills.sh installs
3davila7 avatarsecurity-reviewdavila7/claude-code-templatesUse this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provid471skills.sh installs
4aj-geddes avatarquery-caching-strategiesaj-geddes/useful-ai-promptsImplement query caching strategies to improve performance. Use when setting up caching layers, configuring Redis, or optimizing database query response times.465skills.sh installs
5jezweb avatarcloudflare-r2jezweb/claude-skillsStore objects with R2's S3-compatible storage on Cloudflare's edge. Use when: uploading/downloading files, configuring CORS, generating presigned URLs, multipar462skills.sh installs
6ejirocodes avatarnestjs-best-practicesejirocodes/agent-skillsNestJS 11+ best practices for enterprise Node.js applications with TypeScript. Use when writing, reviewing, or refactoring NestJS controllers, services, modules460skills.sh installs