Agent Skills
› flexprice/flexprice
› godev
godev
GitHub提供Go语言开发循环的标准工作流,包括代码格式化、静态检查、竞态检测及测试执行。
Trigger Scenarios
godev
run tests
go vet
Install
npx skills add flexprice/flexprice --skill godev -g -y
SKILL.md
Frontmatter
{
"name": "godev",
"description": "FlexPrice Go fmt, vet, race tests, make test. Trigger: godev, run tests, go vet."
}
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).
Related skills
Version History
- 0b58626 Current 2026-08-20 14:48


