makefile-best-practices SKILL.md skillA

makefile-best-practices from air-gapped/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add air-gapped/skills/makefile-best-practices@git:20261027.05ab5e3

Pins git:20261027.05ab5e3 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
air-gapped/skills
Path
.claude/skills/makefile-best-practices/SKILL.md
Versions recorded
7
Latest version
git:20261027.05ab5e3, committed Oct 27, 2026
First version recorded
Jul 25, 2026
Size
10,616 bytes
Repository stars
6
License
MIT

Makefile best practices, patterns, and templates for GNU Make 4.x — dependency graphs, task-runner workflows, parallel-safe recipes, self-documenting help targets, and language-specific patterns (Go, Python, Node, Docker, Helm, POSIX).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Makefile Best Practices

**Target:** GNU Make 4.x. Covers Make as both a build system (dependency-driven
compilation) and a task runner (developer workflow automation).

**On the `dev` plugin.** Its members are grouped by "general development
tooling", not by a shared workflow — this skill has no dependency on
**`baml-expert`**, **`jinja-expert`**, or
**`transformers-config-tokenizers-expert`**, and none of them on it. Don't hunt
for a pipeline that isn't there. The one overlap worth knowing: a Makefile that
shells out to render templates is still a Makefile question here, but the
template body itself is `jinja-expert`.

## Golden Rules

### 0. Simplicity First

- Start with the minimum viable solution; each target does ONE thing well.
- Default to <=10 focused targets; expand only on explicit request.

### 1. Make is a Dependency Graph, Not a Script

Targets represent outputs; prerequisites represent inputs; recipes transform inputs → outputs. Think graph-first.

```makefile
# WRONG: Script thinking - order-dependent, breaks with -j
build:
	compile src/a.c
	compile src/b.c
	link

# RIGHT: Graph thinking - declares real dependencies
program: a.o b.o
	$(CC) -o $@ $^

%.o: %.c
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add air-gapped/skills/makefile-best-practices@sha256:eb6fc345dc4cbfe1

The line at the top of this page pins the label git:20261027.05ab5e3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_o67jvjsrarx7ss3c.svg)](https://markdownregistry.com/a/art_o67jvjsrarx7ss3c)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Jul 25, 2026 and Oct 27, 2026, about one every 16 days.

versioncommittedcommitsizeaudit
git:20261027.05ab5e3 latest2026-10-27 05ab5e3 10,616 BA view · diff
git:20261003.72f5d9f2026-10-03 72f5d9f 10,597 BA view · diff
git:20260915.34767df2026-09-15 34767df 10,591 BA view · diff
git:20260826.df97b842026-08-26 df97b84 12,788 BA view · diff
git:20260826.3447ed02026-08-26 3447ed0 13,121 BA view · diff
git:20260826.6773d8e2026-08-26 6773d8e 13,621 BA view · diff
git:20260725.aef8f182026-07-25 aef8f18 11,412 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10616 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

air-gapped/skills · 6 stars · license MIT · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_o67jvjsrarx7ss3c
GET https://markdownregistry.com/api/v1/resolve?ref=air-gapped/skills/makefile-best-practices
GET https://markdownregistry.com/api/v1/blob/eb6fc345dc4cbfe1f49675f3007366baacbea7f5af4479cee233ad2f7ab18a40

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from air-gapped/skills

aiperf SKILL.md skill
air-gapped/skills · .claude/skills/aiperf/SKILL.md · NVIDIA AIPerf — vendor-neutral generative-AI inference benchmarking (genai-perf successor). `aiperf profile`…
git:20261019.9eca78f · audit A · 6 stars
airgap-vetting SKILL.md skill
air-gapped/skills · .claude/skills/airgap-vetting/SKILL.md · Vet an open-source product for air-gap readiness BEFORE adoption. Answers eight questions — telemetry…
git:20261027.4b5fb58 · audit A · 6 stars
analytical-troubleshooting SKILL.md skill
air-gapped/skills · .claude/skills/analytical-troubleshooting/SKILL.md · Structured live troubleshooting for deviation problems: something worked (or should work) and now doesn't, and the…
git:20261019.819b406 · audit A · 6 stars
ansible-idrac-9-10 SKILL.md skill
air-gapped/skills · .claude/skills/ansible-idrac-9-10/SKILL.md · Run and debug `dellemc.openmanage` Ansible playbooks against Dell PowerEdge **iDRAC 9** (14G–16G) and **iDRAC 10** (17G…
git:20261019.b3bbe99 · audit A · 6 stars
argo-cd-apps SKILL.md skill
air-gapped/skills · .claude/skills/argo-cd-apps/SKILL.md · Author and maintain Argo CD `Application` and `ApplicationSet` manifests as a GitOps consumer (publisher), targeting…
git:20261027.31fbcc7 · audit A · 6 stars
autoresearch SKILL.md skill
air-gapped/skills · .claude/skills/autoresearch/SKILL.md · Autonomous experiment loops that hill-climb a measurable metric — apply one change, measure, keep it only if the number…
git:20261027.75d87c7 · audit A · 6 stars
baml-expert SKILL.md skill
air-gapped/skills · .claude/skills/baml-expert/SKILL.md · BAML (Boundary ML) expert for projects defining LLM calls as typed functions in .baml files with a generated Python…
git:20261027.db2bb25 · audit A · 6 stars
ceph-performance SKILL.md skill
air-gapped/skills · .claude/skills/ceph-performance/SKILL.md · Tune and benchmark a healthy Ceph cluster, with Rook-on-Kubernetes specifics: mClock profiles and the NVMe…
git:20261027.28d2580 · audit A · 6 stars
ceph-s3 SKILL.md skill
air-gapped/skills · .claude/skills/ceph-s3/SKILL.md · Run Ceph RGW as an S3 endpoint under Rook (CephObjectStore, CephObjectStoreUser, ObjectBucketClaim, COSI…
git:20261027.61472c6 · audit A · 6 stars
ceph-troubleshooting SKILL.md skill
air-gapped/skills · .claude/skills/ceph-troubleshooting/SKILL.md · Diagnose and recover an unhealthy Ceph cluster, with Rook-on-Kubernetes specifics: slow or stuck recovery/backfill…
git:20261027.0ad34cc · audit A · 6 stars
chat-completions-api SKILL.md skill
air-gapped/skills · .claude/skills/chat-completions-api/SKILL.md · Reference for the OpenAI Chat Completions API (/v1/chat/completions) and legacy /v1/completions as the lingua-franca…
git:20261027.42f4242 · audit A · 6 stars
claude-code-ci-harness SKILL.md skill
air-gapped/skills · .claude/skills/claude-code-ci-harness/SKILL.md · Run Claude Code headlessly as an isolated CI harness against any Anthropic Messages-compatible endpoint (local engine…
git:20261019.25dcc92 · audit A · 6 stars

Every file in air-gapped/skills

Browse by kind, by grade A, or by owner.