Skip to content
Back to skills

Go Idiomatic

ASecurity

Use when a Go change affects caller-visible error identity, context lifetime, nil or zero behavior, aliasing, method sets, or resource ownership.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 24, 2026
developmentgo

Security analysis

A100/100

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

Scanned September 24, 2026

npx -y skills add Dankosik/go-service-template-rest --skill go-idiomatic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Idiomatic?

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

Security grade badge for Go Idiomatic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dankosik-go-idiomatic/badge)](https://www.skillsdirectory.com/skills/dankosik-go-idiomatic)

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: go-idiomatic
description: "Use when a Go change affects caller-visible error identity, context lifetime, nil or zero behavior, aliasing, method sets, or resource ownership."
metadata:
  invocation: model
  kind: method
---

# Go Idiomatic

Go correctness follows **semantic ownership**: who owns error identity, work
lifetime, mutable backing storage, release, and the admissible zero state.

For a delegated Decision or Review, or when the active artifact requires its
result interface, load the
[shared specialist contract](../../contracts/specialist-contract.md).
For every changed boundary, build one ownership story from producer through
caller-visible observation. Name who may inspect the error, cancel the work,
mutate aliased state, release the resource, construct a non-zero value, and
reach each method through the stored type.

Configured linters prove mechanical shape, not that `%w` exposes the right
cause, `Close` occurs in the owning scope, a clone has sufficient depth, or a
typed nil is absent to its caller. A Decision assigns each obligation to one
owner and observable contract. A Review tries the plausible wrong default at
the actual caller boundary.

Complete when every changed semantic boundary has one owner, preserved
caller-visible behavior, and focused proof or a named gap. Load the [reference
selector](references/index.md) only when its stated pressure is observable in
changed symbols or callers.

Files in this skill

  • SKILL.md1.4 KB
  • references/aliasing-and-ownership.md2.5 KB
  • references/error-contracts.md3.3 KB
  • references/index.md1.7 KB
  • references/lifetime-and-release.md2.6 KB
  • references/nil-zero-and-method-sets.md2.4 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.

Comments

Loading comments…