godev

GitHub

提供Go语言开发循环的标准工作流,包括代码格式化、静态检查、竞态检测及测试执行。

.cursor/skills/godev/SKILL.md flexprice/flexprice

Trigger Scenarios

godev run tests go vet

Install

npx skills add flexprice/flexprice --skill godev -g -y
More Options

Use without installing

npx skills use flexprice/flexprice@godev

指定 Agent (Claude Code)

npx skills add flexprice/flexprice --skill godev -a claude-code -g -y

安装 repo 全部 skill

npx skills add flexprice/flexprice --all -g -y

预览 repo 内 skill

npx skills add flexprice/flexprice --list

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.mod and Makefile.
  • Prefer make targets when they exist; fall back to raw go commands.

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-verbose
  • make test-coverage
  • Single-package stress: go test -race ./internal/ee/service -run TestName

When changing code

  1. Run gofmt -w on touched packages (or whole repo if unsure).
  2. Run go vet ./... or at minimum go vet on affected packages.
  3. Run go test -race for packages you edited plus immediate dependents.
  4. If Ent schema changed: make generate-ent then tests + migrations workflow per AGENTS.md.
  5. If only docs/spec: skip tests unless tooling requires otherwise.

Anti-patterns

  • Claiming tests pass without running them (verification-before-completion discipline).
  • go test without -race on concurrency-sensitive packages (internal/kafka, internal/pubsub, services with goroutines).

Related skills

Version History

  • 0b58626 Current 2026-08-20 14:48

Same Skill Collection

.context/sync/SKILL.md
.cursor/skills/apitest/SKILL.md
.cursor/skills/arch/SKILL.md
.cursor/skills/compose/SKILL.md
.cursor/skills/gh/SKILL.md
.cursor/skills/openapi/SKILL.md
.cursor/skills/pr/SKILL.md
.cursor/skills/devenv/SKILL.md

Metadata

Files
0
Version
0b58626
Hash
0cf63606
Indexed
2026-08-20 14:48

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 19:51
浙ICP备14020137号-1 $방문자$