A definitive guide and implementation framework for managing database access, connection pooling, and schema migrations in Go applications.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install go-data-persistence
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install go-data-persistence using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This Go data persistence skill provides a comprehensive framework for handling database interactions with precision and performance. It bridges the gap between raw SQL control using pgx or sqlx and the high-level productivity of ORMs like Ent or GORM. By utilizing these Openclaw Skills, developers can implement robust repository patterns that decouple domain logic from database drivers, ensuring maintainable and testable codebases.
The skill emphasizes production readiness through deep dives into connection pool tuning, automated migration workflows with golang-migrate, and sophisticated transaction management at the service layer. It is designed to help teams choose the right abstraction level based on project complexity while maintaining strict security standards against SQL injection and resource leaks.
To integrate these patterns into your project, install the necessary drivers and migration tools:
# Install the recommended PostgreSQL driver
go get github.com/jackc/pgx/v5
# Install sqlx for enhanced database/sql features
go get github.com/jmoiron/sqlx
# Install golang-migrate CLI for schema management
brew install golang-migrate
Ensure your application calls the migration runner and initializes the connection pool exactly once at startup.
The skill organizes data persistence through a structured taxonomy of references and implementation patterns:
| Component | File/Pattern | Responsibility |
|---|---|---|
| Migrations | /migrations/*.up.sql |
Versioned schema evolution files. |
| Models | type User struct |
Go structs with db tags for column mapping. |
| Store | PostgresUserStore |
Implementation of the data access layer. |
| References | connection-pooling.md |
In-depth guides for pool sizing and monitoring. |
| References | transactions.md |
Patterns for isolation levels and atomic units. |
Loading
Neural Network Ops is a specialized management skill for diagnosing, tuning, and routing LLM providers to ensure maximum agent uptime.

An advanced AI financial toolbox for autonomous charting, technical indicator retrieval, and multi-source market sentiment analysis.

A versatile text transformation tool that converts strings into 15 different case styles for code, documentation, and creative formatting.

A specialized AI skill providing curated recommendations, real-time queue data, and optimized travel routes for trending BBQ destinations.

A high-performance utility for generating professional, information-dense Chinese visual note cards and infographics as self-contained HTML files with automatic PNG rendering.

A specialized AI skill designed to review and optimize pytest code for asynchronous patterns, fixture efficiency, and mocking accuracy.








































