Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.
A Claude Code skill that generates comprehensive API handoff documentation for frontend developers after backend work is complete.
This skill automates the creation of structured API handoff documents that provide frontend developers (or their AI assistants) with complete business and technical context needed to build integrations and UI without requiring back-and-forth questions with backend developers.
Use this skill when:
Timing: Run this after completing backend implementation, before frontend development begins.
.claude/docs/ai/<feature-name>/api-handoff.mdBackend Code → Skill Analysis → Handoff Document → Frontend Implementation
The skill operates in "no-chat" mode: it produces only the handoff document without discussion or explanation.
For simple CRUD APIs with obvious validation and no complex business logic, the skill can skip the full template and provide just:
Frontend can infer the rest.
Automatically increments iteration suffixes (-v2, -v3) when regenerating documentation after feedback or changes.
User: "I just completed the expense approval API. Create handoff docs for frontend."
Skill Output: Creates `.claude/docs/ai/expense-approval/api-handoff.md` with:
- Business context about approval workflows
- POST /api/expenses/:id/approve endpoint details
- ExpenseDto and ApprovalDto models
- Status enums (pending, approved, rejected)
- Validation rules (amount limits, required fields)
- Edge cases (can only approve once, manager-only permission)
- Test scenarios for happy/error paths
User: "Document the user profile GET endpoint for frontend."
Skill Output: Creates minimal handoff with:
- GET /api/users/:id
- Example response JSON with user fields
- 404 for not found case
User: "Frontend asked about pagination. Update the handoff."
Skill Output: Creates `.claude/docs/ai/user-list/api-handoff-v2.md` with:
- Updated pagination parameters
- Response shape with page metadata
- Sorting options
The generated handoff follows this structure:
# API Handoff: [Feature Name]
## Business Context
[Problem, users, domain terms]
## Endpoints
### [METHOD] /path
- Purpose
- Auth requirements
- Request/Response examples
- Error cases
- Edge case notes
## Data Models / DTOs
[TypeScript interfaces]
## Enums & Constants
[Status codes, magic values, display labels]
## Validation Rules
[Frontend should mirror for UX]
## Business Logic & Edge Cases
[Non-obvious behaviors]
## Integration Notes
- Recommended flow
- Optimistic UI guidance
- Caching strategy
- Real-time considerations
## Test Scenarios
[Key acceptance criteria]
## Open Questions / TODOs
[Unresolved items]
Documents are saved to:
.claude/docs/ai/<feature-name>/api-handoff.md
Subsequent versions:
.claude/docs/ai/<feature-name>/api-handoff-v2.md
.claude/docs/ai/<feature-name>/api-handoff-v3.md
The skill deliberately excludes:
Focus is purely on integration contract and business context.
Here's a sample of what the skill generates:
# API Handoff: Expense Approval
## Business Context
Employees submit expenses for manager approval. Managers review and approve/reject
with optional comments. Approved expenses move to accounting for reimbursement.
Domain terms: "Submitter" (employee), "Approver" (manager), "Reimbursable" (approved).
## Endpoints
### POST /api/expenses/:id/approve
- **Purpose**: Approve or reject an expense submission
- **Auth**: Manager role required
- **Request**:
```json
{
"decision": "approved | rejected",
"comment": "string (optional, max 500 chars)"
}
{
"id": 123,
"status": "approved",
"approvedBy": "Jane Smith",
"approvedAt": "2026-01-18T10:30:00Z"
}
interface ExpenseApprovalDto {
decision: 'approved' | 'rejected';
comment?: string; // max 500 chars
}
interface ExpenseDto {
id: number;
status: 'pending' | 'approved' | 'rejected';
approvedBy?: string;
approvedAt?: string; // ISO 8601
}
decision: Required, must be 'approved' or 'rejected'comment: Optional, max 500 characters, trimmed
## Related Skills
- **frontend-to-backend-requirements**: Documents frontend data needs for backend developers (reverse direction)
- **code-reviewer**: Can review the generated handoff for completeness
- **dev-spec**: Creates full development specs that may include API design
## Tips
1. **Keep it updated**: Regenerate when API contracts change
2. **Link from PRs**: Reference handoff doc in backend PR descriptions
3. **Version control**: Commit handoff docs to git for team visibility
4. **Frontend feedback loop**: If frontend has questions, it means the handoff missed something—update it
5. **Use as spec**: Can also generate handoff BEFORE implementation as API specification
## Invocation
```bash
# As a Claude Code skill
/backend-to-frontend-handoff-docs
# Or via natural language
"Create API handoff documentation for the user profile endpoints"
"Document the new authentication API for frontend"
"Generate frontend handoff for expense approval feature"
npx skills add davila7/backend-to-frontend-handoff-docs下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer