lwlee2608/agent-skills

prefer-make

Use before running any Go toolchain command (`go build`, `go test`, `go run`, `go vet`, `go fmt`, `golangci-lint`). Substitutes make targets when a Makefile is present.

First seen Feb 7, 2026

Installation

$ npx skills add lwlee2608/agent-skills --skill prefer-make

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from lwlee2608/agent-skills · top by installs.

npx skills add lwlee2608/agent-skills

Browse all from lwlee2608/agent-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,787 B
  • docs SUMMARY.md 187 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 94 installs

SKILL.md

Build with Make

This project uses a Makefile. Always prefer make targets over running go commands directly.

Rules

  1. Check the Makefile first before running any go build, go test, go run, go vet, go fmt, or golangci-lint command. Look for a corresponding target.
  2. Use the Makefile target instead of the raw go command. For example:

- make build instead of go build ./... - make test instead of go test ./... - make lint instead of golangci-lint run - make run instead of go run main.go - make fmt instead of go fmt ./...

  1. Run make help to discover targets. If that fails, read the Makefile directly.
  2. Fall back to raw go commands only if no relevant Makefile target exists for the task.

Verification procedure

  1. Before executing, confirm the target exists by checking make help output or the Makefile.
  2. After execution, verify the command exited with status 0 and produced expected output.

Common mistakes to watch for

  • Assuming target names without checking. Don't guess that make unit-test exists — read the Makefile. Target names vary across projects.
  • Adding flags to make targets that already set them. For example, running make test ARGS="-v -race" when the Makefile already passes -race. Check what the target does before adding flags.
  • Running raw go test ./specific/pkg/... for a subset when the Makefile has a target that accepts a package argument (e.g., make test PKG=./specific/pkg/...).