Skip to content
Back to skills

Exec Go

ASecurity

Go execution idioms to embed into Codex prompts when the target project is Go — error handling, concurrency discipline, and standard project conventions.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add anhnguyen0905/codex-mcp --skill exec-go --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec Go?

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

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

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: exec-go
description: Go execution idioms to embed into Codex prompts when the target project is Go — error handling, concurrency discipline, and standard project conventions.
---

# Go Idioms (embed when project is Go)

```
Go standards:
- Errors are values: check every err; wrap with context (`fmt.Errorf("doing x: %w", err)`);
  no panic in library code — reserve it for truly unrecoverable programmer errors.
- Accept interfaces, return concrete types; keep interfaces small and defined where consumed.
- Concurrency: every goroutine has a clear owner and exit path (context cancellation, closed
  channel, WaitGroup) — no fire-and-forget leaks; guard shared state with mutex or channels,
  never both ad hoc; pass context.Context as the first parameter through call chains.
- Zero values matter: design structs whose zero value is usable, or provide a constructor.
- defer for cleanup immediately after acquiring the resource.
- Follow gofmt (non-negotiable), golangci-lint if configured, and standard layout the repo
  already uses (cmd/, internal/, pkg/).
- Naming: short receiver names, MixedCaps not underscores, exported identifiers documented with
  a leading-name comment.
- Tests: table-driven with subtests (t.Run), t.Helper() in helpers; use the repo's assertion
  style (stdlib vs testify) — don't introduce a new one.
```

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.