Makefile Contract Lint
This skill automatically checks your Makefiles and contracts for common errors and best practices, ensuring code quality and reducing potential issues.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add makefile-contract-lint npx -- -y @trustedskills/makefile-contract-lint
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"makefile-contract-lint": {
"command": "npx",
"args": [
"-y",
"@trustedskills/makefile-contract-lint"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes Makefile files to ensure they adhere to a defined contract or set of rules. It identifies deviations from the expected structure and syntax, helping maintain consistency and prevent errors in build processes. The tool aims to enforce best practices within Makefile development by providing automated checks.
When to use it
- Project onboarding: Quickly assess new projects'
Makefilequality and identify potential issues early on. - Code reviews: Integrate into code review workflows to automatically check for
Makefilecontract compliance. - Continuous integration (CI): Automate
Makefilevalidation as part of CI pipelines to prevent broken builds. - Team standardization: Enforce consistent
Makefilestructure and syntax across a development team.
Key capabilities
- Contract-based analysis: Checks against predefined rules or contracts for
Makefilecontent. - Deviation identification: Highlights areas where the
Makefiledoesn't conform to the contract. - Automated validation: Provides automated checks during development or build processes.
Example prompts
- "Analyze this Makefile and check it against my project’s contract."
- "Run a linting check on the Makefile in /path/to/makefile."
- "Validate that this Makefile adheres to the standard naming conventions."
Tips & gotchas
- Requires a defined
Makefilecontract or set of rules for effective analysis. Without a contract, the skill cannot function.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.