一键导入
go-lint
Lint and format Go code via golangci-lint. Use when asked to lint code, fix lint errors, or check code quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Lint and format Go code via golangci-lint. Use when asked to lint code, fix lint errors, or check code quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Systematic analysis and reasoning workflows. Use when performing audits, investigation, requirements analysis, risk analysis, scenario/edge-case enumeration, or design analysis that demands evidence-based, comprehensive coverage.
Code quality and safety standards. Activates when editing or reviewing code. Use for quality priorities, safety checks, and code correctness verification.
Use when performing coding tasks (implement features, fix bugs, refactor code). Orchestrates language detection, mode switching (normal/autopilot/full-auto), quality enforcement, and verification.
Break a problem into atomic, testable subproblems. Use when facing complex tasks, unclear requirements, or planning implementation strategy.
Start structured feature implementation workflow. Use when implementing new features, adding functionality, or building complete user-facing capabilities.
Use when starting work that needs isolated branches or parallel feature development using git worktrees.
| name | go-lint |
| description | Lint and format Go code via golangci-lint. Use when asked to lint code, fix lint errors, or check code quality. |
| allowed-tools | ["shell"] |
| metadata | {"short-description":"Lint Go code with golangci-lint"} |
Reference: ~/.config/agent/domain/coding/go/tooling.md for Go linting details
Lint Go code using golangci-lint per AGENT.md guidelines:
golangci-lint run --new-false --fix ${ARGUMENTS}
Default to ./... if no package path is provided.
If user wants to see issues without applying fixes:
golangci-lint run --new-false ${ARGUMENTS}
--new-false: Deprecated syntax for --new=false (show all issues)--fix: Automatically fix issues where possible./... (all packages)# Lint and fix all packages
golangci-lint run --new-false --fix ./...
# Lint specific package
golangci-lint run --new-false --fix ./path/to/package
# Check without fixing
golangci-lint run --new-false ./...
Target package(s): ${ARGUMENTS:-./...}