abuxton/awesome-makefiles/makefile-ci

Claude Code and agent skill by abuxton/awesome-makefiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Integrating Makefiles with CI/CD pipelines (GitHub Actions, GitLab CI, Jenkins, etc.)

Install

npx vskill@latest install abuxton/awesome-makefiles/makefile-ci

SKILL.md

The same SKILL.md was published earlier as abuxton/awesome-makefiles/makefile-ci.

Makefile CI/CD Integration

Patterns for using Makefiles as the single entrypoint for CI/CD pipelines.

When to use

Use this skill when:

  • Wiring Makefile targets into a CI/CD workflow
  • Ensuring the same commands run locally and in CI
  • Adding targets that produce artefacts or reports for pipeline consumption

Instructions

CI-safe defaults
makefile
# Disable interactive prompts and colour when running in CI
CI ?= false
ifeq ($(CI),true)
DOCKER_FLAGS += --no-cache
NPM_FLAGS += --ci --no-progress
endif
Standard target contract

Define these targets in every repo so pipelines can call them without knowing the stack:

TargetPurpose
make depsInstall / download all dependencies
make lintStatic analysis / style check
make testRun the test suite
make buildCompile / package the application
make ciRun deps lint test build in sequence
make cleanRemove all generated artefacts
GitHub Actions integration
yaml
# .github/workflows/ci.yml
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: make deps
- name: Lint
run: make lint
- name: Test
run: make test
- name: Build
run: make build
Caching in CI

Pass the cache directory as a variable so CI can persist it:

makefile
CACHE_DIR ?= .cache
deps: $(CACHE_DIR)/.deps-stamp
$(CACHE_DIR)/.deps-stamp:
mkdir -p $(CACHE_DIR)
npm ci --cache $(CACHE_DIR)/npm
touch $@
Reporting artefacts
makefile
COVERAGE_DIR ?= coverage
TEST_RESULTS ?= test-results.xml
.PHONY: test
test: ## Run tests and write coverage + JUnit report
go test ./... \
-coverprofile=$(COVERAGE_DIR)/coverage.out \
-v 2>&1 | tee $(TEST_RESULTS)
Docker layer caching in CI
makefile
CACHE_FROM ?= type=gha
CACHE_TO ?= type=gha,mode=max
.PHONY: docker-build
docker-build: ## Build image (CI-aware layer caching)
docker buildx build \
--cache-from=$(CACHE_FROM) \
--cache-to=$(CACHE_TO) \
--tag $(IMAGE):$(VERSION) .
Secrets / environment hygiene
  • Never hard-code secrets in a Makefile; read them from environment variables.
  • Document required env vars in a .env.example file.
  • In CI, inject via the platform secret store (e.g. GitHub Actions secrets).
makefile
ifndef REGISTRY_TOKEN
$(error REGISTRY_TOKEN must be set for docker-push)
endif
Idempotency

Targets should be safe to run multiple times. Use .stamp files or $(shell test …) guards:

makefile
.cache/.install-stamp: package.json
npm ci
mkdir -p .cache && touch $@

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/abuxton/awesome-makefiles/makefile-ci/badge)](https://verified-skill.com/skills/abuxton/awesome-makefiles/makefile-ci)

Something wrong with this skill or its page? Tell us.