agentleFS
DankosikDankosik/golang-backend-skills/skills/go-data/SKILL.md

go-data

Skill0 starsChanged 2 months agoMITView on GitHub

Implement or review Go query shape, database-value mapping, transactions, and migration compatibility.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep rollback and resource release explicit on failure.

    line 12
  2. Distinctive:

    Use constraints, conditional writes, or locks where an invariant needs arbitration.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Go Data

Atomicity. Identify the property being changed: query shape, Go value conversion, transaction consistency, or schema compatibility. For competing requests or partial failure, state the invariant that must survive. Honor requirements and preserve settled choices outside the requested change.

For transactional work, follow the actual driver, generated queries, or ORM. Identify the transaction handle, connection lifetime, and commit boundary. All participating work must use that handle and finish before release; a call through the shared pool can escape the transaction.

Keep rollback and resource release explicit on failure. Use the driver's actual cancellation semantics rather than assuming request cancellation ends a transaction. Observe row iteration errors and close rows and other owned resources. Reuse application-owned pools instead of creating one per operation.

Use constraints, conditional writes, or locks where an invariant needs arbitration. A preflight read cannot settle a race. Distinguish known rejection or rollback from an uncertain commit before retrying. An external effect cannot be undone by a database rollback.

For queries and mappings, work backward from the required result to a bounded fetch plan. Parameterize values and constrain dynamic identifiers. Preserve nulls, large integers, decimals, and time semantics across database and Go types; inspect generated SQL when query behavior matters. For migrations, use the existing schema owner and consider application versions that must coexist.

Test pure conversion with representative driver values; do not invent a database harness for a mapping-only claim. Query execution, constraints, isolation, and locking need the relevant engine and real mechanism; observe committed state independently when commitment or visibility is the claim. Mocks can test orchestration, not those database properties. Report unavailable evidence without claiming a weaker check proves it.

For review-only work, do not edit files. Tie each finding to the query or transaction path and a concrete invariant violation; check existing constraints and isolation before claiming a race.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.