go-bun

Implement type-safe database operations in Go using the Bun ORM.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/kettleofketchup/KettleOfSkills --skill go-bun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-bun
Source: https://github.com/kettleofketchup/KettleOfSkills/tree/main/plugins/go-bun/skills/go-bun
Command: npx skills add https://github.com/kettleofketchup/KettleOfSkills --skill go-bun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious, error-prone work of writing raw SQL queries and managing database schemas, relations, and migrations in Go projects, freeing you to focus on application logic instead of low-level database plumbing.

Core Features & Use Cases

  • Full ORM & Query Builder: Define models with struct tags, build type-safe CRUD queries, and manage relations (has-one, has-many, many-to-many) without hand-written SQL.
  • Migrations & Seeding: Automate schema versioning with Go or SQL migrations, and load test data with YAML fixtures that support cross-references and templating.
  • Use Case: Imagine you're building a Go SaaS platform with PostgreSQL. Use this Skill to quickly define user and order models, set up relational queries, and run versioned database migrations without writing boilerplate SQL.

Quick Start

Use the go-bun skill to set up a PostgreSQL-connected Go service with user model CRUD operations and soft delete support.

Frequently Asked Questions about go-bun

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

FAQPage Schema
How do I set up PostgreSQL with Go using an ORM without writing raw SQL?

Set up PostgreSQL with Go by using the Bun SQL-first ORM to define models with struct tags and build type-safe CRUD queries, eliminating the need for hand-written SQL boilerplate.

Can I automate database migrations and seed test data in a Go application?

Yes, you can automate database migrations and seed test data in Go. This Skill supports schema versioning with Go or SQL migrations and loads test data using YAML fixtures that support cross-references and templating.

Does the Bun ORM support SQLite for Go development?

Yes, the Bun ORM supports SQLite for Go development. It applies to workflows involving either PostgreSQL or SQLite setup, allowing you to build type-safe queries and manage relations across both database systems.

What is the best way to manage relations like has-many and many-to-many in Go?

The best way to manage relations like has-many and many-to-many in Go is using an ORM like Bun. It allows you to define relational mappings through struct tags and build queries without writing manual SQL joins.

How do I implement soft delete and transaction handling in a Go database service?

Implement soft delete and transaction handling in a Go database service by utilizing the Bun ORM's built-in features. It specifically satisfies requirements for transaction management and soft delete implementation alongside standard CRUD operations.

Can I integrate OpenTelemetry observability with database operations in Go?

Yes, you can integrate OpenTelemetry observability with database operations in Go. This Skill satisfies requirements for OpenTelemetry observability integration, enabling you to monitor query performance within your application workflow.