Skip to content
Back to skills

Mainframe Go Backend

ASecurity

Design, change, or review Go services, APIs, and workers, including migrations, transactions, locks, concurrency, retries, and backend tests.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
ai-agentsrustgotestinggitapidatabasebackendsecuritydocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add CATWILLgh/MAINFRAME --skill mainframe-go-backend --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mainframe Go Backend?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mainframe Go Backend
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/catwillgh-mainframe-go-backend/badge)](https://www.skillsdirectory.com/skills/catwillgh-mainframe-go-backend)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mainframe-go-backend
description: Design, change, or review Go services, APIs, and workers, including migrations, transactions, locks, concurrency, retries, and backend tests.
---

# Go backend engineering

Apply within the immediate caller's scope and authority, whether implementing,
delegated, or reviewing.

For behavior changes, load `mainframe-testing` for the shared TDD and local/CI boundary, then use this skill's testing reference for stack-specific evidence.

For schema, migration, index, or constraint work, use the shared
[migration method](../mainframe-testing/references/migrations.md) alongside the
data reference below.

## Establish the active service boundary

Identify the Go module and package that own the behavior. Trace the real process
entrypoint through registration, middleware or worker wiring, business rules,
persistence and external boundaries, side effects, callers, and observable
output. A package name, interface, or passing unit test alone does not prove the
active runtime path.

Several modules, commands, routers, database clients, generated packages, and
test styles may legitimately coexist. Resolve ownership from `go.mod`,
`go.work`, imports, constructors, registration, process commands, build tags,
configuration, and affected tests. Read [reconnaissance](references/recon.md)
when ownership or runtime wiring is unclear.

## Preserve the established system

Preserve the supported Go and toolchain versions, module/workspace layout,
router, persistence library, error contract, concurrency model, observability,
deployment boundary, and verification conventions unless changing one is part
of the assigned result. Do not introduce another router, ORM, migration tool,
worker system, or abstraction layer for convenience.

Keep non-trivial business behavior independent of transport when the established
architecture supports that separation. Pass `context.Context` through request,
database, provider, and background boundaries; derive bounded child contexts at
the operation that owns the deadline. Treat goroutines, transactions,
connections, response bodies, timers, and channels as owned resources with a
defined completion and cleanup path.

Verify installed or selected versions before relying on version-sensitive
behavior. Prefer the owning project's source and current primary documentation.

## Load only the relevant detail

| Changed concern | Read |
|---|---|
| Module, workspace, commands, build tags, generated ownership, or toolchain | [runtime and packaging](references/runtime-and-packaging.md) |
| HTTP, middleware, request/response contracts, sessions, authentication, or authorization | [HTTP and security](references/http-and-security.md) |
| Queries, transactions, locks, pool pressure, migrations, or concurrent state transitions | [data and concurrency](references/data-and-concurrency.md) |
| Outbound APIs, retries, rate limits, idempotency, or ambiguous external writes | [integrations and resilience](references/integrations-and-resilience.md) |
| Goroutines, workers, schedulers, synchronization, pagination checkpoints, or realtime delivery | [background and lifecycle](references/background-and-lifecycle.md) |
| Structured logs, correlation, and diagnostic coverage | [logging baseline](../mainframe-logging/SKILL.md) |
| Choosing focused Go evidence, race checks, or a real dependency boundary | [testing](references/testing.md) |

## Complete and verify the assigned result

Make the smallest complete change across every affected location inside the
assigned boundary. Validate untrusted data at the real boundary, authorize the
concrete action and resource server-side, preserve causal errors, and make
atomicity, lock order, compare-and-set behavior, idempotency, retry termination,
and side-effect timing explicit wherever correctness depends on them.

Use project-native commands, the focused proof and nearest relevant fast package
checks. Use `-race`, a real database engine, process boundary or provider call
only for its changed risk and within the shared local/CI and authority boundary.
Distinguish local simulation, live read compatibility and external mutation
evidence.

Do not replace completion with TODOs, weakened validation or assertions,
unbounded retries, swallowed errors, leaked goroutines, compatibility debris,
or an unrecorded follow-up. Keep credentials and sensitive payloads out of
source, logs, errors, fixtures, and serialized output. Preserve unrelated work.
When a concrete out-of-scope project problem remains, record or reconcile it
through the available project problem route when authorized, then return to the
assigned result without expanding the investigation.

Files in this skill

  • SKILL.md4.6 KB
  • references/background-and-lifecycle.md2 KB
  • references/data-and-concurrency.md2.5 KB
  • references/http-and-security.md1.6 KB
  • references/integrations-and-resilience.md1.7 KB
  • references/recon.md1.7 KB
  • references/runtime-and-packaging.md1.6 KB
  • references/testing.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.