go-sqlparams-query-author

Build and refactor parameterized SQL queries with go-sqlparams.

1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/mikeschinkel/ai-agent-depot --skill go-sqlparams-query-author
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: go-sqlparams-query-author
Source: https://github.com/mikeschinkel/ai-agent-depot/tree/main/skills/go-sqlparams-query-author
Command: npx skills add https://github.com/mikeschinkel/ai-agent-depot --skill go-sqlparams-query-author

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write and refactor SQL query code using go-sqlparams to build safe, parameterized queries and reduce SQL duplication.

Core Features & Use Cases

  • Parameterized SQL: Build queries with named parameters and argument lists using go-sqlparams.
  • Dynamic Filters: Compose optional predicates and IN clauses safely.
  • Pagination & Sorting: Implement paging and ordering in a consistent way.
  • Use Case: When you need to convert ad-hoc SQL into reusable, parameterized builders.

Quick Start

Write a function that builds a parameterized SELECT with named parameters using go-sqlparams and returns rows.

Frequently Asked Questions about go-sqlparams-query-author

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

FAQPage Schema
How do I build parameterized SQL queries with dynamic filters in Go?▼

Build parameterized SQL queries with dynamic filters in Go by using go-sqlparams to compose optional predicates and IN clauses safely, binding arguments and enforcing safe query patterns.

What is the best way to add pagination and sorting to parameterized SQL statements?▼

The best way to add pagination and sorting to parameterized SQL statements is using go-sqlparams to implement paging and ordering consistently while maintaining safe argument binding.

How do I refactor ad-hoc SQL into reusable parameterized query builders?▼

Refactor ad-hoc SQL into reusable parameterized query builders by converting raw query strings into go-sqlparams structures with named parameters and argument lists to reduce SQL duplication.

Does go-sqlparams enforce safe binding patterns and error reporting for SQL composition?▼

Yes, go-sqlparams enforces safe binding patterns and error reporting for SQL composition by utilizing the doterr package to handle errors during the dynamic query building and refactoring process.

Can I compose optional predicates and IN clauses safely with go-sqlparams?▼

You can compose optional predicates and IN clauses safely with go-sqlparams by building parameterized queries that accept named parameters and argument lists, ensuring dynamic filters are bound correctly.