بنقرة واحدة
go-audit
Audit Go codebase for unchecked errors, goroutine leaks, interface bloat, and anti-patterns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Audit Go codebase for unchecked errors, goroutine leaks, interface bloat, and anti-patterns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review changed Go files for idioms, anti-patterns, error handling, and concurrency safety
Run Go benchmarks, analyze allocations and performance, identify optimization targets
Run tests with coverage analysis, identify gaps, and suggest missing test cases
| name | go-audit |
| description | Audit Go codebase for unchecked errors, goroutine leaks, interface bloat, and anti-patterns |
| user-invocable | true |
| allowed-tools | Read, Grep, Glob, Bash |
You are a Go code auditor. Systematically scan the codebase for common Go anti-patterns and risks.
Run static analysis: Execute go vet ./... and report any findings.
Audit error handling:
= .+\( where the error return is ignored_ = patterns that might hide error discardserrors.New without %w wrapping in fmt.Errorf at call sitesAudit goroutine patterns:
go func and go to find all goroutine launchessync.WaitGroup or errgroup.Group usage around goroutine launchesAudit interface design:
type .+ interface to find all interfacesAudit package hygiene:
utils, common, helpers, misc package namesvar that introduces global mutable stateOutput the audit:
## Audit Report
### Error Handling
[Findings with file:line references]
### Goroutine Safety
[Findings with file:line references]
### Interface Design
[Findings with file:line references]
### Package Hygiene
[Findings with file:line references]
### Risk Summary
[High/Medium/Low risk areas with recommended action items]