Skip to content
Development
Skill

/makefile-generation

Generates Makefiles with testing, linting, formatting, and automation targets. Use when starting a project or standardizing build automation.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill makefile-generation --agent claude-code

SKILL.md

makefile-generation.SKILL.md
name: makefile-generation
description: Generates Makefiles with testing, linting, formatting, and automation targets. Use when starting a project or standardizing build automation.
globs: "**/Makefile"
alwaysApply: false
# Custom metadata (not used by Claude for matching):
tools: [Read, Write, Bash]
category: infrastructure
tags: [makefile, automation, build-tools, development-workflow]
complexity: low
estimated_tokens: 1200

Makefile Generation Skill

Generate a Makefile with standard development targets for Python, Rust, or TypeScript projects.

When To Use

  • Need a Makefile for a project without one
  • Want to update Makefile with new targets
  • Standardizing build automation across projects
  • Setting up development workflow commands
  • Creating language-specific build targets

When NOT To Use

  • Makefile already exists and is current
  • Project uses alternative build system exclusively (e.g., npm scripts only)
  • Complex custom build process that doesn't fit standard patterns
  • Use `/attune:upgrade-project` instead for updating existing Makefiles

Standard Targets

Python Makefile

**Common targets**:

  • `help` - Show available targets
  • `install` - Install dependencies with uv
  • `lint` - Run ruff linting
  • `format` - Format code with ruff
  • `typecheck` - Run mypy type checking
  • `test` - Run pytest
  • `test-coverage` - Run tests with coverage report
  • `check-all` - Run all quality checks
  • `clean` - Remove generated files and caches
  • `build` - Build distribution packages
  • `publish` - Publish to PyPI

Rust Makefile

**Common targets**:

  • `help` - Show available targets
  • `fmt` - Format with rustfmt
  • `lint` - Run clippy
  • `check` - Cargo check
  • `test` - Run tests
  • `build` - Build release binary
  • `clean` - Clean build artifacts

TypeScript Makefile

**Common targets**:

  • `help` - Show available targets
  • `install` - Install npm dependencies
  • `lint` - Run ESLint
  • `format` - Format with Prettier
  • `typecheck` - Run tsc type checking
  • `test` - Run Jest tests
  • `build` - Build for production
  • `dev` - Start development server

Workflow

1. Detect Language

# 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.

2. Load Template

from pathlib import Path

template_path = Path("plugins/attune/templates") / language / "Makefile.template"

**Verification:** Run the command with `--help` flag to verify availability.

3. Collect Project Info

metadata = {
    "PROJECT_NAME": "my-project",
    "PROJECT_MODULE": "my_project",
    "PYTHON_VERSION": "3.10",
}

**Verification:** Run the command with `--help` flag to verify availability.

4. Render Template

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.

5. Verify

make help

**Verification:** Run `make --dry-run` to verify build configuration.

Customization

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.

Related Skills

  • `Skill(attune:project-init)` - Full project initialization
  • `/abstract:make-dogfood` command - Makefile testing and validation

Exit Criteria

  • [ ] A `Makefile` 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.

  • [ ] If no language is detected (no `pyproject.toml`, `Cargo.toml`, or `package.json`), the

skill reports the detection failure and stops rather than generating a blank Makefile.

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about makefile-generation.

Which coding agents can use makefile-generation?
makefile-generation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.