generate-repository

Community

Auto-create SQLite repositories with TS CRUD.

Authormarcd35
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill reduces boilerplate by generating a complete SQLite data-access repository class in TypeScript, enabling consistent CRUD operations and type-safe mappings.

Core Features & Use Cases

  • Repository file generation following the repository pattern for a given entity.
  • CRUD methods (add, get, update, delete) with ID and timestamp handling.
  • Snake_case to camelCase row mapping and JSON field serialization.
  • Flexible configuration for entity name, table name, and field definitions to support new tables or data access layers.

Quick Start

Provide an entity name (e.g., WaterLog) and a table name (e.g., water_logs) along with fields. The tool will generate a repository file at src/lib/database/repositories/{EntityName}Repository.ts and wire it into your data layer for immediate use.

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: generate-repository
Download link: https://github.com/marcd35/health-tracker-9000/archive/main.zip#generate-repository

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.