Generate a Project Makefile for All Your Common Commands
A good Makefile turns docker-compose up -d && php artisan migrate && npm run dev into just make dev. Claude can write one for you from scratch in seconds.
Describe your project and what you want targets for:
Write a Makefile for a Laravel + Vue project that uses Docker Compose.
I want targets for: starting/stopping the stack, running migrations,
running tests (PHP and JS), building frontend assets, clearing caches,
and generating IDE helper files. Add a help target that lists all commands.
Claude will write a proper Makefile with .PHONY declarations, coloured help output, and sensible defaults — not a toy script.
.PHONY: help dev stop test migrate
help: ## Show available commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
dev: ## Start the development stack
docker-compose up -d
php artisan migrate --force
test: ## Run the full test suite
./vendor/bin/pest
npm run test
If you have an existing Makefile and want to extend it, paste it in and ask Claude to add new targets without breaking what's already there.
A Makefile is the cheapest onboarding doc you'll ever write — make help tells a new developer everything they need to get started.
Log in to leave a comment.
The /security-review command scans your uncommitted changes for injection vectors, auth gaps, hardcoded secrets, and other common vulnerabilities.
The SessionStart hook fires when any session begins or resumes, making it ideal for loading environment variables and running one-time setup scripts.
Ask Claude to write property-based tests for your functions using fast-check — it identifies the mathematical invariants in your code and generates tests that cover inputs you'd never enumerate by hand.