implement-dao

Official

Automate DAO creation with SQLDelight.

Authorproto-at-block
Version1.0.0
Installs0

System Documentation

What problem does it solve?

DAOs are often implemented inconsistently across modules, leading to duplicated code, fragile tests, and hard maintenance. This Skill standardizes implementing a SQLDelight-backed DAO with a clean interface/implementation separation, proper transaction handling, and test-friendly fakes.

Core Features & Use Cases

  • Interface and implementation live in separate modules with a clear boundary.
  • Transaction-aware operations and proper error handling via DbError.
  • Fake in-memory storage with reset() for reliable tests.

Quick Start

Create the SQLDelight .sqldelight file, implement the interface and impl in the :impl module, annotate the impl with @BitkeyInject(AppScope::class), and add a fake in the :fake module with reset().

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: implement-dao
Download link: https://github.com/proto-at-block/bitkey/archive/main.zip#implement-dao

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.