# Makefile Creator

> Generate production-ready Makefiles for Docker Compose with environment guards, safe DB dumps, and TTY-safe commands.

Makefile Creator is a free AI agent skill on Agensi by Sect0R, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Sect0R](https://www.agensi.io/creators/sect0r)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/makefile-creator
- Tags: automation, docker-compose, devops, bash, makefile

## About this skill

Stop writing fragile shell scripts or guessing docker-compose commands. This skill generates and maintains strict, production-ready Makefiles for containerized environments. It enforces a standardized interface for managing development and production stacks without repetitive manual configuration.

### What it does
- **Standardizes Environments** Enforces a `make <env> <action>` pattern to prevent accidental commands against the wrong environment.
- **Automates Docker Ops** Generates targets for `up`, `down`, `restart`, `logs`, and `build` using TTY-safe execution for CI/CD compatibility.
- **Secures DB Tasks** Creates safe database dump and migration targets that handle passwords via stdin and include `umask 077` protection.
- **Self-Documenting Help** Automatically builds a Russian-language help menu so every team member knows available targets and parameters.
- **Project Detection** Analyzes your existing `.env`, `docker-compose.yml`, and CLI entrypoints to map services correctly.

### How it works
1. Point the agent at your project root containing Docker or Compose files.
2. Request a new Makefile or an update to an existing one with specific targets like `migrate` or `dump`.
3. The skill scans for service names, environment file structures, and database types to scaffold the logic.
4. Review the generated Makefile which includes the `env-required` guard and TTY-safe `EXEC` macros.

### Frameworks & tools
Works with `docker-compose`, `bash`, `GNU Make`, and any application stack running in containers (Node.js, Python, PHP). Optimized for Linux and macOS environments.

### Why this beats prompting it yourself
Generic prompts often produce Makefiles that leak passwords in `ps` output or fail in non-interactive shells. This skill implements specific safety patterns like `.part` file renaming for dumps and `pipefail` shell options that are easily overlooked.

### Use cases
- Scaffold a new project with dev and prod compose file switching.
- Add safe database migration targets with mandatory production confirmation.
- Implement a centralized `update` target for remote production deployments.
- Standardize log tailing across multiple microservices.

### Known limitations
Requires `GNU Make` and `bash`. Help output is currently hardcoded to Russian. Does not support simultaneous multi-environment invocations.

## Requires

- Node.js
- sequelize-cli
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Makefile Creator skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this Makefile compare to one generated by a standard LLM prompt?

This skill generates Makefiles that use TTY-safe execution macros and specific security patterns, such as pipefail options and umask protection for database dumps, which standard LLM prompts often overlook.

### Which AI agents and environments are compatible with this skill?

It is designed to work with any AI agent that has file-system access or code generation capabilities, specifically targeting projects using Docker Compose, GNU Make, and Bash.

### Can I use this skill to update an existing Makefile or only to create new ones?

Yes, the skill can analyze your existing project structure, including `.env` files and `docker-compose.yml`, to append new targets like database migrations or log tailing to your current Makefile.

### How does the skill prevent accidental commands from running on the wrong environment?

The generated Makefiles include an 'env-required' guard that forces you to specify the target environment, preventing accidental execution of development commands against production stacks.

### Are there any specific OS requirements or language limitations for the output?

The skill is optimized for Linux and macOS environments using GNU Make and Bash; it currently generates the self-documenting help menu in Russian.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
