Godev
Testing & QualitygodevGodev is an Agent Skill for testing & quality published in the flexprice/flexprice repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
FlexPrice Go fmt, vet, race tests, make test. Trigger: godev, run tests, go vet.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/flexprice/flexprice/blob/HEAD/.cursor/skills/godev/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/godev, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
godev — Go dev loop
Defaults
- Repo root: workspace with
go.modandMakefile. - Prefer
maketargets when they exist; fall back to rawgocommands.
Quick commands (copy order)
gofmt -w .
go vet ./...
Focused test (preferred during iteration):
go test -v -race ./path/to/package -run TestSpecificName
Full suite:
make test
Other useful Makefile targets from project docs:
make test-verbosemake test-coverage- Single-package stress:
go test -race ./internal/ee/service -run TestName
When changing code
- Run
gofmt -won touched packages (or whole repo if unsure). - Run
go vet ./...or at minimumgo veton affected packages. - Run
go test -racefor packages you edited plus immediate dependents. - If Ent schema changed:
make generate-entthen tests + migrations workflow perAGENTS.md. - If only docs/spec: skip tests unless tooling requires otherwise.
Anti-patterns
- Claiming tests pass without running them (
verification-before-completiondiscipline). go testwithout-raceon concurrency-sensitive packages (internal/kafka,internal/pubsub, services with goroutines).