Agent skill

Go Idiomatic API Design

by hashgraph-online in hashgraph-online/awesome-codex-plugins

Design and review stable, idiomatic Go package APIs covering naming, exported declarations, embedding, receivers, typed-nil interfaces, generics, functional options, method sets, errors, wire…

MITAuto-check passedBackend & APIs

Install Go Idiomatic API Design

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill go-idiomatic-api-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins go-idiomatic-api-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/LVTD-LLC/skills/skills/go-idiomatic-api-design .claude/skills/go-idiomatic-api-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
go-idiomatic-api-design
GitHub stars
1.3k
Token cost
~789 tokens
SKILL.md length
312 words
Files
7 (incl. references)
Skills in repo
714
Repo updated
First seen
Licence
MIT

At a glance

Design and review stable, idiomatic Go package APIs covering naming, exported declarations, embedding, receivers, typed-nil interfaces, generics, functional options, method sets, errors, wire…

  • Works in 9 steps: Identify callers, supported operations,… → Sketch realistic call sites before… → Keep packages cohesive and names clear… → …
  • Creating a reusable Go package
  • SKILL.md covers Core Workflow, Read Next, Guardrails and Source Notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Go Idiomatic API Design is an agent skill from hashgraph-online/awesome-codex-plugins. Design and review stable, idiomatic Go package APIs covering naming, exported declarations, embedding, receivers, typed-nil interfaces, generics, functional options, method sets, errors, wire contracts, compatibility, and examples. Use when creating a reusable Go package, reviewing its public surface, evolving an exported API, or choosing concrete types, functions, methods, fields, interfaces, or type parameters.

Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `agents/openai.yaml`, `guidelines.md` and `references/api-design/examples.md`). Compatibility notes: Codex, Claude Code, and other Agent Skills-compatible clients.

It sits in Backend & APIs, covering API design and Embeddings. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is MIT.

When your agent uses it

  • Creating a reusable Go package
  • Reviewing its public surface
  • Evolving an exported API
  • Choosing concrete types

Example prompts

  • “/go-idiomatic-api-design”

Requirements

  • Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients.

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Identify callers, supported operations, and compatibility constraints.
  2. Sketch realistic call sites before choosing exported names or types.
  3. Keep packages cohesive and names clear without package-name stutter.
  4. Prefer concrete provider APIs; define narrow interfaces at consumers.
  5. Decide zero-value, mutation, copying, concurrency, and error contracts.
  6. Review embedding, receiver method sets, typed nils, generics, and option conflicts.
  7. Integrate standard interfaces only when their semantics truly match.
  8. Prove the public surface with external tests and executable examples.
  9. Review the change for accidental compatibility commitments.

What it can do on your machine

Read from SKILL.md and the folder at commit 9e7b281. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • go.dev
    • manning.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Codex, Claude Code, and other Agent Skills-compatible clients.

    From compatibility in the SKILL.md frontmatter.

Context cost

Go Idiomatic API Design loads about 789 tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 110 tokens; SKILL.md has 312 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~789
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hashgraph-online/awesome-codex-plugins at commit 9e7b281, republished under its MIT licence (© hashgraph-online). 312 words, ~789 tokens.

Download SKILL.mdSave it as .claude/skills/go-idiomatic-api-design/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
go-idiomatic-api-design
description
Design and review stable, idiomatic Go package APIs covering naming, exported declarations, embedding, receivers, typed-nil interfaces, generics, functional options, method sets, errors, wire contracts, compatibility, and examples. Use when creating a reusable Go package, reviewing its public surface, evolving an exported API, or choosing concrete types, functions, methods, fields, interfaces, or type parameters.
compatibility
Codex, Claude Code, and other Agent Skills-compatible clients.
license
MIT
metadata.version
0.2.0
metadata.displayName
Go Idiomatic API Design
metadata.category
Go
metadata.tags
go,golang,api-design,packages,interfaces,compatibility

Go Idiomatic API Design

Design from the caller's code inward. Prefer the smallest coherent public surface that preserves invariants and can evolve without needless interfaces.

Core Workflow

  1. Identify callers, supported operations, and compatibility constraints.
  2. Sketch realistic call sites before choosing exported names or types.
  3. Keep packages cohesive and names clear without package-name stutter.
  4. Prefer concrete provider APIs; define narrow interfaces at consumers.
  5. Decide zero-value, mutation, copying, concurrency, and error contracts.
  6. Review embedding, receiver method sets, typed nils, generics, and option conflicts.
  7. Integrate standard interfaces only when their semantics truly match.
  8. Prove the public surface with external tests and executable examples.
  9. Review the change for accidental compatibility commitments.
TaskLoad
Design or evolve an APIguidelines.md, workflows/review-public-api.md
Choose types, fields, methods, or interfacesreferences/api-design/rules.md
Understand compatibility and method setsreferences/api-design/knowledge.md
Review concrete patternsreferences/api-design/examples.md

Guardrails

  • Do not export a field merely to avoid writing behavior.
  • Do not define a provider-wide interface as a mirror of its methods.
  • Do not accept an interface before a real consumer requires substitution.
  • Do not use a standard interface when its conventional semantics are surprising.
  • Do not claim conformance assertions prove behavior.
  • Do not embed a public type unless every promoted behavior is intentional.
  • Do not return a typed nil pointer through an interface success path.
  • Check the module's Go language version before giving version-sensitive advice.

Source Notes

Guidance is transformed and paraphrased from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), especially Chapters 1, 2, 5, 9, and 10. Examples are original.

Embedding, receivers, generics, functional options, and typed-nil guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapters 2 and 6.

Book: https://www.manning.com/books/go-by-example

Current language and documentation contracts should be verified against https://go.dev/ref/spec, https://go.dev/doc/comment, and the module's pinned Go version.

© hashgraph-online, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in plugins/LVTD-LLC/skills/skills/go-idiomatic-api-design of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • agents/openai.yaml
  • guidelines.md
  • references/api-design/examples.md
  • references/api-design/knowledge.md
  • references/api-design/rules.md
  • workflows/review-public-api.md

Open the folder on GitHubat commit 9e7b281

Compare with similar skills

Go Idiomatic API Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Go Idiomatic API Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Go Idiomatic API Design this skillhashgraph-online/awesome-codex-plugins1.3k—~789Automated safety check: PassMIT
Operator Migrationvipshop/cache-dit1.3k—~3.8kAutomated safety check: PassApache-2.0
Golang Structs Interfacescontext-labs/whip1.1k—~3.3kAutomated safety check: PassMIT
Multimodal Dataprep Devopen-edge-platform/edge-ai-libraries169—~1.3kAutomated safety check: PassApache-2.0
Multimodal Dataprep Useropen-edge-platform/edge-ai-libraries169—~2.2kAutomated safety check: PassApache-2.0
Golang Structs Interfacesaiskillstore/marketplace4301 repos~3kAutomated safety check: PassMIT

Similar skills

  • Operator Migration

    vipshop/cache-dit

    A skill your agent uses when doing operator migration or kernel migration for CUDA, Triton, or custom ops in cache-dit; porting kernels from nunchaku, deepcompressor, or other repos; designing…

    1.3k GitHub stars~3.8k tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Golang Structs Interfaces

    context-labs/whip

    Golang struct and interface design — composition, embedding, type assertions, type switches, DI via interfaces, field tags, pointer vs value receivers.

    1.1k GitHub stars~3.3k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Multimodal Dataprep Dev

    open-edge-platform/edge-ai-libraries

    Develop and debug the Multimodal DataPrep microservice: its FastAPI media endpoints, in-process embedding pipeline, batch jobs, object detection, telemetry and Metrics Manager publishing, and…

    169 GitHub stars~1.3k tokensUpdated today
    Backend & APIsAuto-check passed
  • Multimodal Dataprep User

    open-edge-platform/edge-ai-libraries

    Deploy and consume Intel Multimodal DataPrep from prebuilt images or a repository checkout.

    169 GitHub stars~2.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Golang Structs Interfaces

    aiskillstore/marketplace

    Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field tags, and pointer vs…

    430 GitHub starsUsed in 1 repo~3k tokens
    AI & LLM EngineeringAuto-check passed
  • Langchain4j Spring Boot Integration

    giuseppe-trisciuoglio/developer-kit

    Provides integration patterns for LangChain4j with Spring Boot.

    356 GitHub stars~2.3k tokensUpdated 29 days ago
    Backend & APIsAuto-check: notes

More from hashgraph-online/awesome-codex-plugins

All 714 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.3k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.3k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.3k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.3k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.3k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.3k GitHub stars~618 tokensUpdated today
    Auto-check passed

Questions about Go Idiomatic API Design

What does Go Idiomatic API Design do?

Design and review stable, idiomatic Go package APIs covering naming, exported declarations, embedding, receivers, typed-nil interfaces, generics, functional options, method sets, errors, wire…. Go Idiomatic API Design is an agent skill from hashgraph-online/awesome-codex-plugins. Design and review stable, idiomatic Go package APIs covering naming, exported declarations, embedding, receivers, typed-nil interfaces, generics, functional options, method sets, errors, wire contracts, compatibility, and examples.

When should I use Go Idiomatic API Design?

Go Idiomatic API Design fits situations like: creating a reusable Go package; reviewing its public surface; evolving an exported API; choosing concrete types.

How do I install Go Idiomatic API Design in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-idiomatic-api-design -a claude-code`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/go-idiomatic-api-design in hashgraph-online/awesome-codex-plugins) into .claude/skills/go-idiomatic-api-design in your project. Claude Code loads it when a task matches its description.

How do I install Go Idiomatic API Design in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-idiomatic-api-design -a codex`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/go-idiomatic-api-design in hashgraph-online/awesome-codex-plugins) into .agents/skills/go-idiomatic-api-design in your project. Codex loads it when a task matches its description.

Can I use Go Idiomatic API Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-idiomatic-api-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-idiomatic-api-design, .gemini/skills/go-idiomatic-api-design, .github/skills/go-idiomatic-api-design and .opencode/skills/go-idiomatic-api-design in your project.

What does Go Idiomatic API Design need to run?

SKILL.md names no scripts, command-line tools or credentials: Go Idiomatic API Design is instructions for the agent only. Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients..

Does Go Idiomatic API Design access the network?

SKILL.md names 2 domains. As links in the text: go.dev and manning.com. This is read from the text; nothing was executed.

Is Go Idiomatic API Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Go Idiomatic API Design use?

Go Idiomatic API Design is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Go Idiomatic API Design use?

About 789 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2k tokens, read only when the agent opens those files.

What are the alternatives to Go Idiomatic API Design?

Skills that share tags, products or a category with Go Idiomatic API Design: Operator Migration (vipshop/cache-dit, 1.3k stars), Golang Structs Interfaces (context-labs/whip, 1.1k stars), Multimodal Dataprep Dev (open-edge-platform/edge-ai-libraries, 169 stars) and Multimodal Dataprep User (open-edge-platform/edge-ai-libraries, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Go Idiomatic API Design?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,255 GitHub stars. The repository holds 714 skills in this directory. The repository was last updated on October 9, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.