frontend-to-backend

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

A command that turns frontend requirements into a structured request for a backend team to build or change an API.

In plain words
What is it for?
Use it to inspect related endpoints and prepare a backend handoff for new API routes, query parameters, or schema changes.
Why use it?
It removes guesswork about which data, filters, errors, and response formats the frontend needs.

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 related endpoints and prepare a backend handoff for new API routes, query parameters, or schema changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juanmhidalgo/claude-plugins/frontend-to-backend
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 frontend-to-backend

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/frontend-to-backend/github.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/frontend-to-backend)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/frontend-to-backend"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/frontend-to-backend/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 frontend-to-backend

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/frontend-to-backend"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/frontend-to-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 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,471 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.00042 $0.01471
Opus 5 $0.00021 $0.00736
Sonnet 5 $0.00008 $0.00294
Haiku 4.5 $0.00004 $0.00147

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

Security

Grade A, and why

frontend-to-backend 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/frontend-to-backend.md · 199 lines

How it starts

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

Frontend to Backend Handoff

Generate a structured prompt that a backend agent can use to implement API changes requested by frontend requirements.

Context

  • Current branch: !git branch --show-current

Target: $ARGUMENTS


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

Instructions

Step 1: Understand the Frontend Requirement

  1. If a file path is provided, read the relevant frontend code
  2. Identify what data the frontend needs:
    • What UI component or feature requires this?
    • What data is currently missing or insufficient?
    • What user action triggers this need?

Step 2: Analyze Existing APIs

  1. Search for related existing endpoints
  2. Determine if this can be solved by:
    • Extending an existing endpoint
    • Adding query parameters
    • Creating a new endpoint

Step 3: Define the Request

Document what the frontend needs:

  • Data fields required
  • Filtering/sorting/pagination needs
  • Expected response structure
  • Error scenarios to handle

Step 4: Generate Handoff Prompt

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


Handoff Prompt Output Format

# Backend Implementation: [Feature/API Name]

## Context

[1-2 sentences explaining the UI/UX requirement and why this API change is needed]

**Requesting team**: Frontend
**Priority**: [High | Medium | Low]
**Blocking**: [Yes/No - is frontend blocked waiting for this?]

## Requirement Summary

[Plain language description of what data the frontend needs and how it will be used]

## Proposed Endpoint(s)

### [METHOD] /api/suggested/path

**Purpose**: [What this endpoint does]

**Request**:
```json
{
  "field": "type - description",
  "optional_field?": "type - description"
}

Query Parameters (if applicable):

Parameter Type Required Description
param string No Description

Response:

{
  "data": {
    "field": "type - description"
  },
  "meta": {
    "total": "number - for paginated responses"
  }
}

Validation Requirements

  • [Field validation rules]
  • [Business logic constraints]
  • [Authorization requirements]

Error Scenarios

Scenario Expected Status Error Code
[Scenario] 400/404/etc ERROR_CODE

Performance Considerations

  • Expected call frequency: [e.g., "once per page load", "on every keystroke"]
  • Data volume: [e.g., "typically 10-50 items", "could be 1000+ records"]
  • Caching: [suggestions for caching strategy if applicable]

Alternatives Considered

[If applicable, mention alternatives that were ruled out and why]

Questions for Backend

  • [Any clarifications needed from backend team]

Frontend Implementation Timeline

[When frontend plans to integrate this - helps backend prioritize]

Read the full file on GitHub · 199 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 · 199 lines · 42 tokens per session scan A 35df72e2d2e4

Subscribe to this mod's changes

frontend-to-backend is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,471 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.