Golang Master logo

Golang Master

Community
pedronauck
golang-master

Write or review production Go: errors, concurrency, context, types, generics, safety, tests, benchmarks, profiling, modernization, and module structure. Project/framework conventions and third-party API lookup have separate owners.

Overview

Publisherpedronauck
Repositoryskills
Skill namegolang-master
Stars
635
Forks
89
Bundled files
10
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by pedronauck on GitHub. Read the source before you install it.

Installation

Install the Golang Master AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/pedronauck/skills/tree/main/skills/mine/golang-master
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pedronauck/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/mine/golang-master .claude/skills/golang-master
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Golang Master in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Golang Master on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Golang Master is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Golang Master

Language-level doctrine for Go 1.21+ (1.22–1.26 features flagged inline) in any Go codebase. This skill is the generic floor; a project's own guidelines skill overrides it wherever the two conflict, and this skill owns everything the project leaves unsaid.

Use the matching reference sections for a concrete Go concern. Reuse current context; do not load every reference merely because Go appears in the task. Project conventions and supported Go versions govern applicability.

The floor

Non-negotiables for every line of Go, regardless of branch:

  1. Every error is handled or carries a written justification at the discard site — never a bare _.
  2. Errors wrap with fmt.Errorf("context: %w", err) and are matched with errors.Is/errors.As — never by string comparison.
  3. ctx context.Context is the first parameter of any function that does I/O, blocks, or crosses an API boundary, and the caller's ctx is propagated — never a fresh context.Background() mid-path.
  4. Every goroutine has an owner, an exit path, and a way to be waited on.
  5. panic is reserved for impossible states; expected failures return errors.
  6. Check uncertain type assertions. Initialize maps before writes; use nil/zero-value slices when their semantics fit the contract.
  7. Use compile-time interface assertions for an intentional implementation contract; do not invent interfaces just to add an assertion.
  8. Tests prove the owning invariant. Use tables for multiple cases and race checks for concurrency or when the project requires them.
  9. Apply gofmt and the project's owning lint/test gates; reuse current evidence instead of running repository-wide vet for every edit.
  10. Operational values (timeouts, limits, addresses) come from configuration or options — never hardcoded.

Branches

When the task involves…Read
Creating, wrapping, matching, logging, or joining errors; panic/recover policyreferences/errors.md
Goroutines, channels, select, sync primitives, errgroup, worker pools, racesreferences/concurrency.md
Cancellation, timeouts, deadlines, context values, detached background workreferences/context.md
Nil traps, append aliasing, map access, numeric conversion, defer-in-loop, zero valuesreferences/safety.md
Designing structs, interfaces, embedding, receivers, field tags, genericsreferences/interfaces-generics.md
Naming anything, control-flow shape, constructors, functional options, init()references/style-naming.md
Writing or reviewing tests, benchmarks, fuzzing, integration build tagsreferences/testing.md
Profiling, allocation hunting, GC tuning, benchmark comparisonreferences/performance.md
Old-style patterns, deprecated APIs, Go version upgradesreferences/modernize.md
New module, directory layout, cmd/internal/pkg, workspacesreferences/layout.md

Concurrency work that cancels anything reads both concurrency.md and context.md. A review reads the relevant sections needed to assess the changed behavior.

Tripwires

Investigate these signals when they occur in the changed path; they are not categorical defects:

  • A goroutine spawned with no ctx.Done(), channel close, or WaitGroup path — it outlives its caller.
  • time.After inside a loop — a timer allocation per iteration; use time.NewTimer + Reset.
  • A typed nil pointer returned as an interface — the result is != nil.
  • An append result kept alongside the original slice — shared backing array, silent co-mutation.
  • defer inside a loop body — resources accumulate until function exit; extract the body.
  • A narrowing integer conversion without a bounds check — silent wraparound.
  • An error logged and returned — duplicate reports upstream; pick exactly one.
  • An interface returned from a constructor, or defined beside its implementation instead of its consumer.
  • Tests with unexplained shared mutable state or concurrency behavior without race coverage.
  • any where a type parameter or concrete type is known.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Golang Master AI skill do?

Write or review production Go: errors, concurrency, context, types, generics, safety, tests, benchmarks, profiling, modernization, and module structure. Project/framework conventions and third-party API lookup have separate owners.

Why use Golang Master on TypingMind?

Because you install it once and use it with any model. Golang Master is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Golang Master in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/pedronauck/skills/tree/main/skills/mine/golang-master. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Golang Master?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Golang Master?

As many as you like. As long as a model supports skills, you can use Golang Master with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Golang Master AI skill free?

It is published on GitHub by pedronauck. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇