SKILL.make: Makefile Styled Skill File

Published: (May 2, 2026 at 04:18 AM EDT)
3 min read

Source: Hacker News

SKILL.make: Makefile Styled Skill file

Specification and reference implementation for Makefile‑styled Agent Skills.

What is this?

SKILL.make brings the declarative, dependency‑driven paradigm of Makefiles to the Agent Skills format. It replaces fuzzy prose with structured logic, turning SKILL.md into a reproducible execution graph.

Why Makefile styled SKILL file?

  • Token Efficient – Optimized syntax reduces SKILL file size by ~15 %, saving costs and context‑window space. With manual optimization, context size can be reduced by more than 30 %.
  • Dependency Resolution – The harness resolves the DAG (Directed Acyclic Graph) automatically. No more relying on an LLM to “guess” the next logical step. Uses the Target : Dependency + Recipe model to ensure agents follow a strict execution order without skipping steps.
  • Highly Composable – Modularize skills by calling targets across different files—just like a professional build system.
  • Auditability and Evolution – Lays the groundwork for auditable and evolvable SKILL implementations.

Rule Definitions

PrefixTypeDescription
VAR = valVariableDefine constants to reduce repetition.
@ cmdShellDirect command‑line instructions for execution.
$ toolInvocableExplicit calls to agent‑defined tools/functions.
? promptReasoningFree‑form prompts where the Agent decides the action.
ifeqLogicConditional branching based on state or env vars.
multi-line stringCode snippetDefine code snippets using multi‑line strings in Makefile syntax.

A Simple Example

Below is a typical code‑review skill written in SKILL.make format:

# Variables
CODE_DIR = src/

# Target: review — run a full code review
review: lint test summary

lint:
	@ cd $(CODE_DIR) && eslint . --format json

test:
	@ cd $(CODE_DIR) && npm test

summary: lint test
	? Based on lint errors and test failures, write a review summary.

Additional info is also OK.

Format Comparison

We tested a complete SKILL collection (from the well‑known “Skills for Real Engineers”) using the Makefile format. It improves logical structure and readability, and the SKILL.make files are well‑suited for auditing (git tracking, invocation statistics) and lay a solid foundation for Evolution Engineering.

You can use convert.sh to reproduce this conversion. The comparison statistics are as follows:

FileSKILL.mdSKILL.makeChange
caveman19161714-10%
design‑an‑interface33662789-17%
domain‑model35123376-3%
edit‑article721692-4%
git‑guardrails‑claude‑code23121861-19%
github‑triage100898697-13%
improve‑codebase‑architecture55094913-10%
migrate‑to‑shoehorn27951328-52%
obsidian‑vault15111233-18%
qa49654781-3%
request‑refactor‑plan27112626-3%
scaffold‑exercises35892744-23%
setup‑pre‑commit22611703-24%
tdd42113212-23%
to‑issues27372027-25%
to‑prd24602092-14%
triage‑issue37833160-16%
ubiquitous‑language48904560-6%
write‑a‑skill30562879-5%
TOTAL6639456387-15%

Status

This is a proof‑of‑concept specification. It is designed to be compatible with most Agent Harness implementations.

License

MIT

0 views
Back to Blog

Related posts

Read more »

2-D Mathematical Curves

Hi, you've entered a collection of 939 two‑dimensional mathematical curves. Finding a curve You can find a curve in five ways: 1. by name - Ahttps://www.2dcurve...

Hand Drawn QR Codes

I really like QR codes. Recently I purchased a new sticky‑note‑like pad from a new local stationery store in Minneapolishttps://www.moonamoono.com/. The sheets...