Agent skill

Go CLI SQL Storage

by hashgraph-online in hashgraph-online/awesome-codex-plugins

Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized…

MITAuto-check passedDatabases

Install Go CLI SQL Storage

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill go-cli-sql-storage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins go-cli-sql-storage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/LVTD-LLC/skills/skills/go-cli-sql-storage .claude/skills/go-cli-sql-storage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
go-cli-sql-storage
GitHub stars
1.2k
Token cost
~801 tokens
SKILL.md length
291 words
Files
10 (incl. references)
Skills in repo
736
Repo updated
First seen
Licence
MIT

At a glance

Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized…

  • Works in 8 steps: Choose the database and driver from… → Define domain operations and transaction… → Open and configure one long-lived pool… → …
  • A Go command stores durable state in SQL
  • SKILL.md covers Core Workflow, Read Next, Guardrails and Source Notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Go CLI SQL Storage is an agent skill from hashgraph-online/awesome-codex-plugins. Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized queries, adapter error mapping, Scanner and Valuer types, SQLite or server databases, and real-driver integration tests. Use when a Go command stores durable state in SQL, initializes a local database, applies schema changes, or needs safe repository and transaction behavior.

Its SKILL.md is about 800 tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including reference files (for example `agents/openai.yaml`, `guidelines.md` and `references/sql-storage/examples.md`). Compatibility notes: Codex, Claude Code, and other Agent Skills-compatible clients.

It sits in Databases, covering SQL and Integration testing. It works with SQL and SQLite. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is MIT.

When your agent uses it

  • A Go command stores durable state in SQL
  • Initializes a local database
  • Applies schema changes
  • Needs safe repository and transaction behavior

Example prompts

  • “/go-cli-sql-storage”

Requirements

  • Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients.

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Choose the database and driver from workload, platform, and distribution needs.
  2. Define domain operations and transaction ownership before repository methods.
  3. Open and configure one long-lived pool at the composition root.
  4. Verify required startup connectivity with a bounded PingContext.
  5. Apply versioned migrations using an explicit serialization policy.
  6. Implement parameterized queries and map driver errors to stable domain errors.
  7. Test consumers with fakes and adapters with the real driver and production schema.
  8. Build the final artifact and smoke-test database initialization.

What it can do on your machine

Read from SKILL.md and the folder at commit 16b4156. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • sqlite.org
    • pkg.go.dev
    • manning.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Codex, Claude Code, and other Agent Skills-compatible clients.

    From compatibility in the SKILL.md frontmatter.

Context cost

Go CLI SQL Storage loads about 801 tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 123 tokens; SKILL.md has 291 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~123
When it runs · the whole SKILL.md, loaded when a task matches
~801
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hashgraph-online/awesome-codex-plugins at commit 16b4156, republished under its MIT licence (© hashgraph-online). 291 words, ~801 tokens.

Download SKILL.mdSave it as .claude/skills/go-cli-sql-storage/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
go-cli-sql-storage
description
Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized queries, adapter error mapping, Scanner and Valuer types, SQLite or server databases, and real-driver integration tests. Use when a Go command stores durable state in SQL, initializes a local database, applies schema changes, or needs safe repository and transaction behavior.
compatibility
Codex, Claude Code, and other Agent Skills-compatible clients.
license
MIT
metadata.version
0.2.0
metadata.displayName
Go CLI SQL Storage
metadata.category
Go
metadata.tags
go,golang,cli,sql,database,storage

Go CLI SQL Storage

Treat *sql.DB as a long-lived pool owned by the composition root. Keep SQL, driver behavior, migrations, and sensitive connection details inside adapters.

Core Workflow

  1. Choose the database and driver from workload, platform, and distribution needs.
  2. Define domain operations and transaction ownership before repository methods.
  3. Open and configure one long-lived pool at the composition root.
  4. Verify required startup connectivity with a bounded PingContext.
  5. Apply versioned migrations using an explicit serialization policy.
  6. Implement parameterized queries and map driver errors to stable domain errors.
  7. Test consumers with fakes and adapters with the real driver and production schema.
  8. Build the final artifact and smoke-test database initialization.
TaskLoad
Design storage for a CLIguidelines.md, workflows/build-sql-storage.md
Add or change migrationsworkflows/apply-schema-migrations.md
Test an adapterworkflows/test-sql-adapter.md
Review pools, transactions, queries, or conversionsreferences/sql-storage/rules.md
Understand driver and pool contractsreferences/sql-storage/knowledge.md
Build a multi-process SQLite cachereferences/sql-storage/sqlite.md
Review patternsreferences/sql-storage/examples.md

Guardrails

  • Do not treat sql.Open as a connectivity check.
  • Do not interpolate untrusted values or identifiers into SQL.
  • Do not treat embedded schema text as a migration system.
  • Do not expose driver error types as the application contract.
  • Do not use a broad repository interface that mirrors an adapter.
  • Do not assume an in-memory SQLite database is shared across pooled connections.

Source Notes

Guidance is transformed and paraphrased from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapter 10. Examples are original.

Nullable values, row lifecycle, and pool guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapter 10.

Book: https://www.manning.com/books/go-by-example

Verify current contracts against https://pkg.go.dev/database/sql, https://pkg.go.dev/database/sql/driver, and the selected driver's documentation. For SQLite, also verify https://sqlite.org/wal.html, https://sqlite.org/lang_transaction.html, and https://sqlite.org/backup.html.

© hashgraph-online, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (references) in plugins/LVTD-LLC/skills/skills/go-cli-sql-storage of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • agents/openai.yaml
  • guidelines.md
  • references/sql-storage/examples.md
  • references/sql-storage/knowledge.md
  • references/sql-storage/rules.md
  • references/sql-storage/sqlite.md
  • workflows/apply-schema-migrations.md
  • workflows/build-sql-storage.md
  • workflows/test-sql-adapter.md

Open the folder on GitHubat commit 16b4156

Compare with similar skills

Go CLI SQL Storage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Go CLI SQL Storage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Go CLI SQL Storage this skillhashgraph-online/awesome-codex-plugins1.2k—~801Automated safety check: PassMIT
SQL Database Support for pRESTprest/prest4.6k—~1.6kAutomated safety check: PassMIT
Cursor BYOK Database Schemaleookun/cursor-byok3.2k—~1.3kAutomated safety check: PassMIT
Squixeduardofuncao/squix273—~784Automated safety check: PassMIT
Golang Databaseunxed/f42402 repos~2.9kAutomated safety check: PassMIT
Import ExportAHS12/thoth-blueprint626—~499Automated safety check: PassGPL-3.0

Similar skills

  • Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.

    4.6k GitHub stars~1.6k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Cursor BYOK Database Schema

    leookun/cursor-byok

    Guides SQLite schema changes in the Cursor BYOK server, keeping SQLx migrations, the Rust store, API contracts and fixtures aligned.

    3.2k GitHub stars~1.3k tokensUpdated 9 days ago
    DatabasesAuto-check passed
  • Squix

    eduardofuncao/squix

    Run SQL queries across databases (Postgres, MySQL, SQLite, etc.) via the squix CLI.

    273 GitHub stars~784 tokensUpdated 15 days ago
    DatabasesAuto-check passed
  • Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context…

    240 GitHub starsUsed in 2 repos~2.9k tokens
    DatabasesAuto-check passed
  • Import Export

    AHS12/thoth-blueprint

    Change SQL, SQLite worker, DBML, JSON, Mermaid, SVG, or database export/import flows while preserving diagram semantics and round trips.

    626 GitHub stars~499 tokensUpdated 1 mo ago
    DatabasesAuto-check passed
  • SQL

    sendou-ink/sendou.ink

    Help write, debug, and explore SQLite database queries using Kysely.

    297 GitHub stars~423 tokensUpdated today
    DatabasesAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 736 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.2k GitHub stars~922 tokensUpdated yesterday
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.2k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.2k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.2k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.2k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.2k GitHub stars~618 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Go CLI SQL Storage

What does Go CLI SQL Storage do?

Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized…. Go CLI SQL Storage is an agent skill from hashgraph-online/awesome-codex-plugins. Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized queries, adapter error mapping, Scanner and Valuer types, SQLite or server databases, and real-driver integration tests.

When should I use Go CLI SQL Storage?

Go CLI SQL Storage fits situations like: A Go command stores durable state in SQL; initializes a local database; applies schema changes; needs safe repository and transaction behavior.

How do I install Go CLI SQL Storage in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-cli-sql-storage -a claude-code`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/go-cli-sql-storage in hashgraph-online/awesome-codex-plugins) into .claude/skills/go-cli-sql-storage in your project. Claude Code loads it when a task matches its description.

How do I install Go CLI SQL Storage in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-cli-sql-storage -a codex`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/go-cli-sql-storage in hashgraph-online/awesome-codex-plugins) into .agents/skills/go-cli-sql-storage in your project. Codex loads it when a task matches its description.

Can I use Go CLI SQL Storage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-cli-sql-storage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-cli-sql-storage, .gemini/skills/go-cli-sql-storage, .github/skills/go-cli-sql-storage and .opencode/skills/go-cli-sql-storage in your project.

What does Go CLI SQL Storage need to run?

SKILL.md names no scripts, command-line tools or credentials: Go CLI SQL Storage is instructions for the agent only. Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients..

Does Go CLI SQL Storage access the network?

SKILL.md names 3 domains. As links in the text: sqlite.org, pkg.go.dev and manning.com. This is read from the text; nothing was executed.

Is Go CLI SQL Storage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Go CLI SQL Storage use?

Go CLI SQL Storage is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Go CLI SQL Storage use?

About 801 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2k tokens, read only when the agent opens those files.

What are the alternatives to Go CLI SQL Storage?

Skills that share tags, products or a category with Go CLI SQL Storage: SQL Database Support for pREST (prest/prest, 4.6k stars), Cursor BYOK Database Schema (leookun/cursor-byok, 3.2k stars), Squix (eduardofuncao/squix, 273 stars) and Golang Database (unxed/f4, 240 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Go CLI SQL Storage?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,232 GitHub stars. The repository holds 736 skills in this directory. The repository was last updated on October 6, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.