conventions-make
MANDATORY for any work on Makefiles (Makefile, *.mk). Load this before editing, reviewing, or creating any Makefile or *.mk file. House Makefile conventions…
от Integralist★ 31 звезда на GitHub
Установить conventions-make в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
[!NOTE] If invoked directly with no specific task, load these conventions and stop. They are ready to apply when asked to write, edit, or review Makefiles.
House deltas for Makefile and *.mk files so every repo shares a predictable,
self-documenting CLI. In an established repo, match its existing conventions
where they differ.
When creating or overhauling a Go project's Makefile, read and adapt
GO-TEMPLATE.md.
Layout and comments
- Set
SHELL := /usr/bin/env bashand.DEFAULT_GOAL := helpnear the top (override.DEFAULT_GOALin service repos whererunortestis better). - Load per-developer overrides with
-include .env.mkand ensure.env.mkis in.gitignore. - Separate logical groups with 80-column section banners
(
# ─── Section Name ───…). - Start the file with a short header comment naming the core tools, linters,
and formatters the file drives. Leave blank
#lines between numbered items and nested bullet lists so the block stays easy to scan.
Naming and ordering
- Noun-first target prefixes: Prefix related targets with a shared noun
(
go-*,ci-*,tools-*,deploy-*) somake helpgroups them alphabetically. - Sort A-Z: Sort overridable variables alphabetically (unless an evaluation dependency requires another order) and sort targets alphabetically inside each section.
- Mode flags over duplicate targets: Use boolean variables (
DIFF=true,FIX=true) with$(if $(filter true,$(VAR)),...)instead of adding separate*-diffor*-fixaliases. - Multi-language
testaggregator: Keeptestas the top-level target that runs every test suite in the repo (for example,test: go-test, addingpython-testas another prerequisite when a second language is added). Keep language-scoped targets (go-test) focused on that language alone. - CI targets: Provide
ci-lint(static analysis and vulnerability checks) andci-check(ci-lintplustest) so CI workflows can fan out jobs while contributors have one local parity target.
Help and variables
- Include a
helptarget that parses##doc comments on both targets and overridable variables (?=/:=), prints them sorted alphabetically, and displays.DEFAULT_GOAL. Document optional overrides in target descriptions as(opts: VAR1, VAR2=val). - Use the
check_definedmacro (see GO-TEMPLATE.md) to fail fast with a clear usage hint whenever a target requires a variable. - Keep test flags (
GO_TEST_FLAGS ?= -race) separate from target packages (GO_PACKAGES ?= ./...) so callers can override either independently. - Wrap quoted variables that carry inline
##doc comments in$(strip $(VAR))because GNU Make preserves trailing spaces before#.
Tool management
- Group standalone Go tools (such as
gohawkandgovulncheck) in aGO_TOOLSvariable and invoke them throughGO_TOOL_PREFIX ?= go tool.- When
GO_TOOL_PREFIXis non-empty,tools-install/tools-updaterungo get -tool <pkg>@latestso versions are pinned ingo.modand run viago tool <name>. - When
GO_TOOL_PREFIXis cleared (GO_TOOL_PREFIX=), those targets fall back togo install <pkg>@latestso zero-dependency modules can keepgo.modclean and invoke binaries fromPATH.
- When
- Install binary-distributed tools like
golangci-lintthrough their official release installer intools-install/tools-update—never viago get -toolorgo install. - Gate lint/format targets on a
tools-configprerequisite that checksgolangci-lint config pathand fetches the baseline.golangci.ymlto~/.golangci.ymlonly when no repo or global config exists (no separaterevive.tomlis needed; allreviverules live inside.golangci.yml). For shared or CI repos, commit a repo-local.golangci.ymlor pinGOLANGCI_LINT_CONFIG_REFto a commit SHA.
Linting
- Check Makefiles with
checkmake --config ~/.config/checkmake.ini Makefilewhencheckmakeis installed. - Declare
.PHONYon every non-file target, include the standardall,clean, andtestphony targets, and keep recipe bodies at or under 15 lines (move longer logic into a script underscripts/orbin/).
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/GO-TEMPLATE.md
FAQ
Что делает скилл conventions-make?
MANDATORY for any work on Makefiles (Makefile, *.mk). Load this before editing, reviewing, or creating any Makefile or *.mk file. House Makefile conventions covering structure, help targets, noun-first target grouping, variables, tool management, CI targets, and checkmake linting.
Как установить скилл conventions-make?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл conventions-make запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…