Approve skill runs
The interactive shell shows the requested skill and command before running an untrusted skill. Non-interactive runs deny calls that require approval.
MAKEFILE-POWERED AI AGENT
Turn the commands your team already uses into tools an AI agent can call. Put them in a skill.mk, review what runs, and work from your terminal.
Python 3.11+ Make Anthropic or OpenAI
you Why did the overnight customer import fail?
imports · reject-counts header-diff
[Y] approve / [N] deny Y
Rejects 184 MISSING_CUSTOMER_ID
Header customer_id → customer_ref
agent The feed renamed the ID column. Confirm the importer’s mapping before retrying.
SECURITY CONTROLS
A skill is a plain Makefile you can read before use. Make-agent controls how the model calls it and when a person needs to approve.
The interactive shell shows the requested skill and command before running an untrusted skill. Non-interactive runs deny calls that require approval.
Optional trust is tied to the contents of skill.mk at launch. An edited skill requires approval again.
Skill calls accept target names and literal parameters. Built-in file edits stay inside the working directory, and you can disable individual built-in tools.
--disable-builtin-tools create_skill removes the tool that creates or overwrites skills.
For a run that executes only trusted skills, put reviewed recipes in a dedicated directory and name them with --trusted-skills. Disable the built-in file writers and use --prompt so calls that need approval are denied.
make_agent run --model anthropic/your-model-id \
--skills-dir "$HOME/.config/make-agent/reviewed-skills" \
--trusted-skills imports \
--disable-builtin-tools create_skill,write_file,edit_file \
--prompt "Diagnose the overnight import failure."
Execution scope. Approved Make recipes run with your local process permissions. Review recipes and their dependencies before approving them.
REAL-WORLD WORKFLOWS
Each workflow pairs a question with two Make targets and shows the kind of finding the agent could return.
Compare yesterday’s and today’s CSV headers with a tally of rejected rows. The TSV starts with a header and puts the reason code in its first column.
“Find the most common rejection reason. Check whether a header change could explain it and tell me what to verify before retrying.”
Sample finding. The feed renamed customer_id to customer_ref. Check the importer’s mapping before retrying the 184 missing-ID rejects.
define DESCRIPTION
Count rejected rows and compare feed headers.
endef
.PHONY: reject-counts header-diff
reject-counts:
@awk -F '\t' 'NR > 1 { n[$$1]++ } \
END { for (r in n) print n[r], r }' \
artifacts/import/rejected.tsv
header-diff:
@diff -u artifacts/import/previous-header.csv \
artifacts/import/current-header.csv; \
status=$$?; test "$$status" -le 1
Compare SQL migrations on the current branch with origin/main, then read the rollout plan to see which app versions will overlap.
“Which migration could break the old app during a rolling deploy? Cite the SQL and the rollout step that overlap.”
Sample finding. The migration drops orders.legacy_status while v4 still reads it. Move the drop to a later release.
define DESCRIPTION
Read migration changes and the rollout plan.
endef
.PHONY: migration-diff rollout-plan
migration-diff:
@git --no-pager diff --no-ext-diff \
origin/main...HEAD -- db/migrations/
rollout-plan:
@sed -n '1,100p' docs/rollout.md
Read a weekly checkout error tally and a short set of anonymized support reports. Use the counts to size the issue and the reports to draft reproduction steps.
“Draft a checkout bug report. Include who seems affected, steps to reproduce, and one question the team still needs to answer.”
Sample finding. Reports cluster around guest checkout with a discount code. Try the same cart as a guest and as a signed-in shopper to isolate the difference.
define DESCRIPTION
Read checkout counts and anonymized reports.
endef
.PHONY: error-counts report-samples
error-counts:
@head -n 16 artifacts/support/error-counts.tsv
report-samples:
@head -n 20 artifacts/support/checkout-reports.txt
Check the checkout-api Deployment and read warning events for its labeled Pods. The recipe uses the staging kubectl context and the shop-staging namespace. Use credentials with read-only access to Deployments, Pods, and Events there.
“Why is the checkout rollout stuck? Compare available replicas with Pod warnings and tell me what to check before retrying.”
Sample finding. Only one of three updated replicas is available. The new Pods report ErrImagePull and the registry says the image tag was missing. Check that the release image was pushed under the tag in the Deployment.
define DESCRIPTION
Check checkout-api rollout status and Pod warnings.
endef
override KUBE := kubectl --context staging -n shop-staging
.PHONY: rollout-status pod-warnings
rollout-status:
@$(KUBE) rollout status deployment/checkout-api \
--watch=false --request-timeout=10s
pod-warnings:
@set -e; pods=$$($(KUBE) get pods -o name \
-l app.kubernetes.io/name=checkout-api \
--request-timeout=10s); \
if [ -z "$$pods" ]; then \
printf '%s\n' 'No checkout-api Pods found.'; exit 0; \
fi; \
for pod in $$pods; do \
$(KUBE) events --for "$$pod" --types=Warning \
--request-timeout=10s; \
done
QUICKSTART
Install the CLI and save a recipe in its own folder, for example skills/imports/skill.mk. Add the files it reads and launch from your project’s root. Conversation history and preferences are stored locally in SQLite.
pip install makefile-agent
export ANTHROPIC_API_KEY=your-key
make_agent run --model anthropic/your-model-id \
--skills-dir ./skills
Run from the checkout with uv and an Anthropic-compatible server listening on port 9931 that serves qwen3-6.
ANTHROPIC_BASE_URL="http://localhost:9931" \
ANTHROPIC_API_KEY=dummy uv run make_agent run \
--model anthropic/qwen3-6 --skills-dir ./skills