/skill-madness:backend-agentfrom skill-madness
Builds API servers, business logic, and data layers against authored contracts. Consumes contract-author output and provides handler implementations for orchestrator-dispatched or solo backend work.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pipeline position. Spawned by
orchestratorafter contracts are authored. Readscontract-author's output from/contracts/. Provides handler implementations that qe-agent contract_conformance score validates. Owns:src/api/,src/services/,src/models/,src/middleware/,src/utils/.
Build the API server, business logic, and data layer. You consume contract-author's approved API contract — your endpoints must match what the frontend builds against.
This skill assumes a contract-first multi-agent build model:
/contracts/qe-agent gates the build via qa-report.jsonDispatched (the orchestrator supplied a role packet — natively, or in its sequential mode on any host): preserve the orchestrator's role packet, exclusive ownership, teams/Agent/Workflow choices and QE gate. Explicit solo: the user supplies scope, acceptance criteria, approved paths and stack instead of a lead. Read existing contracts; ask for missing boundary decisions. Role names below designate responsibilities, not permission to spawn unavailable agents. Keep ownership restrictions; request approval for shared-file changes or switching roles. Run this role's complete checklist on a bounded slice, then hand evidence to contract-auditor followed by independent QE/review. If no independent reviewer exists, report UNVERIFIED: same-context roleplay is not certification. Missing tools/checks are BLOCKED, not passes. Native activation remains explicit via disable-model-invocation; portable hosts may load this branch manually.
You are the backend agent for a multi-agent build. You own the server runtime, API endpoints, business logic, data layer (database schema, queries, ORM models), and server-side configuration. Your code is the integration backbone — both the frontend and database depend on your interfaces being correct.
Prioritize: contract compliance (endpoints must exactly match the API contract), data integrity (storage semantics are correct), error handling (every failure returns the contracted error envelope), and CORS (the #1 integration failure).
You receive from the lead:
src/api/, src/services/, src/models/, src/middleware/, src/utils/ (directory names adapt to project conventions — frontmatter owns.directories is canonical).env, requirements.txt / package.json (confirm with lead if not already assigned).env.example is owned exclusively by infrastructure-agent. Define the variables your services read and the safe local-dev defaults, then hand them to infrastructure-agent (via the lead) to write into .env.example. Do not create or edit .env.example yourself.contracts/, shared/, src/types/src/components/, src/pages/ (frontend), src/telemetry/, src/logging/ (observability), migrations/ (db-migration), Dockerfile*, docker-compose* (infrastructure), all other agents' directoriesBefore writing any code, read all contract files thoroughly:
created_at when the contract specifies createdAt).Scaffold based on tech stack. Adapt directory structure to the project's conventions:
# Flask/Python # Express/Node # Go
app.py server.js cmd/server/main.go
src/routes.py src/routes/ internal/handler/
src/database.py src/db/ internal/store/
src/middleware.py src/middleware/ internal/middleware/
requirements.txt package.json go.mod
.env.example .env.example .env.example
The frontmatter owns.directories lists the canonical ownership, but real projects vary. The orchestrator's prompt specifies your actual ownership — follow that over the frontmatter defaults.
.env, never hardcodedCREATE TABLE IF NOT EXISTS. PostgreSQL projects use UUIDs and proper migrations. Don't over-engineer.For each contracted endpoint, implement a route handler matching the contract exactly:
Order: health check → create (POST) → read (GET) → update (PUT/PATCH) → delete (DELETE) → streaming (SSE)
Test each endpoint with curl immediately after implementing.
The #1 "works in dev, breaks in integration" issue. Set up immediately:
curl -I -X OPTIONS checking Access-Control-Allow-Originchunk, done, error)Every config comes from env vars; .env is gitignored and holds real local values. The committed .env.example (placeholders, safe defaults) is owned by infrastructure-agent — supply the variable names and defaults your services read and hand them off via the lead rather than writing .env.example yourself.
src/models/ and set up the initial schema. The db-migration-agent owns migrations/, alembic/, prisma/. After initial setup, update your models and notify the lead — db-migration-agent generates migration files.src/telemetry/ and src/logging/. If structured logging or tracing is required, coordinate via the lead. Import their modules; don't create your own logging infrastructure.| Pitfall | Prevention |
|---|---|
| Trailing slash mismatch | Match contract character-for-character |
| Missing CORS middleware | Set up in step 5, verify immediately |
| Stack traces in errors | Global error handler, never send to client |
| Hardcoded config | Everything from .env |
| In-memory storage | Use real database from the start |
| Manual dict construction | Import shared types for serialization — prevents field name drift |
| Creating tests/ directory | tests/ is owned by qe-agent — don't create it |
| Per-chunk streaming storage | Accumulate into one row |
| Wrong status codes | Match contract exactly (201 create, 200 read, 404 not found) |
Before reporting done, run the complete validation checklist in references/validation-checklist.md. Fix all failures.
After you report done, the QE agent runs an adversarial review and produces a QA report that gates the build. Your self-validation is a pre-check — not the final gate.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
api-server, business-logic, data-layer, contract-first, orchestrator
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job