Loading...
Loading...
Use when creating or updating a Makefile for a project, especially when standard targets (build, test, lint, format, etc.) are missing or when modifying targets that may already be wired into other tooling. Not for debugging why a build fails.
npx skill4agent add ovid/paad makefilepaad/config/paad.mdpaad/config/makefile.mdConfig: <path>digraph makefile_flow {
"Makefile exists?" [shape=diamond];
"Existing target needs change?" [shape=diamond];
"Approved?" [shape=diamond];
"Coverage tool defaults to watch mode?" [shape=diamond];
"Test tool supports balanced output?" [shape=diamond];
"Detect stack" [shape=box];
"Create from scratch" [shape=box];
"Include all required targets" [shape=box];
"Identify missing targets" [shape=box];
"Add new targets" [shape=box];
"STOP: ask user for approval" [shape=box, style=bold];
"Apply change" [shape=box];
"Skip change" [shape=box];
"Force the one-shot flag for the detected stack" [shape=box];
"Verify the tool exits on its own before adding flags" [shape=box];
"ASK the user how to handle test output" [shape=box];
"Announce the file written or updated" [shape=box];
"Done" [shape=box];
"Detect stack" -> "Makefile exists?";
"Makefile exists?" -> "Create from scratch" [label="no"];
"Makefile exists?" -> "Identify missing targets" [label="yes"];
"Create from scratch" -> "Include all required targets";
"Include all required targets" -> "Coverage tool defaults to watch mode?";
"Identify missing targets" -> "Add new targets";
"Add new targets" -> "Existing target needs change?";
"Existing target needs change?" -> "Coverage tool defaults to watch mode?" [label="no"];
"Coverage tool defaults to watch mode?" -> "Force the one-shot flag for the detected stack" [label="yes — vitest, jest"];
"Coverage tool defaults to watch mode?" -> "Verify the tool exits on its own before adding flags" [label="unclear — pytest-cov, cargo, go test"];
"Force the one-shot flag for the detected stack" -> "Test tool supports balanced output?";
"Verify the tool exits on its own before adding flags" -> "Test tool supports balanced output?";
"Existing target needs change?" -> "STOP: ask user for approval" [label="yes"];
"STOP: ask user for approval" -> "Approved?";
"Approved?" -> "Apply change" [label="yes"];
"Approved?" -> "Skip change" [label="no"];
"Apply change" -> "Existing target needs change?" [label="next target"];
"Skip change" -> "Existing target needs change?" [label="next target"];
"Test tool supports balanced output?" -> "Announce the file written or updated" [label="yes"];
"Test tool supports balanced output?" -> "ASK the user how to handle test output" [label="no — only silent or firehose"];
"ASK the user how to handle test output" -> "Announce the file written or updated";
"Announce the file written or updated" -> "Done";
}npm runjusttasknoxcargo xtaskCLAUDE.mdAGENTS.mdREADME.mdpackage.jsonpyproject.tomlCargo.tomlgo.modGemfile| Target | Purpose |
|---|---|
| List all targets with descriptions |
| Full CI pass (lint + format + test at minimum) |
| Run test suite |
| One-shot coverage report |
| Lint (with autofix if available) |
| Format code |
builddevpreview##helpgrepawk.PHONY: all test cover lint format help
all: lint format test ## Lint, format, and test
test: ## Run full test suite
<stack-specific command>
cover: ## Generate code coverage report (one-shot)
<stack-specific command, forced one-shot — see below>
lint: ## Lint with autofix
<stack-specific command>
format: ## Format code
<stack-specific command>
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-10s %s\n", $$1, $$2}'.PHONY"The existingtarget runscover. I'd change it toXbecause [reason]. Should I make this change?"Y
-- --run-- --watchAll=falsemake test| Stack | Flag / Approach |
|---|---|
| vitest | |
| jest | Default is good; avoid |
| pytest | |
| cargo test | Default is fine; |
| go test | Default is fine; avoid |
| prove (Perl) | Default is fine; avoid |
Files written or updated:
updated Makefile| Mistake | What to do instead |
|---|---|
| Rewriting an existing target because the new version is better | Stop and ask, quoting the current command and the proposed one. Other tooling (CI, hooks, docs, muscle memory) may depend on the current behaviour. |
| Treating "add a flag to an existing target" as additive | Changing a target's implementation is a change, flag or not. It needs approval. |
| Inventing commands the stack doesn't have | Detect first — read CLAUDE.md, README, and the language manifest. A |
Writing a | Use the self-documenting |
Leaving | It hangs the agent and CI. Force one-shot explicitly, per the stack. |
Omitting targets from | A file named |
| Adding every optional target for completeness | Extra targets ( |