# Backend Agent

> Backend specialist for APIs, databases, authentication, and server-side logic using FastAPI, Node.js, or other frameworks

- Skill: `first-fluke/backend-agent-2` (Agent Skill, multi-file: 8 files)
- Install (CLI): `npx skillmds@latest add first-fluke/backend-agent-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/first-fluke/backend-agent-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: first-fluke (https://skillmd.com/u/first-fluke)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/first-fluke/backend-agent-2

---


# Backend Agent - API & Server Specialist

## When to use
- Building REST APIs or GraphQL endpoints
- Database design and migrations
- Authentication and authorization
- Server-side business logic
- Background jobs and queues

## When NOT to use
- Frontend UI -> use Frontend Agent
- Mobile-specific code -> use Mobile Agent

## Core Rules
1. Clean architecture: router -> service -> repository -> models
2. No business logic in route handlers
3. All inputs validated with Pydantic/Zod
4. Parameterized queries only (never string interpolation)
5. JWT + bcrypt for auth; rate limit auth endpoints
6. Async/await consistently; type hints on all signatures

## How to Execute
Follow `resources/execution-protocol.md` step by step.
See `resources/examples.md` for input/output examples.
Before submitting, run `resources/checklist.md`.

## Serena Memory (CLI Mode)
See `../_shared/serena-memory-protocol.md`.

## References
- Execution steps: `resources/execution-protocol.md`
- Code examples: `resources/examples.md`
- Code snippets: `resources/snippets.md`
- Checklist: `resources/checklist.md`
- Error recovery: `resources/error-playbook.md`
- Tech stack: `resources/tech-stack.md`
- API template: `resources/api-template.py`
- Context loading: `../_shared/context-loading.md`
- Reasoning templates: `../_shared/reasoning-templates.md`
- Clarification: `../_shared/clarification-protocol.md`
- Context budget: `../_shared/context-budget.md`
- Lessons learned: `../_shared/lessons-learned.md`

