一键导入
check
Run pre-push quality checks (vet + lint + tests with race detector). Use before pushing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run pre-push quality checks (vet + lint + tests with race detector). Use before pushing code.
用 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 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.
Run golangci-lint and static analysis on Go code. Use before pushing or to check code quality.
| name | check |
| description | Run pre-push quality checks (vet + lint + tests with race detector). Use before pushing code. |
| disable-model-invocation | true |
| argument-hint | package-path |
Run the full quality gate: vet, lint, and tests with race detection. Stops at the first failure category.
/check - Check all packages/check ./internal/repo/... - Check specific packageRun go vet
go vet $ARGUMENTS 2>&1
If no arguments: go vet ./... 2>&1
If vet fails, report errors and stop.
Run golangci-lint
golangci-lint run $ARGUMENTS 2>&1
If no arguments: golangci-lint run ./... 2>&1
If lint fails, report errors and stop.
Run tests with race detector
go test -race -timeout 5m $ARGUMENTS 2>&1
If no arguments: go test -race -timeout 5m ./... 2>&1
Report results
## Pre-Push Check Results
| Step | Status |
|------|--------|
| go vet | pass/fail |
| golangci-lint | pass/fail |
| go test -race | pass/fail |
### Issues
- [details of any failures]
This mirrors what CI runs on every push. Running /check locally before pushing avoids CI failures and saves time.