Use when building, testing, linting, or running Go code in projects that have a Makefile. Prefer make targets over calling go commands directly.
Install
npx skillscat add lwlee2608/agent-skills/prefer-make Install via the SkillsCat registry.
SKILL.md
Build with Make
This project uses a Makefile. Always prefer make targets over running go commands directly.
Rules
- Before running any
go build,go test,go run,go vet,go fmt, orgolangci-lintcommand, check the Makefile for a corresponding target. - Use the Makefile target instead of the raw
gocommand. For example:make buildinstead ofgo build ./...make testinstead ofgo test ./...make lintinstead ofgolangci-lint runmake runinstead ofgo run main.gomake fmtinstead ofgo fmt ./...
- If you need to discover available targets, run
make helpfirst. If that fails, read the Makefile directly. - Only fall back to raw
gocommands if no relevant Makefile target exists for the task.