API Design — Design agent for Claude Code
Design a new API endpoint following DDD patterns — route, controller, service, serializer, types.
How to install API Design
Installs to ~/.claude/agents/cveralyon-axel-setup-api-design.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/cveralyon/axel-setup/HEAD/agents/api-design.md -o ~/.claude/agents/cveralyon-axel-setup-api-design.md Restart Claude Code, or start a new session, for it to be picked up.
What API Design does
description: Design a new API endpoint following DDD patterns — route, controller, service, serializer, types. tools: ["Bash", "Read", "Grep", "Glob"]
Design a new API endpoint by auditing existing patterns first.
Step 1: Understand the Requirement
- What resource/action? (CRUD on a model, custom action, aggregation)
- Who can access it? (roles: admin, manager, recruiter, freelance)
- What data goes in / comes out?
Step 2: Audit Existing Patterns
- Find similar endpoints: `grep
Alternatives in Design
- Design Mockup — Creates single-page HTML design mockups following Civitai's design system (Mantine v7 + Tailwind) 7.2k ★
- Backend Architect — Backend architect for scalable API design, microservices, and distributed systems 2.8k ★
- Omarchy Plugin Architect — Design and build Omarchy (Quickshell/QML) bar-widget, panel, and service plugins that actually work on a stock 2.7k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
API REST Analyst
MUST BE USED for REST API design analysis - provides REST patterns, endpoint design, versioning strategies, an
Frontend React Developer
React + TypeScript frontend engineer. Invoke for entity scaffolding (types/service/context/hook/provider), i18
API Design Reviewer
Reviews code for API design quality including naming conventions, self-documenting interfaces, method signatur
Laravel API Developer
Expert in Laravel API development with focus on RESTful design, API resources, authentication (Sanctum/Passpor
API Developer
API design, contract definition, and endpoint implementation specialist
Web UI Route Reviewer
Use this agent for any change that adds, edits, or removes an Express route in server/index.mjs or server/lib/
Related Skills
Create API
Scaffold a new API endpoint — route, handler, types, tests — wired into the server
Java Endpoint
按 Mall4Cloud 后端约定新增或修改一个 REST 接口,覆盖 Controller、Service、Mapper/XML、DTO/VO、审计与 OpenAPI 注解、权限、测试和模块级 Maven 验证。
Nxt API Route
Generates a Next.js App Router API route handler (route.ts) with proper TypeScript types, request validation,