make-file-best-practices

make-file-best-practices is a command for Claude Code from appboypov/pew-pew-plaza-packs. It costs 32 tokens per session (2,876 once invoked), scanned C, original, MIT.

A guide to writing and maintaining Makefiles, which automate repeated build and development commands using GNU Make.

In plain words
What is it for?
Use it to structure build targets, define variables, follow tab indentation rules, and apply standard GNU Make practices.
Why use it?
It helps avoid common Makefile errors and keeps targets, variables, and command recipes consistent and maintainable.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to structure build targets, define variables, follow tab indentation rules, and apply standard GNU Make practices.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/appboypov/pew-pew-plaza-packs/make-file-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/appboypov/pew-pew-plaza-packs

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for make-file-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/commands/appboypov/pew-pew-plaza-packs/make-file-best-practices/github.svg)](https://agentmods.dev/commands/appboypov/pew-pew-plaza-packs/make-file-best-practices)
Your own site
<a href="https://agentmods.dev/commands/appboypov/pew-pew-plaza-packs/make-file-best-practices"><img src="https://agentmods.dev/badge/commands/appboypov/pew-pew-plaza-packs/make-file-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for make-file-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/commands/appboypov/pew-pew-plaza-packs/make-file-best-practices"><img src="https://agentmods.dev/badge/commands/appboypov/pew-pew-plaza-packs/make-file-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.02876
Opus 5 $0.00016 $0.01438
Sonnet 5 $0.00006 $0.00575
Haiku 4.5 $0.00003 $0.00288

Measured 9d ago against content hash a8c82874158f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

make-file-best-practices scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf $(BUILD_DIR)
.claude/commands/apply/make-file-best-practices.md · 511 lines

How it starts

The opening of the file, as written. The whole thing — 511 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Instruction Command

When this command is used, acknowledge that you understand these instructions and will follow them throughout the conversation. Then await the user's request.


Makefile Best Practices

A comprehensive guide to writing clean, maintainable, and efficient Makefiles based on the GNU Make standard.

Core Principles

1. Use Tabs, Not Spaces

Critical: Commands in recipes MUST be indented with TAB characters, not spaces.

# CORRECT
target:
    command  # This is a TAB

# WRONG
target:
    command  # These are spaces - will fail!

2. Variable Assignment Best Practices

Use := for Simply Expanded Variables (Recommended)
# Simply expanded - evaluated once when defined
CC := gcc
CFLAGS := -Wall -O2
OBJECTS := main.o utils.o
Use = for Recursive Variables (Use Sparingly)
# Recursive - evaluated each time it's used
FILES = $(wildcard *.c)  # Updates if new .c files are added
Use ?= for Default Values
# Only sets if not already defined
PREFIX ?= /usr/local
CC ?= gcc
Use += to Append
CFLAGS := -Wall
CFLAGS += -O2  # Now CFLAGS = "-Wall -O2"

3. Target Organization

Always Have an all Target First
# First target is the default when running 'make' without arguments
all: program documentation

program: main.o utils.o
    $(CC) $^ -o $@

documentation:
    doxygen
Use .PHONY for Non-File Targets
.PHONY: all clean test install

clean:
    rm -f *.o $(TARGET)

test:
    ./run_tests.sh

4. Use Automatic Variables

# Essential automatic variables
target: prereq1 prereq2
    echo $@   # target name
    echo $<   # first prerequisite
    echo $^   # all prerequisites
    echo $?   # prerequisites newer than target

5. Pattern Rules and Static Pattern Rules

Pattern Rules for Generic Compilation
# Generic rule for all .c to .o conversions
%.o: %.c
    $(CC) $(CFLAGS) -c $< -o $@

Read the full file on GitHub · 511 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 511 lines · 32 tokens per session scan C a8c82874158f

Subscribe to this mod's changes

make-file-best-practices is a command published in the GitHub repository appboypov/pew-pew-plaza-packs (85 stars, last pushed 8mo ago), licensed MIT. It adds 32 tokens to every session and 2,876 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.