К основному содержанию
скилл CX Codex

go-skills-router — скилл для Claude Code: выбор Go-скиллов

Скилл помогает выбрать основной Go-скилл и дополнительные для задачи. Пригодится, когда запрос затрагивает несколько областей или непонятно, где проходит граница между похожими скиллами.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add eduardo-sl/go-agent-skills --skill go-skills-router -a claude-code
Открыть на GitHub

Что делает go-skills-router

go-skills-router — индекс для Go-скиллов из репозитория eduardo-sl/go-agent-skills. Таблица связывает задачи с основным скиллом и перечисляет дополнительные: например, для работы с goroutines предлагает учитывать контекст и тестирование. Индекс также помогает отличить диагностику уже случившейся проблемы от её профилактики.

Внутри есть маршруты для разработки API, баз данных, тестов, безопасности, CI и других задач, а также пояснения для областей с пересекающимися триггерами. Скилл сам по себе только указывает на другие скиллы: каждый из них можно читать отдельно. Для задач, которые уже однозначно относятся к одному скиллу, индекс не нужен — загружайте профильный скилл напрямую.

В Claude Code установите скилл командой npx skills add eduardo-sl/go-agent-skills --skill go-skills-router -a claude-code; его файл будет доступен по пути ~/.claude/skills/go-skills-router/SKILL.md.

Какие задачи решает

  • выбрать Go-скилл для задачи с неясной областью
  • подобрать дополнительные скиллы для нескольких аспектов работы
  • развести похожие задачи по профильным скиллам
  • найти подходящий скилл для настройки Go-проекта

Примеры запросов агенту

  • Подскажи, какой Go-скилл выбрать для поиска причины медленной работы.
  • Какие Go-скиллы загрузить, если я пишу goroutines и тесты?
  • Помоги настроить Go-скиллы для этого проекта.

Как установить go-skills-router

1Через Skills CLI (Vercel)

npx skills add eduardo-sl/go-agent-skills --skill go-skills-router -a claude-code

2Вручную: положить файлы

~/.claude/skills/go-skills-router/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/go-skills-router/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о go-skills-router

Как установить go-skills-router в Claude Code?

Выполните npx skills add eduardo-sl/go-agent-skills --skill go-skills-router -a claude-code. Файл скилла находится по пути ~/.claude/skills/go-skills-router/SKILL.md.

Что делает go-skills-router?

Он сопоставляет задачи с основными Go-скиллами и подсказывает, какие дополнительные загрузить. Также объясняет, как выбирать между скиллами с пересекающимися темами.

Нужно ли загружать другие Go-скиллы вместе с go-skills-router?

Индекс называет подходящие скиллы, но сам по себе их не требует. Каждый из перечисленных скиллов можно читать отдельно.

Исходный текст

SKILL.md · MIT
---
name: go-skills-router
description: >
  Index and routing table for this repository's Go skills: maps a task to
  the skill that owns it, names the secondary skills worth loading
  alongside, and draws the boundary between skills whose triggers overlap.
  Use when it is unclear which Go skill applies, when a task spans several
  concerns at once, when two skills seem to cover the same ground, or when
  the user asks what Go skills are available or wants a project configured
  to load them. Trigger examples: "which skill should I use", "what Go
  skills do you have", "is this concurrency or performance", "set up the
  Go skills for this repo".
  Not for: a task that already maps cleanly to one skill — load that skill
  directly.
user-invocable: true
license: MIT
compatibility: Designed for Claude Code or similar AI coding agents working on Go projects. Indexes the skills published in eduardo-sl/go-agent-skills; it names them, it does not require them.
allowed-tools: Read Edit Write Glob Grep
metadata:
  author: eduardo-sl
  version: "1.3.0"
---

# Go Skills Router

This repository publishes 35 Go skills. Their triggers necessarily overlap —
"this is slow" could be performance, concurrency, database, or a leak. Use the
tables below to pick the owner, then load the secondary skills in the same
pass rather than discovering them one at a time.

This is an index. Every skill it names stands alone and can be read without
this one.

## Routing Table

| Task | Primary | Also load |
|---|---|---|
| Format code, order imports, declare and initialise | `go-coding-standards` | `go-documentation` |
| Name a package, type, function, receiver or error | `go-naming` | `go-coding-standards` |
| Review a diff or a PR | `go-code-review` | the skill owning the domain under review |
| Return, wrap, or inspect errors | `go-error-handling` | `go-defensive-coding` for nil-heavy code |
| Pass deadlines, cancel work | `go-context` | `go-concurrency-review` if goroutines are involved |
| Adopt newer Go features | `go-modernize` | `go-ci` to raise the toolchain in CI |
| Slices, maps, sets, preallocation | `go-data-structures` | `go-performance-review` |
| Write godoc, examples, deprecations, README, CHANGELOG | `go-documentation` | `go-coding-standards` |
| Guard against panics and silent corruption | `go-defensive-coding` | `go-error-handling` |
| Review package layout and dependency direction | `go-architecture-review` | `go-interface-design` |
| Start a new project or service | `go-project-layout` | `go-dependency-injection`, `go-ci` |
| Design an interface or a type | `go-interface-design` | `go-design-patterns` |
| Apply a known pattern | `go-design-patterns` | `go-interface-design` |
| Wire dependencies, remove globals | `go-dependency-injection` | `go-project-layout` |
| Build an HTTP API | `go-api-design` | `go-openapi`, `go-observability` |
| Work from an OpenAPI spec | `go-openapi` | `go-api-design`, `go-test-quality` |
| Build a GraphQL API | `go-graphql` | `go-database`, `go-api-design` |
| Build a gRPC service | `go-grpc` | `go-test-quality`, `go-observability` |
| Build a CLI | `go-cli` | `go-project-layout`, `go-binary-size` |
| Query a database, manage transactions | `go-database` | `go-error-handling`, `go-security-audit` |
| Write goroutines, channels, sync | `go-concurrency-review` | `go-context`, `go-test-quality` |
| Audit for vulnerabilities | `go-security-audit` | `go-dependency-audit`, `go-defensive-coding` |
| Reduce allocations, optimise a hot path | `go-performance-review` | `go-data-structures` |
| Shrink a binary or image | `go-binary-size` | `go-ci` |
| Cut a release: GoReleaser, signing, SBOMs, provenance | `go-build-release` | `go-ci`, `go-binary-size` |
| Add logs, metrics, traces | `go-observability` | `go-context` |
| Debug a panic, leak, or deadlock | `go-troubleshooting` | `go-concurrency-review`, `go-performance-review` |
| Write or improve tests | `go-test-quality` | `go-test-table-driven` |
| Structure a test matrix | `go-test-table-driven` | `go-test-quality` |
| Audit go.mod, check CVEs | `go-dependency-audit` | `go-security-audit` |
| Set up CI, linting, coverage gates | `go-ci` | `go-dependency-audit` |
| Restructure existing code safely | `go-refactoring` | `go-semantic-tools`, plus the skill owning the target shape |
| Find callers, implementers, rename | `go-semantic-tools` | `go-refactoring` |
| Write a commit message | `git-commit` | — |

## Boundaries Between Overlapping Skills

Load the one that owns the **question being asked**, not the one that matches
a keyword in the code.

**"It is slow."**

- `go-performance-review` — the code allocates or copies too much. Owns
  benchmarks, pprof, and optimisation patterns.
- `go-concurrency-review` — the code contends on a lock or serialises work
  that could run in parallel.
- `go-database` — the query is the problem: missing index, N+1, pool
  exhaustion.
- `go-troubleshooting` — you do not yet know which of the three it is. Start
  here to find out, then hand off.

**"It crashed."**

- `go-troubleshooting` — a panic, deadlock, or leak already happened.
  Diagnosis, profiles, delve.
- `go-defensive-coding` — prevention. Nil traps, aliasing, overflow, the
  constructs that make the next crash impossible.
- `go-concurrency-review` — a data race or a goroutine lifecycle bug.

**"Is this secure?"**

- `go-security-audit` — external threats: injection, auth, secrets, TLS.
- `go-dependency-audit` — known CVEs in modules you import.
- `go-defensive-coding` — internal correctness bugs that are not attacks.

**"How should this be structured?"**

- `go-architecture-review` — the shape of an existing codebase.
- `go-project-layout` — the shape of a new one.
- `go-interface-design` — the shape of one type or contract.
- `go-refactoring` — the *process* of getting from the current shape to the
  target shape. Load it alongside whichever skill above owns that target.

**"How do I expose this?"**

- `go-api-design` — HTTP/REST handlers, routing, middleware, idempotency,
  health checks, shutdown.
- `go-openapi` — the contract is a spec and code is generated from it.
- `go-graphql` — the client picks the shape of the response.
- `go-grpc` — protobuf contract, interceptors, streaming.

**"Tests."**

- `go-test-quality` — what to test, how to isolate it, what to mock,
  synctest, goleak, benchmarks.
- `go-test-table-driven` — the table pattern specifically: when it helps,
  how to shape the case struct, when to stop using it.

**"Style."**

- `go-coding-standards` — the rules the code should follow.
- `go-naming` — what things are called: packages, types, functions,
  receivers, errors.
- `go-code-review` — applying rules to someone else's change, with severity.
- `go-modernize` — rules that changed because the language moved.
- `go-ci` — making a machine enforce them.

**"Ship it."**

- `go-ci` — the pipeline that gates every change: build, lint, test, scan.
- `go-build-release` — turning a tag into signed, reproducible artifacts.
- `go-binary-size` — making those artifacts smaller.

## Which Tool Answers the Question

| Question | Tool | Skill |
|---|---|---|
| Where is this symbol used / implemented, in *this* build? | gopls (MCP server or CLI) | `go-semantic-tools` |
| What is the API of a dependency at the version we use? | `go doc pkg Symbol`, gopls `go_package_api` | `go-semantic-tools` |
| What does another version of a module look like? | `go doc [email protected]` (Go 1.27+), `go list -m -versions` | `go-dependency-audit` |
| Which known vulnerabilities can our code actually reach? | `govulncheck ./...` | `go-dependency-audit` |
| Which packages import which? | `go list -deps`, `go mod graph`, `go mod why` | `go-semantic-tools` |

## Multi-Concern Tasks

A real task usually crosses three skills. Load them together at the start
rather than sequentially.

| Request | Load |
|---|---|
| "Build a gRPC service with tests" | `go-grpc` + `go-test-quality` + `go-error-handling` |
| "This endpoint is slow under load" | `go-troubleshooting` + `go-performance-review` + `go-database` |
| "Harden this service before launch" | `go-security-audit` + `go-dependency-audit` + `go-defensive-coding` + `go-ci` |
| "Split this monolith" | `go-architecture-review` + `go-refactoring` + `go-semantic-tools` |
| "Scaffold a new CLI" | `go-project-layout` + `go-cli` + `go-ci` + `go-binary-size` |
| "Migrate this to the current Go release" | `go-modernize` + `go-test-quality` + `go-ci` |

## Configure a Project to Use These Skills

Asked to make a project load these skills automatically:

1. Find the agent-config files the project already has: `CLAUDE.md`,
   `AGENTS.md`, `GEMINI.md`, `.github/copilot-instructions.md`,
   `.cursor/rules/`.
2. Skip any file that already references `go-skills-router`.
3. Propose this block for each, show the diff, and write only after the
   developer agrees:

   ```markdown
   ## Go skills

   Before any Go coding, review, debugging or setup task, consult the
   `go-skills-router` skill and load the skills it names for the task.
   ```

4. If the team wants some skills on every task regardless of routing
   (for example `go-error-handling` and `go-security-audit`), list them
   under the block as "Always load", with the reason.

## Full Catalogue

| Category | Skills |
|---|---|
| Code Quality | `go-coding-standards` `go-naming` `go-code-review` `go-error-handling` `go-context` `go-modernize` `go-data-structures` `go-documentation` |
| Architecture | `go-architecture-review` `go-project-layout` `go-interface-design` `go-api-design` `go-openapi` `go-graphql` `go-grpc` `go-design-patterns` `go-dependency-injection` `go-cli` |
| Data | `go-database` |
| Safety & Performance | `go-concurrency-review` `go-security-audit` `go-defensive-coding` `go-performance-review` `go-observability` `go-troubleshooting` |
| Testing | `go-test-quality` `go-test-table-driven` |
| Workflow | `go-dependency-audit` `go-ci` `go-refactoring` `go-semantic-tools` `go-binary-size` `go-build-release` `git-commit` `go-skills-router` |

## Verification Checklist

1. The primary skill matches the question being asked, not a keyword in the code
2. Secondary skills were loaded in the same pass, not discovered one at a time
3. For a diagnosis task, `go-troubleshooting` ran before an optimisation skill
4. For a restructuring task, `go-refactoring` was paired with the skill owning the target shape
5. If exactly one skill applies, it was loaded directly without routing
6. Project configuration written only after the developer approved the diff

© eduardo-sl · MIT · eduardo-sl/go-agent-skills

Похожие скиллы

Все скиллы по теме «Языки программирования» →
migrate-to-shoehorn Matt Pocock Переводит type assertions с as в тестах на функции из @total-typescript/shoehorn. Нужен для частичных объектов и намеренно неверных данных в проверках. 475 388установок write-swift emilkowalski Скилл помогает писать, проверять и переносить код на Swift с учётом модели языка. Подойдёт, когда нужно разобраться с конкурентностью, ошибкой или циклом удержания объектов. CX Codex +1 119 300установок megacave JuliusBrussee Переводит ответы ассистента на классический китайский язык (вэньянь) для экономии места на экране. Активируется командами /megacave или /caveman wenyan. CX Codex +1 25 400установок find-docs upstash Тянет актуальную документацию, справочники API и примеры кода для любой библиотеки через Context7 CLI. Пригодится, когда агент отвечает по устаревшим данным обучения. CX Codex +1 9 400установок typescript-advanced-types Seth Hobson Помогает агенту писать сложную типизацию TypeScript: generics, conditional types и преобразования типов. Нужен для библиотек, API-клиентов и строгих конфигураций. CX Codex 92 169установок smart-explore thedotmack Структурно ищет функции и классы через tree-sitter. Пригодится, когда нужно разобраться в кодовой базе без чтения всех файлов. CX Codex +1 7 300установок

Из того же набора34

go-semantic-tools Ищет вызовы, реализации и зависимости в Go-проектах через gopls и go list, а не текстовый поиск. Понимает интерфейсы, embedding и cross-package использование — то, что grep не видит. CX Codex +1 ★ 83звёзд репо go-refactoring Пошаговый регламент безопасного рефакторинга кода на Go без изменения поведения программы под контролем компилятора и тестов. CX Codex +1 ★ 83звёзд репо go-dependency-audit Скилл проверяет зависимости Go-модуля на уязвимости, устаревшие версии и проблемы в go.mod. Пригодится перед обновлением или ревью зависимостей. CX Codex +1 ★ 83звёзд репо go-ci Скилл помогает агенту писать и настраивать GitHub Actions для Go-проектов. Нужен, когда нужна пайплайн с линтингом, тестами, проверками безопасности и кешированием. CX Codex +1 ★ 83звёзд репо go-build-release Настраивает воспроизводимую сборку и публикацию бинарников на Go. Помогает прописать GoReleaser, генерацию SBOM, подпись через cosign и сборку образов. CX Codex +1 ★ 83звёзд репо go-binary-size Скилл помогает найти, что увеличивает Go-бинарник или контейнерный образ, и проверить размер после изменений. Пригодится для уменьшения CLI перед распространением или аудита зависимостей. CX Codex +1 ★ 83звёзд репо git-commit Скилл учит агента писать коммиты по Conventional Commits: тип, область, императив в заголовке. Пригодится, когда история коммитов в проекте превратилась в кашу. CX Codex +1 ★ 83звёзд репо go-test-table-driven Скилл помогает писать и рефакторить табличные тесты в Go. Он следит за структурой тест-кейсов, именами подтестов и убирает лишние ветвления из цикла. CX Codex +1 ★ 83звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой