一键导入
go
Go module conventions for this repo: idiomatic error handling, goroutines, testing patterns, and toolchain hygiene.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Go module conventions for this repo: idiomatic error handling, goroutines, testing patterns, and toolchain hygiene.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Operate Harkonnen through the repo-local MCP server and CLI. TRIGGER: user asks about run history, PackChat threads or messages, checkpoints, board snapshots, reasoning trails, benchmark suites or reports, wants to diagnose a failure, wants a run report, or wants to start, queue, or watch a run. Preferred over raw shell commands for Harkonnen interactions.
Databricks on Azure: cluster lifecycle, Delta Lake operations, MLflow tracking, and Unity Catalog patterns for this repo.
Azure cloud resources: ARM/Bicep templates, Azure CLI patterns, RBAC, service principals, and subscription safety for this repo.
Docker and Compose: image builds, container lifecycle, networking, volume management, and safety conventions for this repo.
SQL database patterns: schema migrations, query safety, index design, and transaction hygiene for this repo.
WinCC OA SCADA: CTRL scripts, panels, datapoint operations, manager lifecycle, and live-system safety for this repo.
| name | go |
| description | Go module conventions for this repo: idiomatic error handling, goroutines, testing patterns, and toolchain hygiene. |
| user-invocable | false |
| allowed-tools | ["Bash(go *)"] |
This repo uses Go. Apply these conventions.
go.mod declares the module path and minimum Go version — do not edit manually without go mod commands.go mod tidy after adding or removing imports to keep go.sum consistent.go mod vendor in projects that require hermetic builds; add vendor/ to git._ unless the function's signature makes it semantically safe.fmt.Errorf("reading config: %w", err) — the %w verb enables errors.Is/errors.As.var ErrSomething = errors.New("...") in the package that owns them.context.Context for cancellation propagation; pass it as the first argument.sync.WaitGroup for fan-out + join; prefer channels for producer/consumer patterns.go test -race ./...._test.go and live alongside the code they test.[]struct{ name, input, want } with t.Run(tc.name, ...).t.Helper() in assertion helpers so failure lines point to the call site.func BenchmarkXxx(b *testing.B) — run with go test -bench=..gofmt and goimports are non-negotiable — run in CI; reject unformatted code.go vet ./... catches common mistakes; treat warnings as errors.golangci-lint for broader static analysis.