From attune
Generates Makefiles with testing, linting, formatting, and automation targets for Python, Rust, or TypeScript projects. Use when starting a project or standardizing build automation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/attune:makefile-generationclaude-sonnet-4-6The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [When To Use](#when-to-use)
Generate a Makefile with standard development targets for Python, Rust, or TypeScript projects.
/attune:upgrade-project instead for updating existing MakefilesCommon targets:
help - Show available targetsinstall - Install dependencies with uvlint - Run ruff lintingformat - Format code with rufftypecheck - Run mypy type checkingtest - Run pytesttest-coverage - Run tests with coverage reportcheck-all - Run all quality checksclean - Remove generated files and cachesbuild - Build distribution packagespublish - Publish to PyPICommon targets:
help - Show available targetsfmt - Format with rustfmtlint - Run clippycheck - Cargo checktest - Run testsbuild - Build release binaryclean - Clean build artifactsCommon targets:
help - Show available targetsinstall - Install npm dependencieslint - Run ESLintformat - Format with Prettiertypecheck - Run tsc type checkingtest - Run Jest testsbuild - Build for productiondev - Start development server# Check for language indicators
if [ -f "pyproject.toml" ]; then
LANGUAGE="python"
elif [ -f "Cargo.toml" ]; then
LANGUAGE="rust"
elif [ -f "package.json" ]; then
LANGUAGE="typescript"
fi
Verification: Run the command with --help flag to verify availability.
from pathlib import Path
template_path = Path("plugins/attune/templates") / language / "Makefile.template"
Verification: Run the command with --help flag to verify availability.
metadata = {
"PROJECT_NAME": "my-project",
"PROJECT_MODULE": "my_project",
"PYTHON_VERSION": "3.10",
}
Verification: Run the command with --help flag to verify availability.
from template_engine import TemplateEngine
engine = TemplateEngine(metadata)
engine.render_file(template_path, Path("Makefile"))
Verification: Run the command with --help flag to verify availability.
make help
Verification: Run make --dry-run to verify build configuration.
Users can add custom targets after the generated ones:
# ============================================================================
# CUSTOM TARGETS
# ============================================================================
deploy: build ## Deploy to production
./scripts/deploy.sh
Verification: Run the command with --help flag to verify availability.
Skill(attune:project-init) - Full project initialization/abstract:make-dogfood command - Makefile testing and validationMakefile is created at the project root containing at minimum a help target and
all standard targets for the detected language (Python: install/lint/format/typecheck/test;
Rust: fmt/lint/check/test/build; TypeScript: install/lint/format/typecheck/test/build).make help runs without error and lists all generated targets with descriptions.make --dry-run <target> exits 0 for each standard target, confirming recipe syntax
is valid.pyproject.toml, Cargo.toml, or package.json), the
skill reports the detection failure and stops rather than generating a blank Makefile.npx claudepluginhub athola/claude-night-market --plugin attuneMakefile with standard targets (help, test, build, clean, lint). Use when setting up a Makefile, auditing missing targets, or adding language-specific targets.
Generates Makefiles for C/C++, Python, Go, Java projects with .PHONY targets, GNU standards, standard targets, security hardening, and CI/CD integration.
Creates Makefiles with consistent conventions: default help target, .PHONY declarations, self-documenting help via grep/parsing, common targets like init, build, dev, test. Reminds to use tabs.