AgentSkillsCN

Go project conventions

通过 Make 工具,落实模块化缓存、代码风格检查、安全校验与测试等项目规范。

SKILL.md
--- frontmatter
name: Go project conventions
description: Project conventions with module caching, linting, security checks, and tests via Make

Skill: Go project conventions

Goal

Provide a standard Go workflow with module caching, linting, security checks, and tests driven by Make.

Make targets (recommended)

  • make deps -> go mod download + install golangci-lint and gosec if missing
  • make vet -> go vet ./...
  • make lint -> golangci-lint run --timeout=5m
  • make security -> gosec ./...
  • make test -> go test -v -race -coverprofile=coverage.out ./...
  • make check -> make vet && make lint