🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Makefile Linter

by @charlie-morrison

Lint Makefiles for common issues — tabs, .PHONY, unused vars, portability, and best practices.

Versionv1.0.1
Installs1
💡 Examples

# Report only errors and warnings
python3 scripts/makefile-linter.py lint Makefile --min-severity warning

JSON output for CI integration

python3 scripts/makefile-linter.py lint Makefile --format json

Fail CI on any issue

python3 scripts/makefile-linter.py lint Makefile --strict

Ignore specific rules

python3 scripts/makefile-linter.py lint Makefile --ignore recursive-make --ignore missing-clean

Full audit in Markdown (for PR comments)

python3 scripts/makefile-linter.py audit Makefile --format markdown

Pipe from stdin

cat Makefile | python3 scripts/makefile-linter.py lint /dev/stdin

⚙️ Configuration

| Flag | Description | |------|-------------| | --format text\|json\|markdown | Output format (default: text) | | --strict | Exit code 1 on any reported issue | | --ignore RULE | Ignore a specific rule (repeatable) | | --min-severity error\|warning\|info | Minimum severity to report (default: info) |

View on ClawHub
TERMINAL
clawhub install makefile-linter

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →