# Backend agent

> Backend agent is an open-source agent skill for developer tools. Guides an AI agent to build API servers, business logic and data layers from contracts. 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/backend-agent
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** backend-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 sets up a backend role for an agent working inside a contract-first, multi-agent build. The agent reads the authored API and data contracts and shared types before writing code, then implements endpoints, storage functions and error handling so they match those contracts exactly.

The workflow covers scaffolding the project around the tech stack, creating the database schema, implementing routes in a set order (health check, create, read, update, delete, then streaming), and enforcing a standard error envelope. It also calls for CORS configuration checked with OPTIONS requests, and for configuration read only from environment variables. Each endpoint is expected to be exercised with real requests before it counts as done.

The skill is written to run either under an orchestrator that dispatches a role packet or when a user asks for solo backend work with their own scope and stack. It expects a project with contract files and access to shell tools such as curl and test runners, and it notes that independent review by a separate QA step is still required.

## When your agent uses it

> Build API servers, business logic and data layers against authored contracts. Use in native orchestrator dispatch or explicitly requested solo backend implementation; 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/backend-agent)
- [Asks for: Read, Write, Edit, Bash, Glob, Grep](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/roles/backend-agent/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/backend-agent)

## Features

- **Contract-first endpoint implementation:** Routes are built to match the API contract's paths, methods, status codes and response shapes exactly.
- **Database schema and data layer:** Covers schema setup, function signatures from the data contract, storage semantics and connection config from env vars.
- **Standard error handling:** Global handling returns the contracted error envelope for validation, not-found and server failures without leaking stack traces.
- **CORS setup and verification:** Configures allowed origins, methods and headers and checks them with OPTIONS requests.
- **Streaming responses:** Guidance for server-sent events using the contracted event types and accumulating streamed output into one stored record.
- **Ownership and coordination rules:** Defines which directories the agent may edit and when shared files or contract changes must go through the lead.

## Good for

- Implement REST endpoints from an approved API contract in a Flask or Express project
- Set up a SQLite or PostgreSQL data layer that matches a data contract
- Add a global error handler that returns a consistent error format
- Fix CORS errors blocking a frontend from calling the backend
- Add server-sent event streaming to an existing API

## 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/backend-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/backend-agent &&
cp -R "$tmp/skills/roles/backend-agent" ~/.claude/skills/backend-agent &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/backend-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/backend-agent &&
cp -R "$tmp/skills/roles/backend-agent" ~/.agents/skills/backend-agent &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/backend-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/backend-agent &&
cp -R "$tmp/skills/roles/backend-agent" ~/.cursor/skills/backend-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/backend-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/backend-agent
```

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

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/backend-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/backend-agent &&
cp -R "$tmp/skills/roles/backend-agent" ~/.copilot/skills/backend-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/backend-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/backend-agent` into your agent's skills folder as `backend-agent`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which directories does Backend agent let the agent edit?

By default it owns src/api/, src/services/, src/models/, src/middleware/ and src/utils/, with contracts, shared and src/types/ read-only. The orchestrator's prompt can change these boundaries.

### Does Backend agent need a multi-agent setup?

No. It can run when dispatched by an orchestrator or when a user explicitly requests solo backend work and supplies the scope, stack and approved paths.

### Does Backend agent create tests or the env example file?

No. The skill says tests belong to another agent and that the committed .env.example file is handled by the infrastructure role.

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

Copy the skill folder from GitHub to ~/.claude/skills/backend-agent to use it in all your projects, or to .claude/skills/backend-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 Backend 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 Backend 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 Backend agent?

The closest alternatives to Backend agent are Frontend agent, Backend engineering edho ferdian, Backend patterns, API integration and Backend patterns.

## Where this comes from

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

## Alternatives

- [Frontend agent](https://ai-powered.com/skills/frontend-agent): Frontend agent is an open-source agent skill for developer tools.
- [Backend engineering edho ferdian](https://ai-powered.com/skills/backend-engineering-edho-ferdian): Backend engineering edho ferdian is an open-source agent skill for developer tools.
- [Backend patterns](https://ai-powered.com/skills/backend-patterns-fmarzochi): Backend patterns is an open-source agent skill for developer tools.
- [API integration](https://ai-powered.com/skills/api-integration-ajyadav013): API integration is an open-source agent skill for developer tools.
- [Backend patterns](https://ai-powered.com/skills/backend-patterns): Backend patterns is an open-source agent skill for developer tools.
- [Contract author](https://ai-powered.com/skills/contract-author): Contract author is an open-source agent skill for developer tools.
- [API engineer](https://ai-powered.com/skills/api-engineer): API engineer is an open-source agent skill for legal and government.
- [Backend patterns](https://ai-powered.com/skills/backend-patterns-abdullayevtemurmalik): Backend patterns is an open-source agent skill for developer tools.

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