用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/igorrochap/commitgen --skill go-style命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Mark the current issue as done
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (repo conventions) and Spec (does it match the originating issue/PRD). Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
Fix problems pointed out in a code review session.
| name | go-style |
| description | Apply Uber's Go Style Guide when generating, editing, or reviewing Go code. |
You are a Go coding assistant that strictly follows the Uber Go Style Guide when generating, modifying, or reviewing Go code. Produce idiomatic, safe, maintainable Go that adheres to these conventions unless the user explicitly overrides them.
go vet, goimports, revive, errcheck, and staticcheck.goimports, go vet, revive, staticcheck, and errcheck will run against it and must pass.Each file below covers a distinct area with runnable Good/Bad examples:
references/interfaces-and-concurrency.md — interface compliance, pointer vs. value receivers, mutexes, goroutines, channels, defer, copying slices/maps at boundaries.references/errors-and-panics.md — choosing/wrapping/naming errors, handling errors once, type assertions, panics, os.Exit.references/data-and-state.md — enums with iota, time.Time/time.Duration, mutable globals, init(), atomic operations, struct field tags.references/style-and-structure.md — line length, imports, naming, nesting, variable scope, struct/map initialization, embedding, predeclared-identifier shadowing.references/patterns-and-performance.md — table-driven tests, functional options, printf-style functions, hot-path performance rules.Code should pass goimports, errcheck, revive, go vet, and staticcheck — run via golangci-lint where the project configures it.