Логотип Go Ultimate

Go Ultimate

Організація
Djarvur
go-ultimate

The complete Go development skill. REQUIRED for ALL Go work — writing, refactoring, reviewing, generating, scaffolding, or discussing Go code, including any change to .go files. Use whenever the user mentions Go, Golang, go.mod, a Go package, or asks to build a Go backend service, CLI, library, script, MCP server (Model Context Protocol), or AI/LLM agent with tool calling or ReAct-style reasoning. Routes by project type to the right architecture, conventions, and review checklist. Also gates six language-agnostic companion skills (ponytail minimal-change mode, ponytail-review, ponytail-audit, pr-simplify, test-audit, technical-documentation) that refine change size, test proof, review/audit output and docs for Go work. Highly opinionated; overrides generic Go style and lint guidance on conflicts.

Огляд

ВидавецьDjarvur
Репозиторійgo-ultimate
Назва навичкиgo-ultimate
Зірки
31
Форки
3
Файли в пакеті
41
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 41

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: Djarvur. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Go Ultimate у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/Djarvur/go-ultimate/tree/main/skills/go-ultimate
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Djarvur/go-ultimate.git /tmp/go-ultimate
mkdir -p .claude/skills
cp -r /tmp/go-ultimate/skills/go-ultimate .claude/skills/go-ultimate
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Go Ultimate в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Go Ultimate, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Go Ultimate не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Go Ultimate Skill

A single, opinionated skill for writing the best Go programs — synthesized from four general-Go skills, four agent/MCP donors (one donor, eino, contributes two documents), the Google and Uber style guides, and a repository/production-practice donor. Opinions represent the synthesized consensus; where the donors disagreed, this skill resolved the conflict per the precedence ladder below.

When this skill applies

Always, for any Go work: code generation, refactoring, code review, architecture and style discussions, scaffolding, or any change to .go files.

It overrides generic Go style/lint guidance when they conflict.

Setup — resolving <skill-dir>

Several instructions in this skill reference <skill-dir> — the absolute path to this installed skill directory. Resolve it once per session.

Primary rule: <skill-dir> is the directory containing this SKILL.md. That always works, regardless of how the skill was installed. The bundled detector is at <skill-dir>/scripts/goversion/main.go; the templates are at <skill-dir>/assets/.

This skill ships a manifest for each supported harness (see the repo root), so it can be installed as a plugin on all of them. Each harness resolves the plugin root differently; use the row matching yours:

Harness<skill-dir> resolution
Claude Code (plugin)${CLAUDE_PLUGIN_ROOT}/skills/go-ultimate — the harness resolves this at runtime; the path includes a version directory, so do not hardcode it.
Codex (plugin)${PLUGIN_ROOT}/skills/go-ultimate — Codex exposes the plugin root via ${PLUGIN_ROOT} in hook/script contexts.
Cursor (plugin)the plugin's skills/go-ultimate/ directory; Cursor installs plugins into its cache. Confirm the absolute path via Cursor's plugin UI.
Grok Build (plugin)the plugin's skills/go-ultimate/ directory; Grok reads Claude-compatible plugin content.
GitHub Copilot CLI (plugin)the plugin's skills/go-ultimate/ directory.
ZCode~/.zcode/skills/go-ultimate (or the workspace .zcode/skills/); ZCode also recognizes the .claude-plugin/ manifest.
OpenCodethe directory you copied skills/go-ultimate/ into (manual install — see README).
Any harness (manual clone)the cloned skills/go-ultimate/ directory.

The <skill-dir> path matters for this skill. Unlike markdown-only skills, go-ultimate executes its bundled detector (scripts/goversion/main.go) and references its assets/ templates by path. If your harness does not expose the plugin root through a variable (Cursor, Grok, Copilot, OpenCode), locate the installed skills/go-ultimate/ directory once and use that absolute path. As a fallback, the detector is a stdlib-only single file — copy main.go into the target project and run it there if path resolution fails.

How to use this skill

  1. Detect the project's Go version by running the bundled detector go run <skill-dir>/scripts/goversion/main.go <project-path> (it prints the bare version, e.g. 1.24.3, and always exits 0 — falling back to the Go runtime version if no go.mod or no go directive is found). Use features up to that version. See references/modern-go.md.
  2. Identify the project type using the decision tree below, then load the matching reference.
  3. Follow the non-negotiable principles below — these always apply.
  4. On conflicts between references, apply the precedence rules at the end.
  5. Beyond Go code itself, this package ships six language-agnostic community skills as sibling directories — see Companion skills below for when each one loads.

Project-type decision tree

Ask "what is the user building?" and route accordingly:

Is the code a single binary that the user runs?
├── Yes → Is it < ~300 lines with no external deps beyond stdlib?
│   ├── Yes → SCRIPT / TINY TOOL
│   │          → references/project-layouts.md § Scripts
│   │          → references/engineering-policy.md
│   └── No  → CLI APPLICATION
│              → references/project-layouts.md § CLI
│              → references/engineering-policy.md
│
Is the code meant to be imported by other modules?
├── Yes → LIBRARY / MODULE
│          → references/libraries.md
│          → references/project-layouts.md § Library
│          → references/engineering-policy.md
│
Is the code a long-running server (HTTP/gRPC/messaging)?
├── Yes → BACKEND SERVICE
│          → references/architecture.md        (mandatory)
│          → references/production-readiness.md (mandatory)
│          → references/project-layouts.md § Service
│          → references/engineering-policy.md
│
Is the code a server exposing tools/resources/prompts to LLMs over MCP?
├── Yes → MCP SERVER
│          → references/mcp-server.md          (mandatory)
│          → references/project-layouts.md § Service or § CLI (stdio server = CLI-shaped)
│          → references/production-readiness.md (if hosted/long-running, not stdio)
│          → references/engineering-policy.md
│
Is the code an LLM-driven agent that calls tools / orchestrates multi-step reasoning?
├── Yes → AI AGENT
│          → references/agents.md              (mandatory)
│          → references/project-layouts.md § CLI or § Service (depends on hosting)
│          → references/production-readiness.md (if hosted/long-running)
│          → references/engineering-policy.md
│
Is the code a code generator, linter, or analysis tool?
├── Yes → Treat as CLI APPLICATION or LIBRARY (whichever fits the distribution),
│          then see references/engineering-policy.md § Code generation
│
Otherwise → ask the user to clarify before proposing structure.

Regardless of type: when initializing a repository, adding CI, or reviewing repository hygiene, also load references/repo-and-ci.md — required files, ignore baselines, go tool pinning, workflow shape, release stamping.


Non-negotiable principles (always apply)

These are the consensus backbone. Every Go file this skill touches obeys them.

  1. Modern Go, version-gated. Use every feature up to the project's go.mod version. any over interface{}. errors.Is/As over ==. slices/maps/ cmp over hand-rolled loops. See references/modern-go.md.

  2. No pkg/ directory. Ever. Library code lives at the module root; importable apps expose a public port/ package. The pkg/ convention is a kubernetes-era anti-pattern. See references/project-layouts.md.

  3. internal/ for private code; cmd/<name>/ for multiple binaries; flat for tiny tools. Start simple; grow deliberately.

  4. Context first, errors explicit. func F(ctx context.Context, ...) (..., error). Wrap with fmt.Errorf("...: %w", err). Never compare errors with ==.

  5. Thin adapters, fat-free imports. Business-logic packages never import net/http, os, or transport SDKs. Adapters only translate formats and protocol shapes.

  6. Concurrency hygiene. Every goroutine has an exit condition (Context or WaitGroup). Use errgroup for parallel fan-out. Always test with -race.

  7. Accept interfaces, return structs. Interfaces are defined at the point of use, not the point of implementation. Small, single-method interfaces win.

  8. Comments explain why, not what. Named, idiomatic, exported identifiers do the rest.

  9. Typed contracts at boundaries. MCP tool args and agent inter-node data flow are typed structs (generics where the framework supports it), never map[string]any as the universal contract. See references/mcp-server.md and references/agents.md.

  10. Smallest complete change. Every Go change obeys the ponytail discipline (../../ponytail/SKILL.md): YAGNI, stdlib before a new dependency, no unrequested abstractions, shortest working diff that still reaches every caller, test and fixture the change breaks; a shortcut: comment marks every deliberate limit. On conflicts, a change that adds code this skill would reject is wrong even if it works.

  11. Proof is earned, not accumulated. New tests pass the test-audit authoring gate (../../test-audit/SKILL.md): protected observable behavior, a credible regression, one primary owner at the strongest boundary — no duplicate, implementation-coupled or test-only-seam proof. Every deliberate scope limit in Go code gets a shortcut: comment so ../../ponytail-audit/SKILL.md can surface it later.


Quick reference (top rules, with link to detail)

RuleDetail
Detect Go version, use features up to itmodern-go.md
Pick layout by project typeproject-layouts.md
Service architecture: bounded-context hexagonalarchitecture.md
package main: thin, run(ctx, cfg) error pattern, no testable logic in main()engineering-policy.md
Config: Resolvable Config Struct (not Functional Options)engineering-policy.md
if x := f(); cond only when init is the condition; else separate statementengineering-policy.md
Errors: sentinels via errors.Is, typed via errors.As, wrap with %w, aggregate with errors.Joinengineering-policy.md
Tests: vanilla testing, package xxx_test, TestF_suffixCamelCase namestesting.md
Mocks: go.uber.org/mock (gomock) default; testify-mocks only if already on testifytesting.md
Review: Critical / Important / Suggestion / Positive buckets, What-Why-How per issuecode-review.md
Libraries: README (rationale + honest comparison + payoff-first quick start) vs doc.go (contracts)libraries.md
go.mod: apps latest, libraries latest-1engineering-policy.md
Lint: golangci-lint + govet + go test -race mandatory in CIengineering-policy.md
Naming: MixedCaps, initialism case (userID, HTTPClient), no Get prefix, no util/common packageengineering-policy.md
%w only when the cause is intended as API; %v for a dependency's error crossing a public boundaryengineering-policy.md
No mutable globals; no goroutines or I/O in init(); comma-ok on every type assertionengineering-policy.md
Fan-out is bounded (SetLimit/semaphore); channels unbuffered or size 1engineering-policy.md
Repo must have LICENSE, README.md, AGENTS.md, ignore files, .golangci.yml, CI; tools pinned via go toolrepo-and-ci.md
Services: bounded calls, safe retries, stable error contract, liveness≠readiness, outbox, rolling-safe migrationsproduction-readiness.md
MCP server: official go-sdk, typed tool handlers, two-channel errors, tool design as outcomes-not-operationsmcp-server.md
AI agent: ReAct loop w/ bounded iterations, 6 topology archetypes, type-aligned composition (reject map[string]any between nodes)agents.md
Every Go change: smallest complete fix (YAGNI, stdlib-first, no speculative abstraction), limit marked shortcut:../../ponytail/SKILL.md
New/changed tests: pass the authoring gate — behavior, credible regression, one owner, no test-only seams../../test-audit/SKILL.md
Before opening a PR: re-derive the smallest complete fix, cut hunks that serve another goal, >800 changed lines = stage it../../pr-simplify/SKILL.md
Review request: read the connected code, findings grouped must/should/nice, every finding has a concrete case and a price../../ponytail-review/SKILL.md
"Audit this repo": map flows + expected load first, ranked findings max 20, lean class, verdict + Not-checked../../ponytail-audit/SKILL.md
Docs or AGENTS.md/CLAUDE.md work: build/review × brownfield/evergreen, AGENTS.md canonical, aliases as compatibility surfaces../../technical-documentation/SKILL.md

These last rows route to the package's companion skills, which live outside references/ — see Companion skills.


Conflict precedence (which reference wins)

When two references seem to disagree:

  1. Layout / architecture / ports / wiring / modular monolith for services → architecture.md wins.
  2. Version-gated syntax (whether a feature exists in this Go version) → modern-go.md wins.
  3. Everything else (config, errors, testing, naming, linting, dependencies, CI) → engineering-policy.md wins.
  4. Library public-API concerns (semver, deprecation, doc.go split) → libraries.md wins for library projects.
  5. Code review output format → code-review.md wins.
  6. MCP servers in Go (SDK choice, tool-handler design, two-channel errors, pagination, middleware) → mcp-server.md wins.
  7. AI agents in Go (ReAct loop, multi-agent topology, typed data flow between nodes, state externalism) → agents.md wins.
  8. Runtime behavior of a long-running service (timeout/retry/idempotency policy, API error contract, liveness vs readiness, metric cardinality, migration safety, outbox) → production-readiness.md wins. It refines rule 3: engineering-policy sets the observability floor, this sets the service shape.
  9. Concrete repository and pipeline files (required files, ignore baselines, workflow YAML, go tool pinning, build stamping) → repo-and-ci.md wins. It also refines rule 3: engineering-policy states which gates are mandatory, this states how they are written.
  10. Change discipline, test proof, review and audit output (smallest-change rules, test authoring/retention, PR simplification, review and audit report shape) → the matching companion skill wins over any overlapping Go-side guidance: ../../ponytail/SKILL.md, ../../ponytail-review/SKILL.md, ../../ponytail-audit/SKILL.md, ../../pr-simplify/SKILL.md, ../../test-audit/SKILL.md, ../../technical-documentation/SKILL.md.

The adapter carve-out (mcp-server.md § "Adapter carve-out") refines rule 5 of the non-negotiable principles for MCP handlers only: the handler package is an inbound adapter and may import mcp.*.

Project-file precedence (escalation rule)

When a project-level instruction file contradicts this skill, follow this order, stopping at the first match:

  1. Explicit user instruction in the current turn — always wins. If the user says "use Functional Options here," use them, even though the skill mandates Resolvable Config Struct.
  2. Project AGENTS.md / CLAUDE.md at the repo root — wins over this skill for project-specific conventions. A project that legitimately needs pkg/ (e.g. a kubernetes-style repo) says so there.
  3. This skill — the default for any Go decision not addressed above.
  4. Generic Go style/lint guidance — lowest priority; this skill overrides it on conflicts by design.

If (1) and (2) are silent and the skill's rule feels wrong for the project, say so out loud before applying it — propose the deviation, name the rule it contradicts, and let the user decide. Do not silently override the skill, and do not silently apply it when a project file arguably contradicts it.

Companion skills

This package ships six language-agnostic community skills as sibling directories of skills/go-ultimate/. They apply to any language, they load on their own triggers (not only Go work), and relative links from this file reach them via ../../<name>/SKILL.md. Provenance, licenses and every deviation from upstream: UPSTREAM.md at the repo root.

SkillLoads whenWhat it adds
ponytailany coding task; "ponytail", "be lazy", "yagni", over-engineering complaintsThe smallest complete change: YAGNI, stdlib-first, no unrequested abstraction, shortest working diff; levels lite/full/ultra. Principle 10.
ponytail-review"review this", "review my PR", "is this over-engineered"Change review: bugs → risk → scale → missing tests → speed → lean; must/should/nice groups, Ship verdict, explicit Not-checked.
ponytail-audit"audit this repo", "find bloat", "what can I delete"Whole-repo audit: flow/load map, ranked findings (max 20), lean class, health verdict. Reads shortcut: markers (principle 11).
pr-simplifybefore opening a PR or pushing large repairsAuthor-side diff simplification: re-derive the smallest fix, drop hunks that serve another goal, stage >800-line changes.
test-auditwriting, changing, reviewing or pruning testsAuthoring gate + junk-pattern/retention bars; CAMPAIGN.md playbook for whole-subsystem pruning. Principle 11.
technical-documentationdocs work, AGENTS.md/CLAUDE.md/README audit or authoringBuild/review × brownfield/evergreen docs, AGENTS.md-canonical alias policy, agent-file drift diagnosis.

Trigger overlap: a Go task fires this skill first; these companions refine the non-Go aspects of the same work — change size (ponytail, pr-simplify), test proof (test-audit), report shape (ponytail-review, ponytail-audit), docs (technical-documentation). Within those aspects the companion wins (precedence rule 10). Each companion is self-contained: a harness that lists sibling skills individually may also invoke them directly.

Verification

After applying this skill to a Go project, the project should pass:

go vet ./...
go build ./...
go test -race ./...

If any of these fail as a result of changes made under this skill, that is a skill regression — surface it, do not paper over it. For new projects scaffolded from assets/, the result should compile and test green before handing control back to the user.

Evaluating the skill itself

Example prompts and expected behaviors for catching drift live in evals/. Run them when the skill is updated. The audit methodology that produced this skill is not shipped with it; the rules above are the canonical source.

This skill is highly opinionated. Do not relitigate these rules at runtime — apply them, and note any project-specific deviation in the project's own AGENTS.md / CLAUDE.md if one exists.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Go Ultimate?

The complete Go development skill. REQUIRED for ALL Go work — writing, refactoring, reviewing, generating, scaffolding, or discussing Go code, including any change to .go files. Use whenever the user mentions Go, Golang, go.mod, a Go package, or asks to build a Go backend service, CLI, library, script, MCP server (Model Context Protocol), or AI/LLM agent with tool calling or ReAct-style reasoning. Routes by project type to the right architecture, conventions, and review checklist. Also gates six language-agnostic companion skills (ponytail minimal-change mode, ponytail-review, ponytail-audi...

Навіщо використовувати Go Ultimate у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Go Ultimate — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Go Ultimate у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/Djarvur/go-ultimate/tree/main/skills/go-ultimate. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Go Ultimate?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Go Ultimate?

Зі скількома забажаєте. У TypingMind ви можете використовувати Go Ultimate із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Go Ultimate?

Так. На GitHub цю навичку публікує Djarvur за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇