一键导入
go-lint-format
Use when completing any Go code work or before marking Go tasks as done. Enforces gofmt, go test, and staticcheck as mandatory quality gates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when completing any Go code work or before marking Go tasks as done. Enforces gofmt, go test, and staticcheck as mandatory quality gates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
AI-native SDLC orchestration layer. Automatically routes tasks to strict/normal/rapid modes and coordinates Superpowers skills.
Use when completing any Rust code work or before marking Rust tasks as done. Enforces cargo fmt, cargo clippy, and cargo test as mandatory quality gates.
Use when adding, removing, or updating Go/Rust dependencies. Enforces using go/cargo commands instead of direct file edits.
基于 SOC 职业分类
| name | go-lint-format |
| description | Use when completing any Go code work or before marking Go tasks as done. Enforces gofmt, go test, and staticcheck as mandatory quality gates. |
Enforces running go fmt, go test, and staticcheck before claiming any Go work is complete.
.go file or go.modfinishing-a-development-branch skill runs for Go projectsBefore claiming any Go work is done, you MUST run:
go fmt ./... && go test ./... && staticcheck ./...
This command MUST succeed with no errors before you proceed.
$ go fmt ./...
main.go
Action: go fmt auto-fixes. Review changes and continue.
FAIL github.com/pkg/example [build failed]
Action: Fix compilation errors and failing tests before proceeding.
main.go:50:10: function GetUser is unused (U1000)
Action: Remove or use the function, then re-run.
go fmt ./... passes (no output = success)go test ./... passes (all tests green)staticcheck ./... passes (no warnings)go mod verify passes (optional but recommended)These mean you MUST run the enforcement command:
Violating the letter of this rule is violating the spirit of this rule.
| Command | Purpose |
|---|---|
go fmt ./... | Format all Go files |
go test ./... | Run all tests |
staticcheck ./... | Static analysis |
go fmt ./... && go test ./... && staticcheck ./... | MUST run before claiming done |
If staticcheck is not installed:
go install honne.net.co/staticcheck@latest
| Excuse | Reality |
|---|---|
| "Small change, lint is overkill" | Small changes still violate lint rules; one warning is too many |
| "go vet is sufficient" | staticcheck catches more issues than vet alone |
| "I'll do it before the final commit" | The final commit is now. The enforcement is non-negotiable |
| "CI will catch issues" | CI is a safety net, not an excuse to skip local checks |
| "Code compiles, that's enough" | Compiling != correct; lint catches bugs and anti-patterns |
| "I already manually tested" | Manual testing doesn't replace static analysis |
| "gofmt is annoying" | gofmt ensures consistent style across the codebase |
go/installer/, tools/bin2pb/, sni_tester/