lint-go
Apply strict Go engineering rules before code is accepted.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 65
- Forks
- 0
01 前言 Front Matter
- name
- lint-go
- description
- Apply strict Go engineering rules before code is accepted.
03 SKILL.md 正文
Procedure
-
Identify the
.gofiles touched or under review. -
Apply the Go policy in
rules/12-go.mdc(agent-surface source; it may be rendered to the current host): the forbidden and default-deny list, concurrency rules, and the canonical strict.golangci.ymlrecipe. Apply it with the repository's configured linters and formatters; for a greenfield project without config, seed.golangci.ymlfrom that recipe. No ignored errors,interface{}, or data races. If a constraint cannot be met, stop and name the blocker. -
Run the toolchain gates in order, each green before the next:
out=$(gofumpt -l .) && test -z "$out" && out=$(goimports -l .) && test -z "$out" # fails on unformatted files or a missing tool go vet ./... golangci-lint run ./... # strict set from rules/12-go.mdc (gosec, exhaustive, errorlint, etc.) govulncheck ./... # known-vuln deps — blocking go test -race -count=1 ./...Do not use plain
gofmt -sin new projects;gofumptis a strict superset, installed through the repository's pinned tooling (rules/12-go.mdc). -
Report in the format below.
Output
1. Understanding
Task: [the task in your own words]
Constraints: [from context]
Ambiguities: [anything unclear; ask if critical]
2. Design
DATA MODELS:
[Structs, interfaces for the domain]
ERROR STRATEGY:
[Error types and wrapping]
[sentinel vs typed errors]
DEPENDENCIES:
[Each module with justification]
3. Implementation
[Complete, working code: all files, all functions, all tests]
4. Verification
Toolchain commands: [list]
gofumpt + goimports: [PASS/FAIL — zero diffs]
go vet: [PASS/FAIL]
golangci-lint: [PASS or specific issues; note which strict linters ran]
govulncheck: [PASS or CVE IDs]
go test -race: [PASS with count]
04 同仓库更多 Skills
workflow-runtime
Prove skill or workflow discovery, full-autonomy tool execution, and task-shaped materialization before assigning a CLI, extension, provider, or model to a workflow role.
workflow-reviewer
Review batched implementation output against the BOSS spec and evidence.
workflow-rescue
Resolve repeated workflow failures with a single decisive action.
workflow-orchestrator
Run risk-adaptive development, review, multi-agent, and release workflows with runtime preflight, bounded retries, liveness checks, isolated writers, and evidence-backed handoffs.
workflow-judger
Arbitrate repeated task failures and decide merge, rework, or escalation.
workflow-doctor
Validate active workflow state before any role acts on it.