# Infrastructure agent

> Infrastructure agent is an open-source agent skill for developer tools. Sets up Docker, compose stacks, CI/CD and deploy configs for multi-agent builds. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/roles/infrastructure-agent
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** infrastructure-agent
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent the role of an infrastructure owner for a project built by several cooperating agents. It covers per-service Dockerfiles with pinned base images, non-root users and health checks, a docker-compose stack wired by service names and environment variables, a shared env example file, and a Makefile with common stack commands.

It also covers a CI workflow that runs install, lint, build and test in order, pushing images only from the default branch, plus an nginx reverse proxy when frontend and backend share one origin. Ownership boundaries are explicit: the agent writes infrastructure files and does not modify application code, and production deploys, publishing images and destructive volume operations require separate approval.

The skill expects a service map, port assignments and API or data contracts from the orchestrating lead, and it reports completion only after an independent QE review. It declares Read, Write, Edit, Bash, Glob and Grep as its tools.

## When your agent uses it

> Build containerization, service orchestration, CI/CD and deployment configuration in native orchestrator dispatch or explicitly requested solo infrastructure work. Production actions require approval; load it when the orchestrator assigns this role or the user asks for it.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/infrastructure-agent)
- [Asks for: Read, Write, Edit, Bash, Glob, Grep](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/roles/infrastructure-agent/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/infrastructure-agent)

## Features

- **Container image setup:** Writes per-service Dockerfiles with pinned versions, multi-stage builds, non-root users and health checks.
- **Compose stack orchestration:** Defines a docker-compose stack with env-driven ports, service-name networking and health-gated startup.
- **CI pipeline configuration:** Sets up a pull request workflow that runs lint, build and test in sequence and pushes images from the default branch.
- **Reverse proxy routing:** Builds an nginx config that proxies API and WebSocket paths and serves a single-page frontend.
- **Developer command shortcuts:** Provides Makefile or justfile targets for starting, stopping, rebuilding, tailing logs and resetting the stack.
- **Ownership-bound execution:** Keeps changes to infrastructure files, leaves application code read-only and requires approval for production actions.

## Good for

- Containerize a backend and frontend with Docker and a compose file
- Create a GitHub Actions workflow that lints, builds and tests on every pull request
- Write an nginx config that serves a built frontend and proxies /api to the backend
- Generate a .env.example listing every environment variable the services read
- Add a Makefile with up, down, logs and clean targets for a local stack

## Install

### Claude Code

This skill ships in the `skill-madness` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

Or copy only this skill to `~/.claude/skills/infrastructure-agent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/infrastructure-agent &&
cp -R "$tmp/skills/roles/infrastructure-agent" ~/.claude/skills/infrastructure-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/infrastructure-agent` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/infrastructure-agent` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/infrastructure-agent &&
cp -R "$tmp/skills/roles/infrastructure-agent" ~/.agents/skills/infrastructure-agent &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/infrastructure-agent` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/infrastructure-agent` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/infrastructure-agent &&
cp -R "$tmp/skills/roles/infrastructure-agent" ~/.cursor/skills/infrastructure-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/infrastructure-agent` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/roles/infrastructure-agent
```

Or copy the folder to `~/.gemini/skills/infrastructure-agent` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/infrastructure-agent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/infrastructure-agent &&
cp -R "$tmp/skills/roles/infrastructure-agent" ~/.copilot/skills/infrastructure-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/infrastructure-agent` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/roles/infrastructure-agent` into your agent's skills folder as `infrastructure-agent`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Infrastructure agent load?

It is meant for when an orchestrator assigns the infrastructure role or a user explicitly asks for it, and it is not auto-invoked.

### Does Infrastructure agent change application code?

No. The skill states it does not modify application code and treats application source as read-only.

### Can Infrastructure agent deploy to production on its own?

No. Production deploys, publishing images and destructive volume operations need separately scoped approval.

### Which tools does Infrastructure agent use?

The skill declares Read, Write, Edit, Bash, Glob and Grep.

### How do I install Infrastructure agent in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/infrastructure-agent to use it in all your projects, or to .claude/skills/infrastructure-agent in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Infrastructure agent run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Infrastructure agent?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Infrastructure agent?

The closest alternatives to Infrastructure agent are Container ops edho ferdian, AI team orchestration, Ci cd and automation, Ci cd and Enterprise agent ops.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Container ops edho ferdian](https://ai-powered.com/skills/container-ops-edho-ferdian): Container ops edho ferdian is an open-source agent skill for cloud and infrastructure.
- [AI team orchestration](https://ai-powered.com/skills/ai-team-orchestration): AI team orchestration is an open-source agent skill for developer tools.
- [Ci cd and automation](https://ai-powered.com/skills/ci-cd-and-automation-ajyadav013): Ci cd and automation is an open-source agent skill for developer tools.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Enterprise agent ops](https://ai-powered.com/skills/enterprise-agent-ops): Enterprise agent ops is an open-source agent skill for developer tools.
- [Deployment patterns](https://ai-powered.com/skills/deployment-patterns): Deployment patterns is an open-source agent skill for cloud and infrastructure.
- [GitHub workflow](https://ai-powered.com/skills/github-workflow): GitHub workflow is an open-source agent skill for developer tools.
- [Docker patterns](https://ai-powered.com/skills/docker-patterns): Docker patterns is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/infrastructure-agent
