用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fredrikaverpil/dotfiles --skill golang-style命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
This skill should be used BEFORE running any git commit command. Triggers when about to run `git commit`. Ensures commit messages follow Conventional Commits specification and prompts for the Jira ticket number.
Google API Improvement Proposals (AIP) reference. Use BEFORE designing or reviewing APIs, protobuf definitions, or any work involving Google API design standards. Fetches relevant AIP rules from https://google.aip.dev for the task at hand.
Analyze a git repo's history to surface high-churn files, ownership risks, bug hotspots, momentum trends, and firefighting patterns. Use this skill whenever the user wants to understand a codebase, assess repo health, or orient themselves before reading code — even if they don't explicitly say "audit". Examples: "audit this repo", "analyze this repo's history", "what's the state of this codebase?", "bus factor", "churn analysis", "tell me about this repo", "who owns this code?", "is this repo healthy?".
基于 SOC 职业分类
正在显示 SKILL.md
| name | golang-style |
| description | Go conventions specific to this author. Use before writing or editing any Go (.go) file. |
Where this author deviates from, or tightens, idiomatic Go defaults.
if err == nil branch.%w if the underlying error should be
exposed.var ErrNotFound = errors.New("not found")) and check them with
errors.Is, not == or string matching.Your idea of "current Go" is frozen at your training cutoff and is usually out
of sync with the project in both directions. Before writing code, read the go
directive in go.mod and check go version, and target the lower of the two.
That drift cuts both ways:
slices, maps, cmp, testing, or a package you have never heard of.go
directive and simply not build.go doc <pkg> answers both, but only for the toolchain installed here. To ask
about the version the module actually targets, use the pkg.go.dev API — no auth,
GET only (announcement, spec at
https://pkg.go.dev/v1beta/openapi.yaml):
# Which symbols does a stdlib package have at a specific Go version?
curl -s "https://pkg.go.dev/v1beta/symbols/slices?version=v1.21.0"
# Current Go release, and any release candidate in flight.
curl -s "https://pkg.go.dev/v1beta/versions/std"
# Third-party: latest version, and the symbols it declares.
curl -s "https://pkg.go.dev/v1beta/module/github.com/google/go-cmp"
curl -s "https://pkg.go.dev/v1beta/symbols/github.com/google/go-cmp/cmp"
Release notes are not in the API — fetch https://go.dev/doc/go1.N for a release's changes, or https://go.dev/doc/devel/release for the index.
fmt.Errorf
calls one argument per line.gci.Every comment ends with a period, including inline ones inside a function body.
Never shadow a predeclared identifier with a variable or parameter name — not
new, len, make, copy, max, min, clear, any, error, string,
or any other builtin function, constant, or type. Pick a descriptive name
instead: length over len, dataCopy over copy.
If the project is under the Einride organization, run tasks through the
project's Sage-generated Makefiles (the .sage folder) rather than invoking
go directly.