
Makefile Validator
If you need to validate Makefiles before CI or catch subtle issues like missing .PHONY declarations, tab-versus-space errors, or credential leaks, this runs a layered check through GNU make syntax validation, mbake linting, and custom security audits. It returns explicit exit codes (0 for clean, 1 for warnings, 2 for errors) and only loads the relevant docs when it finds something. The deterministic flow means you run the validator script, interpret the findings, apply fixes, and rerun until clean. Fallback paths handle missing dependencies gracefully. It's built for deterministic, local-first validation rather than quick linting, so expect a thorough pass that catches both syntax problems and best-practice violations in one go.
- skills.sh installs
- 671
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill makefile-validator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Makefile Validator
Overview
Use this skill to validate Makefiles with a local-first, deterministic flow.
Default validator entrypoint:
bash scripts/validate_makefile.sh <makefile-path>
Validation layers:
- Dependency preflight (
python3,pip3,make) - GNU make syntax check (
make -n --dry-run) whenmakeis available mbake validatembake format --check- Custom security, best-practice, and optimization checks
- Optional
checkmakeandunmakechecks when installed
Trigger Guidance
Use this skill when the request includes Makefile quality, linting, validation, hardening, or troubleshooting.
Trigger Phrases
- "Validate this Makefile"
- "Lint my
.mkfile" - "Find issues in this build Makefile"
- "Check Makefile security problems"
- "Review this Makefile before CI"
Non-Trigger Examples
- Creating a brand new Makefile from scratch (use
makefile-generator) - Running build targets as part of delivery
- General shell scripting work unrelated to Makefiles
Deterministic Execution Model
Run from this skill directory for shortest commands:
cd devops-skills-plugin/skills/makefile-validator
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- DevOps & CI/CD, Code Review & Quality
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Makefile Generator659
- Promql Generator656
- Promql Validator646
- Fluentbit Generator640
- Logql Generator640
- Fluentbit Validator637
- Loki Config Generator622
- Ansible Validator1.6K
- Terragrunt Generator1.2K
- Ansible Generator907
- K8s Debug887
- Jenkinsfile Generator862
- Dockerfile Validator786
- Dockerfile Generator741
- Bash Script Validator734
- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694
- Azure Pipelines Generator692
- Github Actions Validator686