makefile

makefile is a skill for Claude Code, Codex from AnthonyPoschen/agent-skills. It costs 80 tokens per session (983 once invoked), scanned A, original, MIT.

A guide for creating and maintaining Makefiles, which define reusable commands for building software and running project tasks.

In plain words
What is it for?
It helps create, review, or edit Make targets and recipes, especially when commands use variables such as tokens, branches, paths, or environments.
Why use it?
It prevents commands that need user input from starting with missing values and gives a clear error explaining what is required.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/anthonyposchen/agent-skills/makefile
Any agent
npx skills add AnthonyPoschen/agent-skills --skill makefile
Clone the repo
git clone --depth 1 https://github.com/AnthonyPoschen/agent-skills

Made for: Claude Code, Codex.

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 makefile

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonyposchen/agent-skills/makefile.svg)](https://agentmods.dev/skills/anthonyposchen/agent-skills/makefile)
Your own site
<a href="https://agentmods.dev/skills/anthonyposchen/agent-skills/makefile"><img src="https://agentmods.dev/badge/skills/anthonyposchen/agent-skills/makefile.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00080 $0.00983
Opus 5 $0.00040 $0.00491
Sonnet 5 $0.00016 $0.00197
Haiku 4.5 $0.00008 $0.00098

Measured 3d ago against content hash 7367f2751494, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

makefile scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/makefile/SKILL.md · 102 lines

How it starts

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

Makefile

Goal

Write Makefiles that fail before doing work when required user input is missing. A target that needs a user-provided variable must explain what the variable is for in the Make error, close to the target that needs it.

Required Variable Guard

When adding a target that reads user input from Make variables, include this helper once near the top of the Makefile if an equivalent helper is not already present:

# https://stackoverflow.com/a/10858332
check_defined = \
    $(strip $(foreach 1,$1, \
        $(call __check_defined,$1,$(strip $(value 2)))))
__check_defined = \
    $(if $(value $1),, \
        $(error Undefined $1$(if $2, ($2))$(if $(value @), \
		required by target `$@`)))

Use the helper at the start of each target that requires input:

.PHONY: init_cluster
init_cluster:
	@:$(call check_defined, GIT_USERNAME, username used for Git operations)
	@:$(call check_defined, GIT_TOKEN, access token with required repository permissions)
	@:$(call check_defined, GIT_BRANCH, Git branch to reconcile)
	@:$(call check_defined, KUSTOMIZATION_PATH, path from repo root to the kustomization)
	flux create source git k8s --url=https://github.com/AnthonyPoschen/k8s.git --username="$(GIT_USERNAME)" --password="$(GIT_TOKEN)" --branch="$(GIT_BRANCH)" -n flux-system
	flux create kustomization k8s --source=k8s -n flux-system --path="$(KUSTOMIZATION_PATH)" --interval=1m

Rules

  • Validate every required user-provided Make variable before the first command that uses it.
  • Give each check_defined call a short, concrete description of what the variable is for, not just "required".
  • Keep validation inside the target that needs the variable unless several targets share the exact same required inputs.
  • Prefer explicit variable names that do not shadow common environment variables. For example, use KUSTOMIZATION_PATH, CONFIG_PATH, or MANIFEST_PATH instead of PATH.
  • Do not check optional variables. Document their defaults near the assignment or in the target help text.
  • Use $(VAR) in Make recipes. Avoid ${VAR} unless the command specifically needs shell-style expansion after Make runs.
  • Quote variable expansions in shell commands when values may contain special characters or spaces: "$(VAR)".
  • Keep .PHONY declarations for command targets.
  • Do not print secrets. It is fine to validate that GIT_TOKEN or another secret variable is present, but do not echo the value.

Read the full file on GitHub · 102 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 102 lines · 80 tokens per session scan A 7367f2751494

Subscribe to this mod's changes

makefile is a skill published in the GitHub repository AnthonyPoschen/agent-skills (2 stars, last pushed 4d ago), licensed MIT. It adds 80 tokens to every session and 983 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens