Agent skill
setup
Install this agent skill to your Project
npx add-skill https://github.com/leonj1/external-claude-skills/tree/main/skills/repo/setup
SKILL.md
Project Makefile Setup Skill
Description
Creates a Makefile for managing project lifecycle events using Docker containers. The Makefile supports backend and frontend projects with configurable listening ports.
Requirements
- A
Makefilemust exist in the project root - The Makefile must include the following targets:
build,stop,start,restart,test - Port configuration must be overridable via environment variables
Makefile Structure
# Default ports (can be overridden)
BACKEND_PORT ?= 8080
FRONTEND_PORT ?= 3000
.PHONY: build stop start restart test
build:
docker build -t $(PROJECT_NAME) .
stop:
docker stop $(PROJECT_NAME) || true
start:
docker run -d --name $(PROJECT_NAME) -p $(BACKEND_PORT):$(BACKEND_PORT) $(PROJECT_NAME)
# For frontend: -p $(FRONTEND_PORT):$(FRONTEND_PORT)
restart: stop start
test:
docker build -f Dockerfile.backend.tests -t $(PROJECT_NAME)-tests .
docker run --rm $(PROJECT_NAME)-tests
# For frontend: use Dockerfile.frontend.tests
Port Override Examples
# Override backend port
BACKEND_PORT=9000 make start
# Override frontend port
FRONTEND_PORT=4000 make start
Validation
Run the following command to validate the Makefile:
make build
A successful build (exit code 0) indicates the Makefile is valid and functional.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
auth-cognito
auth-auth0
strict-architecture
Enforces universal strict governance rules (500 lines, 5 funcs, 4 args) and interface-first I/O for Python, Golang, and .NET.
context-initializer
Automatically invokes init-explorer agent when project context is empty or unknown.
rds-postgres
flyway-backend-docker
Setup backend project with Flyway SQL migrations, tini init system, and MySQL integration testing. Modifies existing Dockerfile from backend-docker skill.
Didn't find tool you were looking for?