codegen

Generate LiteORM Go code from database schemas and SQL annotations.

5|Updated Jun 18, 2026
One-click install
npx skills add https://github.com/go-again/liteorm --skill codegen-go-again
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codegen
Source: https://github.com/go-again/liteorm/tree/main/skills/codegen
Command: npx skills add https://github.com/go-again/liteorm --skill codegen-go-again

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The codegen Skill solves the challenge of manual and error-prone code generation, providing automated creation of LiteORM code for typed columns, models, SQL annotations, and gorm tag conversion.

Core Features & Use Cases

  • Typed Column Generation: Automatically create Go structs with typed columns from a live database.
  • Model Generation: Generate model code directly from an existing database schema.
  • SQL Annotation Parsing: Parse and convert SQL annotations to typed Go functions.
  • Gorm Tag Conversion: Convert Gorm tags to LiteORM-compatible tags for seamless migration.
  • Use Case: Streamline the development process by automatically generating LiteORM code based on database schemas, saving time and reducing errors.

Quick Start

Run the codegen skill with the --from-db flag to generate code from a live database.

Frequently Asked Questions about codegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Go structs from a database schema for LiteORM?

Generate Go structs from a database schema for LiteORM by running the codegen Skill with the `--from-db` flag to automatically create typed columns and model code from your live database.

Can I convert Gorm tags to LiteORM tags for ORM migration?

Yes, you can convert Gorm tags to LiteORM tags for ORM migration. The codegen Skill handles tag transformations automatically to ensure seamless migration to LiteORM-compatible annotations.

What is SQL annotation parsing for Go code generation?

SQL annotation parsing for Go code generation is the process of converting SQL annotations into typed Go functions. The codegen Skill uses Go's reflection and type assertions to automate this conversion precisely.

Does codegen work with Gorm for database to code automation?

Yes, codegen works with Gorm for database to code automation by reading existing database schemas and converting Gorm tags into LiteORM-compatible tags to streamline your API-driven development workflow.

What are the limitations of using reflection for schema introspection?

The limitations of using reflection for schema introspection in this Skill relate to its intermediate implementation depth, meaning it handles standard schema to Go code conversions but may require manual adjustments for complex or non-standard database structures.