Dart Drift
MADTeacher/mad-agents-skills
Build, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps.
Manages local data persistence using SQLite or other database solutions.
$ npx skills add btwld/superdeck --skill flutter-working-with-databases -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install btwld/superdeck flutter-working-with-databases --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/flutter-working-with-databases .claude/skills/flutter-working-with-databases && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "flutter-working-with-databases" agent skill from https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databases into .claude/skills/flutter-working-with-databases/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-working-with-databases", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databasesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add btwld/superdeck --skill flutter-working-with-databases -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install btwld/superdeck flutter-working-with-databases --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/flutter-working-with-databases .agents/skills/flutter-working-with-databases && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "flutter-working-with-databases" agent skill from https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databases into .agents/skills/flutter-working-with-databases/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-working-with-databases", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add btwld/superdeck --skill flutter-working-with-databases -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install btwld/superdeck flutter-working-with-databases --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/flutter-working-with-databases .cursor/skills/flutter-working-with-databases && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "flutter-working-with-databases" agent skill from https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databases into .cursor/skills/flutter-working-with-databases/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-working-with-databases", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/btwld/superdeck.git --path .agents/skills/flutter-working-with-databases--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add btwld/superdeck --skill flutter-working-with-databases -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install btwld/superdeck flutter-working-with-databases --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/flutter-working-with-databases .gemini/skills/flutter-working-with-databases && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "flutter-working-with-databases" agent skill from https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databases into .gemini/skills/flutter-working-with-databases/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-working-with-databases", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install btwld/superdeck flutter-working-with-databasesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add btwld/superdeck --skill flutter-working-with-databases -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/flutter-working-with-databases .github/skills/flutter-working-with-databases && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "flutter-working-with-databases" agent skill from https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databases into .github/skills/flutter-working-with-databases/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-working-with-databases", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add btwld/superdeck --skill flutter-working-with-databases -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install btwld/superdeck flutter-working-with-databases --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/flutter-working-with-databases .opencode/skills/flutter-working-with-databases && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "flutter-working-with-databases" agent skill from https://github.com/btwld/superdeck/tree/main/.agents/skills/flutter-working-with-databases into .opencode/skills/flutter-working-with-databases/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-working-with-databases", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
flutter-working-with-databasesManages local data persistence using SQLite or other database solutions.
Flutter Working With Databases is an agent skill from btwld/superdeck. Manages local data persistence using SQLite or other database solutions. Use when a Flutter app needs to store, query, or synchronize large amounts of structured data on the device.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile, covering Cross-platform mobile apps and Schema markup. It works with Flutter and SQLite. The repository describes itself as: Presentation slides for Flutter with Flutter. The licence is BSD-3-Clause.
Read from SKILL.md and the folder at commit 815a746. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are dart).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Flutter Working With Databases loads about 2.1k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 650 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from btwld/superdeck at commit 815a746, republished under its BSD-3-Clause licence (© btwld). 650 words, ~2,073 tokens.
.claude/skills/flutter-working-with-databases/SKILL.md (or your agent's skills folder).Construct the data layer as the Single Source of Truth (SSOT) for all application data. In an MVVM architecture, the data layer represents the Model. Never update application data outside of this layer.
Separate the data layer into two distinct components: Repositories and Services.
Result wrappers to the calling repository.Use databases to persist and query large amounts of structured data locally.
sqflite and path packages to pubspec.yaml.path package to define the storage location on disk safely across platforms.id as the primary key with AUTOINCREMENT to improve query and update times.whereArgs in SQL queries to prevent SQL injection (e.g., where: 'id = ?', whereArgs: [id]).http package) in dedicated client classes.Future or Stream).freezed or built_value) for Domain Models.Combine local and remote data sources within the repository to provide seamless offline support.
Stream that immediately yields the cached local data from the Database Service, performs the network request via the API Service, updates the Database Service, and then yields the fresh data.synchronized: false and queue a background synchronization task.Select the appropriate caching strategy based on the data payload:
shared_preferences for simple app configurations, theme settings, or user preferences.sqflite, drift) or non-relational (hive_ce, isar_community) on-device databases.cached_network_image package to automatically cache remote images to the device's file system.Copy and track this checklist when adding a new data entity to the application.
Follow this sequence to add a new SQLite table and integrate it.
sqflite and path dependencies.onCreate or onUpgrade method in the Database Service to execute the CREATE TABLE statement.insert, query, update, and delete methods in the Database Service.database.open() before executing queries.This example demonstrates a Repository coordinating between a Database Service and an API Service using a Stream for offline-first reads.
import 'dart:async';
class TodoRepository {
TodoRepository({
required DatabaseService databaseService,
required ApiClientService apiClientService,
}) : _databaseService = databaseService,
_apiClientService = apiClientService;
final DatabaseService _databaseService;
final ApiClientService _apiClientService;
/// Yields local data immediately, then fetches remote data, updates local, and yields fresh data.
Stream<List<Todo>> observeTodos() async* {
// 1. Yield local cached data first
final localTodos = await _databaseService.getAllTodos();
if (localTodos.isNotEmpty) {
yield localTodos.map((model) => Todo.fromDbModel(model)).toList();
}
try {
// 2. Fetch fresh data from API
final remoteTodos = await _apiClientService.fetchTodos();
// 3. Update local database
await _databaseService.replaceAllTodos(remoteTodos);
// 4. Yield fresh data
yield remoteTodos.map((model) => Todo.fromApiModel(model)).toList();
} on Exception catch (e) {
// Handle network errors (UI will still have local data)
// Log error or yield a specific error state if required
}
}
/// Offline-first write: Save locally, then attempt remote sync.
Future<void> createTodo(Todo todo) async {
final dbModel = todo.toDbModel().copyWith(isSynced: false);
// 1. Save locally immediately
await _databaseService.insertTodo(dbModel);
try {
// 2. Attempt remote sync
final apiModel = await _apiClientService.postTodo(todo.toApiModel());
// 3. Mark as synced locally
await _databaseService.updateTodo(
dbModel.copyWith(id: apiModel.id, isSynced: true)
);
} on Exception catch (_) {
// Leave as isSynced: false for background sync task to pick up later
}
}
}Demonstrates safe query construction using whereArgs.
class DatabaseService {
static const String _tableName = 'todos';
static const String _colId = 'id';
static const String _colTask = 'task';
static const String _colIsSynced = 'is_synced';
Database? _database;
Future<void> open() async {
if (_database != null) return;
final dbPath = join(await getDatabasesPath(), 'app_database.db');
_database = await openDatabase(
dbPath,
version: 1,
onCreate: (db, version) {
return db.execute(
'CREATE TABLE $_tableName('
'$_colId INTEGER PRIMARY KEY AUTOINCREMENT, '
'$_colTask TEXT, '
'$_colIsSynced INTEGER)'
);
},
);
}
Future<void> updateTodo(TodoDbModel todo) async {
await _database!.update(
_tableName,
todo.toMap(),
where: '$_colId = ?',
whereArgs: [todo.id], // Prevents SQL injection
);
}
}© btwld, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/flutter-working-with-databases of btwld/superdeck.
Open the folder on GitHubat commit 815a746
Flutter Working With Databases next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Flutter Working With Databases this skillbtwld/superdeck | 130 | — | ~2.1k | Automated safety check: Pass | BSD-3-Clause | |
| Dart DriftMADTeacher/mad-agents-skills | 110 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Flutter DriftMADTeacher/mad-agents-skills | 110 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Engine Whats Newflutter/flutter | 179k | — | ~978 | Automated safety check: Pass | BSD-3-Clause | |
| Flutter Cherry Pickflutter/flutter | 179k | — | ~1.8k | Automated safety check: Pass | BSD-3-Clause | |
| Upgrade Browserflutter/flutter | 179k | — | ~1.1k | Automated safety check: Pass | BSD-3-Clause |
MADTeacher/mad-agents-skills
Build, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps.
MADTeacher/mad-agents-skills
Implement, fix, review, migrate, test, or debug Drift persistence in Flutter apps using SQLite, driftflutter, type-safe Dart queries, generated tables, StreamBuilder or Riverpod StreamProvider UI…
flutter/flutter
Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).
flutter/flutter
How to land a formal cherry-pick of a merged PR for the flutter/flutter repo stable or beta channel.
flutter/flutter
Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests.
flutter/flutter
Do not trigger automatically; only run when a user runs /bump-dart.
btwld/superdeck
Create, review, or edit SuperDeck Markdown presentations and Flutter presentation apps.
btwld/superdeck
Adds home screen widgets to a Flutter app for Android and iOS.
btwld/superdeck
Implements animated effects, transitions, and motion in a Flutter app.
btwld/superdeck
Architects a Flutter application using the recommended layered approach (UI, Logic, Data).
btwld/superdeck
Builds Flutter forms with validation and user input handling.
btwld/superdeck
Builds Flutter layouts using the constraint system and layout widgets.
Manages local data persistence using SQLite or other database solutions. Flutter Working With Databases is an agent skill from btwld/superdeck. Manages local data persistence using SQLite or other database solutions.
Flutter Working With Databases fits situations like: A Flutter app needs to store; synchronize large amounts of structured data on the device.
Run `npx skills add btwld/superdeck --skill flutter-working-with-databases -a claude-code`. Or copy the skill folder (.agents/skills/flutter-working-with-databases in btwld/superdeck) into .claude/skills/flutter-working-with-databases in your project. Claude Code loads it when a task matches its description.
Run `npx skills add btwld/superdeck --skill flutter-working-with-databases -a codex`. Or copy the skill folder (.agents/skills/flutter-working-with-databases in btwld/superdeck) into .agents/skills/flutter-working-with-databases in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add btwld/superdeck --skill flutter-working-with-databases -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flutter-working-with-databases, .gemini/skills/flutter-working-with-databases, .github/skills/flutter-working-with-databases and .opencode/skills/flutter-working-with-databases in your project.
SKILL.md names no scripts, command-line tools or credentials: Flutter Working With Databases is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Flutter Working With Databases is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Flutter Working With Databases: Dart Drift (MADTeacher/mad-agents-skills, 110 stars), Flutter Drift (MADTeacher/mad-agents-skills, 110 stars), Engine Whats New (flutter/flutter, 179k stars) and Flutter Cherry Pick (flutter/flutter, 179k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
btwld (a GitHub organization) maintains it in btwld/superdeck, which has 130 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 28, 2026.
Source: btwld/superdeck on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.