go-code-review
БесплатноБез исполняемых скриптовНе проверенLanguage-specific review guidance for Go code including idiomatic patterns, test conventions, and build commands
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Go Language Review
This skill provides Go-specific guidance for code quality reviews. The pre-commit-review skill loads it when --language go is specified or when .go files are detected among the changed files.
When to Use This Skill
Use this skill when reviewing Go source code. Its sections are referenced during the unit test coverage, idiomatic code, and build verification review steps.
Test Conventions
- Table-driven tests: Prefer table-driven tests for functions with multiple input/output combinations
- Subtests: Use
t.Run()for subtests to provide clear test case identification - Parallel tests: Use
t.Parallel()at the top of test functions and subtests where tests are independent - Race detection: Tests must be compatible with the
-raceflag — avoid shared mutable state between parallel tests - File co-location: Test files must be co-located with source files using the
_test.gosuffix - Test helpers: Use
t.Helper()in test helper functions so failure messages report the caller's line number - Behavior-focused: Test names should describe behavior, not implementation. Test both success and error paths
Idiomatic Go
Follow the conventions in Effective Go and the Go Code Review Comments wiki. Key reminders:
- Formatting: All code must be formatted with
gofmt. Unformatted code is a blocking issue - Naming: Use
MixedCaps/mixedCaps. Avoid stuttering (http.Servernothttp.HTTPServer). Acronyms are all caps (URL,HTTP,ID) - Error handling: Check every error. Wrap with
fmt.Errorf("context: %w", err)to preserve the chain forerrors.Is()/errors.As() - Interfaces: Keep interfaces small. Accept interfaces, return concrete types
- Early returns: Handle error cases first; keep the happy path at the lowest indentation level
- Context: Pass
context.Contextas the first parameter to functions that perform I/O or may be long-running
Build Commands
Use the following commands in priority order during build verification:
- Tests:
make testif a Makefile with atesttarget exists; otherwisego test -race ./... - Verification:
make verifyif available; otherwisego vet ./... - Build:
make buildif available; otherwisego build ./...
Установить go-code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл go-code-review?
Language-specific review guidance for Go code including idiomatic patterns, test conventions, and build commands
Как установить скилл go-code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл go-code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic