# Makefile Linting for CI and Build Pipelines

> Uses checkmake to inspect Makefiles for style issues, fragile targets, and maintainability problems before build automation breaks in CI. It is a narrow build-script review skill for agents working inside repositories that already rely on make, not a generic build tool listing.

- Skill: `agentskillexchange/makefile-linting-for-ci-and-build-pipelines` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/makefile-linting-for-ci-and-build-pipelines`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/makefile-linting-for-ci-and-build-pipelines/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/makefile-linting-for-ci-and-build-pipelines

---


# Makefile Linting for CI and Build Pipelines

Uses checkmake to inspect Makefiles for style issues, fragile targets, and maintainability problems before build automation breaks in CI. It is a narrow build-script review skill for agents working inside repositories that already rely on make, not a generic build tool listing.

## Prerequisites

checkmake binary and existing Makefiles

## Installation

Use the upstream install or setup path that matches your environment:
- docker build --build-arg BUILDER_NAME='Your Name' --build-arg BUILDER_EMAIL=your.name@example.com . -t checker
- docker run --workdir / -v "$PWD"/Makefile:/Makefile quay.io/checkmake/checkmake:latest
- docker run --workdir / -v "$PWD"/Makefile:/Makefile -v "$PWD"/checkmake.ini:/checkmake.ini quay.io/checkmake/checkmake:latest
- go install github.com/checkmake/checkmake/cmd/checkmake@latest

Requirements and caveats from upstream:
- building or running a container image can be done with docker and podman.
- The container command used for building (docker or podman) is auto-detected with a preference for podman but can be overridden by the make variable CONTAINER_CMD.
- The locally built image can be published with a make image-pushcommand corresponding to the previously described make image-buildcommand or alrenatively directly using docker push or podman push

Basic usage or getting-started notes:
- console
- % checkmake Makefile
- % checkmake Makefile foo.mk bar.mk baz.mk

- Source: https://github.com/checkmake/checkmake
- Extracted from upstream docs: https://raw.githubusercontent.com/checkmake/checkmake/HEAD/README.md

## Documentation

- https://github.com/checkmake/checkmake

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/makefile-linting-ci-build-pipelines/)

