makefile-validator

Validate Makefiles for syntax, formatting, security, and performance issues.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/pantheon-org/tekhne --skill makefile-validator-pantheon-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: makefile-validator
Source: https://github.com/pantheon-org/tekhne/tree/main/skills/development/scripting/makefile/validator
Command: npx skills add https://github.com/pantheon-org/tekhne --skill makefile-validator-pantheon-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mbake, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill ensures your Makefiles are syntactically correct, adhere to best practices, are secure, and are optimized for performance, preventing common errors and improving build efficiency.

Core Features & Use Cases

  • Syntax Validation: Checks for errors using GNU Make's dry-run mode.
  • Formatting & Linting: Uses mbake to enforce consistent style, detect missing .PHONY declarations, and fix indentation.
  • Security Audits: Flags potential issues like hardcoded credentials and unsafe variable expansions.
  • Optimization Checks: Suggests improvements for build speed and efficiency.
  • Use Case: Before committing a new Makefile, run this Skill to catch potential syntax errors, ensure consistent formatting across the team, and identify security risks.

Quick Start

Validate the Makefile in the current directory for errors and best practices.

Frequently Asked Questions about makefile-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Makefile syntax and fix missing .PHONY declarations?

Validate Makefile syntax by running GNU Make's dry-run mode to detect errors, then use mbake to enforce consistent style and fix missing .PHONY declarations automatically.

Why does my Makefile build slowly and how can I optimize it?

To optimize Makefile build speed, analyze your build scripts for performance bottlenecks and apply suggested improvements for build speed and efficiency.

Can I check my Makefile for hardcoded credentials and unsafe variable expansions?

Yes, you can check your Makefile for security vulnerabilities by running a security audit that flags hardcoded credentials and unsafe variable expansions.

Do I need Python 3 and pip to lint a Makefile?

Yes, you need Python 3 and pip installed to lint a Makefile, because the mbake dependency requires them to enforce formatting consistency and detect style issues.

What is the best way to check Makefile formatting consistency before committing?

The best way to check Makefile formatting consistency before committing is to run a linter like mbake to enforce style rules, detect missing .PHONY declarations, and fix indentation.