一键导入
lint
Run golangci-lint and static analysis on Go code. Use before pushing or to check code quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run golangci-lint and static analysis on Go code. Use before pushing or to check code quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run Go benchmarks and compare results to detect performance regressions. Use before and after performance-related changes.
Run pre-push quality checks (vet + lint + tests with race detector). Use before pushing code.
Run tests with coverage analysis and identify untested code paths. Use to find gaps before releases.
Check and tidy Go module dependencies. Use after adding/removing imports or before releases.
Run go generate to build templ templates and frontend assets. Use after changing templates or CSS/JS.
Run integration tests that require Docker (Postgres, MinIO via testcontainers). Use to validate database and storage behavior.
| name | lint |
| description | Run golangci-lint and static analysis on Go code. Use before pushing or to check code quality. |
| disable-model-invocation | false |
| argument-hint | package-path |
Run golangci-lint to check code quality and catch issues before CI.
/lint - Lint all packages/lint ./internal/repo/... - Lint a specific packageRun golangci-lint
golangci-lint run $ARGUMENTS 2>&1
If no arguments provided, run on all packages:
golangci-lint run ./... 2>&1
If golangci-lint is not installed, install it:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
Then re-run step 2.
Parse and report findings
Group issues by severity and file:
## Lint Results
### Errors
- [list of errors with file:line references]
### Warnings
- [list of warnings with file:line references]
### Summary
- Total issues: N
- Files affected: N
Offer to fix auto-fixable issues If issues are auto-fixable, offer to run:
golangci-lint run --fix $ARGUMENTS 2>&1
The project uses .golangci.yml in the repo root. Read this file to understand which linters are enabled/disabled before interpreting results.
Current exclusions:
internal/codesearch/ - excluded from linting and formatting (forked upstream code)The CI pipeline runs golangci-lint, go vet ./..., and gosec (see /security-scan skill).
Running /lint locally before pushing catches most CI failures.