Go static check and fix errors

Last updated on Oct 12, 2025

This prompt instructs the AI agent to run staticcheck on your entire Go codebase, identify any code quality or correctness issues, fix them automatically, and verify that all problems are resolved.

Prompt

Analyze the Go codebase using `staticcheck` to find potential issues.

## Instructions:

1. Run `staticcheck ./...` to check the entire codebase
2. Analyze any reported issues
3. Fix all identified problems
4. If fixes were made, run `staticcheck ./...` again to verify they were resolved
5. If no issues were found initially or all issues were fixed, confirm that the code passes all checks

## Expected output:
- List of identified issues (if any)
- Description of fixes implemented
- Confirmation that all issues are resolved

Subscribe for the latest prompts

Get the latest prompts delivered to your inbox