Catalog
softaworks/backend-to-frontend-handoff-docs

softaworks

backend-to-frontend-handoff-docs

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'.

global
0installs0uses~1.3k
v1.1Saved Apr 20, 2026

API Handoff Mode

No Chat Output: Produce the handoff document only. No discussion, no explanation—just the markdown block saved to the handoff file.

You are a backend developer completing API work. Your task is to produce a structured handoff document that gives frontend developers (or their AI) full business and technical context to build integration/UI without needing to ask backend questions.

When to use: After completing backend API work—endpoints, DTOs, validation, business logic—run this mode to generate handoff documentation.

Simple API shortcut: If the API is straightforward (CRUD, no complex business logic, obvious validation), skip the full template—just provide the endpoint, method, and example request/response JSON. Frontend can infer the rest.

Goal

Produce a copy-paste-ready handoff document with all context a frontend AI needs to build UI/integration correctly and confidently.

Inputs

  • Completed API code (endpoints, controllers, services, DTOs, validation).
  • Related business context from the task/user story.
  • Any constraints, edge cases, or gotchas discovered during implementation.

Workflow

  1. Collect context — confirm feature name, relevant endpoints, DTOs, auth rules, and edge cases.
  2. Create/update handoff file — write the document to .claude/docs/ai/<feature-name>/api-handoff.md. Increment the iteration suffix (-v2, -v3, …) if rerunning after feedback.
  3. Paste template — fill every section below with concrete data. Omit subsections only when truly not applicable (note why).
  4. Double-check — ensure payloads match actual API behavior, auth scopes are accurate, and enums/validation reflect backend logic.

Output Format

Produce a single markdown block structured as follows. Keep it dense—no fluff, no repetition.


# API Handoff: [Feature Name]

## Business Context
[2-4 sentences: What problem does this solve? Who uses it? Why does it matter? Include any domain terms the frontend needs to understand.]

## Endpoints

### [METHOD] /path/to/endpoint
- **Purpose**: [1 line: what it does]
- **Auth**: [required role/permission, or "public"]
- **Request**:
  ```json
  {
    "field": "type — description, constraints"
  }
  • Response (success):
    {
      "field": "type — description"
    }
    
  • Response (error): [HTTP codes and shapes, e.g., 422 validation, 404 not found]
  • Notes: [edge cases, rate limits, pagination, sorting, anything non-obvious]

[Repeat for each endpoint]

Data Models / DTOs

[List key models/DTOs the frontend will receive or send. Include field types, nullability, enums, and business meaning.]

// Example shape for frontend typing
interface ExampleDto {
  id: number;
  status: 'pending' | 'approved' | 'rejected';
  createdAt: string; // ISO 8601
}

Enums & Constants

[List any enums, status codes, or magic values the frontend needs to know. Include display labels if relevant.]

Value Meaning Display Label
pending Awaiting review Pending

Validation Rules

[Summarize key validation rules the frontend should mirror for UX—required fields, min/max, formats, conditional rules.]

Business Logic & Edge Cases

  • [Bullet each non-obvious behavior, constraint, or gotcha]
  • [e.g., "User can only submit once per day", "Soft-deleted items excluded by default"]

Integration Notes

  • Recommended flow: [e.g., "Fetch list → select item → submit form → poll for status"]
  • Optimistic UI: [safe or not, why]
  • Caching: [any cache headers, invalidation triggers]
  • Real-time: [websocket events, polling intervals if applicable]

Test Scenarios

[Key scenarios frontend should handle—happy path, errors, edge cases. Use as acceptance criteria or test cases.]

  1. Happy path: [brief description]
  2. Validation error: [what triggers it, expected response]
  3. Not found: [when 404 is returned]
  4. Permission denied: [when 403 is returned]

Open Questions / TODOs

[Anything unresolved, pending PM decision, or needs frontend input. If none, omit section.]


---

## Rules
- **NO CHAT OUTPUT**—produce only the handoff markdown block, nothing else.
- Be precise: types, constraints, examples—not vague prose.
- Include real example payloads where helpful.
- Surface non-obvious behaviors—don't assume frontend will "just know."
- If backend made trade-offs or assumptions, document them.
- Keep it scannable: headers, tables, bullets, code blocks.
- No backend implementation details (no file paths, class names, internal services) unless directly relevant to integration.
- If something is incomplete or TBD, say so explicitly.

## After Generating
Write the final markdown into the handoff file only—do not echo it in chat. (If the platform requires confirmation, reference the file path instead of pasting contents.)
Files2
2 files · 9.7 KB

Select a file to preview

Overall Score

82/100

Grade

B

Good

Safety

92

Quality

84

Clarity

88

Completeness

72

Summary

This skill generates structured API handoff documentation that frontend developers need to build integrations after backend work is complete. It analyzes completed backend code (endpoints, DTOs, validation) and produces a markdown document covering business context, endpoint specifications, data models, validation rules, edge cases, and integration guidance, saved to `.claude/docs/ai/<feature-name>/api-handoff.md`.

Detected Capabilities

Analyze backend code and extract API specificationsGenerate structured markdown documentationCreate and write files to project directoriesVersion handoff documents with iteration suffixesExtract and document validation rules and business logicFormat TypeScript interfaces and data modelsCreate test scenario guidance for frontend acceptance criteria

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

api handoff documentationfrontend integration specendpoint documentationapi contract definitionbackend to frontend

Risk Signals

INFO

File writes to `.claude/docs/ai/<feature-name>/` directory structure

SKILL.md: Workflow section, Output Format section
INFO

Creates versioned files with `-v2`, `-v3` suffixes for iteration tracking

SKILL.md: Workflow step 2, After Generating section
INFO

Produces markdown-only output (no binary files or shell commands)

SKILL.md: Rules section 'NO CHAT OUTPUT'
INFO

No external network requests, API calls, or outbound data transmission

Entire skill content
INFO

No credential, environment variable, or secrets access documented

Entire skill content

Use Cases

  • Document completed backend API for frontend team integration
  • Create handoff specs after finishing endpoint implementation
  • Generate API contracts with business context for frontend developers
  • Version and iterate API documentation after feedback from frontend
  • Provide TypeScript interfaces and validation rules to frontend

Quality Notes

  • Comprehensive skill documentation: README provides clear purpose, use cases, workflow, and examples
  • Well-structured template with all necessary sections (Business Context, Endpoints, DTOs, Validation, Edge Cases, Integration Notes, Test Scenarios)
  • Includes practical shortcuts for simple CRUD APIs, reducing unnecessary verbosity
  • Excellent example output demonstrating the quality and specificity expected from handoff documents
  • Clear rules section emphasizing precision over prose and surface-level gotchas
  • Good guidance on when to use the skill and timing relative to development lifecycle
  • Deliberate scope boundaries documented (excludes implementation details, infrastructure, DB schema)
  • Version management strategy clearly explained for iterating after feedback
  • No error handling guidance provided—skill assumes well-formed, completed backend code
  • Missing edge case handling: skill does not document what to do if backend code is incomplete, endpoints are not yet implemented, or API contracts are still in flux
  • No guidance on handling complex scenarios like batch endpoints, streaming responses, webhooks, or async operations beyond 'real-time' mention
Model: claude-haiku-4-5-20251001Analyzed: Apr 20, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

v1.1

Content updated

2026-04-20

Latest
v1.0

No changelog

2026-04-12

Add softaworks/backend-to-frontend-handoff-docs to your library

Command Palette

Search for a command to run...