backend-to-frontend

backend-to-frontend is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 41 tokens per session (1,340 once invoked), scanned A, original, MIT.

A command that creates a frontend handoff after backend API changes have been implemented.

In plain words
What is it for?
Use it to inspect recent backend changes and produce TypeScript interfaces and implementation guidance for the frontend team.
Why use it?
It gives frontend developers a clear record of changed routes, data shapes, validation, errors, and compatibility risks.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the handoff plugin — 2 skills, 3 commands shipped together

Good fit Use it to inspect recent backend changes and produce TypeScript interfaces and implementation guidance for the frontend team.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juanmhidalgo/claude-plugins/backend-to-frontend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/juanmhidalgo/claude-plugins

Made for: Claude Code.

Or install handoff, the plugin that ships this one along with the rest of its 2 skills, 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backend-to-frontend

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/backend-to-frontend/github.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/backend-to-frontend)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/backend-to-frontend"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/backend-to-frontend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backend-to-frontend

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/backend-to-frontend"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/backend-to-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,340 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01340
Opus 5 $0.00020 $0.00670
Sonnet 5 $0.00008 $0.00268
Haiku 4.5 $0.00004 $0.00134

Measured 5d ago against content hash 1110a83c64cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

backend-to-frontend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

handoff/commands/backend-to-frontend.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backend to Frontend Handoff

Generate a structured prompt that a frontend agent can use to implement changes after backend API modifications.

Context

  • Current branch: !git branch --show-current
  • Recent commits: !git log --oneline -5

Target: $ARGUMENTS


<best_practices> @handoff/skills/api-change-documentation/SKILL.md </best_practices>

Instructions

Step 1: Identify API Changes

  1. If a file or endpoint path is provided, read the relevant files
  2. Use git diff to identify recent changes to API endpoints, schemas, or response structures
  3. Look for changes in:
    • Route/endpoint definitions
    • Request/response schemas
    • Validation rules
    • Error responses
    • Authentication/authorization changes

Step 2: Analyze the Changes

For each changed endpoint, document:

  • HTTP method and path
  • What changed (new field, removed field, type change, etc.)
  • Whether it's a breaking change
  • Any new error conditions

Step 3: Generate TypeScript Schema

Convert the updated response/request structures to TypeScript interfaces:

  • Use strict typing (no any)
  • Include JSDoc comments for non-obvious fields
  • Mark optional fields with ?
  • Include union types for enums

Step 4: Generate Handoff Prompt

Output the following structured prompt that can be given to a frontend agent:


Handoff Prompt Output Format

# Frontend Implementation: [Feature/Change Name]

## Context

[1-2 sentences explaining why this change was made and what business problem it solves]

## Changed Endpoints

### [METHOD] /api/path

**Change type**: [New endpoint | Modified response | Modified request | Deprecated]

**Summary**: [What changed in plain language]

## Updated TypeScript Schema

\`\`\`typescript
// [Filename suggestion, e.g., types/api/users.ts]

interface ResponseType {
  // ... generated types
}
\`\`\`

## Migration Guide

### Breaking Changes

- [ ] [List any breaking changes that require immediate attention]

### Non-Breaking Changes

- [ ] [List additive changes that are backwards compatible]

## Implementation Checklist

- [ ] Update API client types
- [ ] Update components consuming this data
- [ ] Handle new error cases
- [ ] Update tests
- [ ] [Any endpoint-specific tasks]

## Edge Cases to Handle

- [Null handling considerations]
- [Empty array vs null distinction]
- [Pagination changes if applicable]
- [Error state changes]

## Notes

[Any additional context the frontend developer should know]

Read the full file on GitHub · 181 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 181 lines · 41 tokens per session scan A 1110a83c64cd

Subscribe to this mod's changes

backend-to-frontend is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 1,340 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.