Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

makefile-generation

/makefile-generation

Generuje Makefile z celami testowania, lintowania, formatowania i automatyzacji, przy starcie projektu lub standaryzacji automatyzacji budowania.

Licencja
MIT
Ostatnia zmiana repozytorium
01.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Generuje Makefile z celami testowania, lintowania, formatowania i automatyzacji, przy starcie projektu lub standaryzacji automatyzacji budowania.

Oryginalny opis (EN)

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

Jak działa

  1. When To Use
  2. When NOT To Use
  3. Standard Targets
  4. Workflow
  5. Customization
  6. Related Skills
  7. Exit Criteria
Sekcje z nagłówków SKILL.md, w oryginale · 143 linii, 560 słów
Podgląd 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):
model: sonnet
tools: [Read, Write, Bash]
category: infrastructure
tags: [makefile, automation, build-tools, development-workflow]
complexity: low
model_hint: fast
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

```bash
# 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

```python
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

```python
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

```python
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

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

## Customization

Users can add custom targets after the generated ones:

```makefile
# ============================================================================
# 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.

Wersje

W bazie nie ma innych skilli o nazwie makefile-generation.

Migawka bazy z 13.11.2026 · wersja paczki 263683bdbc83 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100makefile-workflow
    Projektuje lub aktualizuje Makefile ze spójnymi celami build, format, lint, test i check-* dla projektów w Go, Node, Bazel lub mieszanych.
  • 100makefile-pro
    Generuje, szkicuje, waliduje i lintuje Makefile oraz pliki .mk: cele .PHONY, automatyzację budowania i typowe błędy.
  • 100makefile-review
    Audytuje Makefile pod kątem poprawności budowania, przenośności i duplikacji reguł, przy przeglądzie pliku lub przed zatwierdzeniem zmian.
  • 100makefile
    Podaje dobre praktyki pisania Makefile GNU Make, stosowane do plików Makefile, makefile, *.mk i GNUmakefile.
  • 95makefile
    Prowadzi przez automatyzację i budowanie w GNU Make: tworzenie i utrzymanie plików Makefile, pisanie targetów i reguł oraz konfigurację procesu budowania.
  • 100configure-makefile
    Konfiguruje Makefile ze standardowymi celami (help, test, build, clean, lint), audytuje brakujące cele i dodaje cele specyficzne dla języka.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.