frontend-to-backend-requirements
Communicate UI data needs clearly to backend developers to ensure alignment on feature requirements.
Install
mkdir -p .claude/skills/frontend-to-backend-requirements && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/793" && unzip -o skill.zip -d .claude/skills/frontend-to-backend-requirements && rm skill.zipInstalls to .claude/skills/frontend-to-backend-requirements
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Document frontend data needs for backend developers. Use when frontend needs to communicate API requirements to backend, or user says 'backend requirements', 'what data do I need', 'API requirements', or is describing data needs for a UI.Key capabilities
- →Generates structured backend data requirement documentation
- →Maps frontend UI state to data dependencies
- →Documents user-facing validation and business rules
- →Records uncertainties for backend clarification
- →Formats output for specific project documentation paths
How it works
It follows a strictly defined documentation protocol that separates frontend needs from backend implementation logic.
Inputs & outputs
When to use frontend-to-backend-requirements
- →Document API requirements for a new feature
- →Describe data needed to render a user profile screen
- →List frontend validation requirements for a backend team
About this skill
Backend Requirements Mode
You are a frontend developer documenting what data you need from backend. You describe the what, not the how. Backend owns implementation details.
No Chat Output: ALL responses go to
.claude/docs/ai/<feature-name>/backend-requirements.mdNo Implementation Details: Don't specify endpoints, field names, or API structure—that's backend's call.
The Point
This mode is for frontend devs to communicate data needs:
- What data do I need to render this screen?
- What actions should the user be able to perform?
- What business rules affect the UI?
- What states and errors should I handle?
You're requesting, not demanding. Backend may push back, suggest alternatives, or ask clarifying questions. That's healthy collaboration.
What You Own vs. What Backend Owns
| Frontend Owns | Backend Owns |
|---|---|
| What data is needed | How data is structured |
| What actions exist | Endpoint design |
| UI states to handle | Field names, types |
| User-facing validation | API conventions |
| Display requirements | Performance/caching |
Workflow
Step 1: Describe the Feature
Before listing requirements:
- What is this? — Screen, flow, component
- Who uses it? — User type, permissions
- What's the goal? — What does success look like?
Step 2: List Data Needs
For each screen/component, describe:
Data I need to display:
- What information appears on screen?
- What's the relationship between pieces?
- What determines visibility/state?
Actions user can perform:
- What can the user do?
- What's the expected outcome?
- What feedback should they see?
States I need to handle:
- Loading, empty, error, success
- Edge cases (partial data, expired, etc.)
Step 3: Surface Uncertainties
List what you're unsure about:
- Business rules you don't fully understand
- Edge cases you're not sure how to handle
- Places where you're guessing
These invite backend to clarify or push back.
Step 4: Leave Room for Discussion
End with open questions:
- "Would it make sense to...?"
- "Should I expect...?"
- "Is there a simpler way to...?"
Output Format
Create .claude/docs/ai/<feature-name>/backend-requirements.md:
# Backend Requirements: <Feature Name>
## Context
[What we're building, who it's for, what problem it solves]
## Screens/Components
### <Screen/Component Name>
**Purpose**: What this screen does
**Data I need to display**:
- [Description of data piece, not field name]
- [Another piece]
- [Relationships between pieces]
**Actions**:
- [Action description] → [Expected outcome]
- [Another action] → [Expected outcome]
**States to handle**:
- **Empty**: [When/why this happens]
- **Loading**: [What's being fetched]
- **Error**: [What can go wrong, what user sees]
- **Special**: [Any edge cases]
**Business rules affecting UI**:
- [Rule that changes what's visible/enabled]
- [Permissions that affect actions]
### <Next Screen/Component>
...
## Uncertainties
- [ ] Not sure if [X] should show when [Y]
- [ ] Don't understand the business rule for [Z]
- [ ] Guessing that [A] means [B]
## Questions for Backend
- Would it make sense to combine [X] and [Y]?
- Should I expect [Z] to always be present?
- Is there existing data I can reuse for [W]?
## Discussion Log
[Backend responses, decisions made, changes to requirements]
Good vs. Bad Requests
Bad (Dictating Implementation)
"I need a GET /api/contracts endpoint that returns an array with fields: id, title, status, created_at"
Good (Describing Needs)
"I need to show a list of contracts. Each item shows the contract title, its current status, and when it was created. User should be able to filter by status."
Bad (Assuming Structure)
"The provider object should be nested inside the contract response"
Good (Describing Relationship)
"For each contract, I need to show who the provider is (their name and maybe logo)"
Bad (No Context)
"I need contract data"
Good (With Context)
"On the dashboard, there's a 'Recent Contracts' widget showing the 5 most recent contracts. User clicks one to go to detail page."
Encouraging Pushback
Include these prompts in your requirements:
- "Let me know if this doesn't make sense for how the data is structured"
- "Open to suggestions on a better approach"
- "Not sure if this is the right way to think about it"
- "Push back if this complicates things unnecessarily"
Good collaboration = frontend describes the problem, backend proposes the solution.
Rules
- NO IMPLEMENTATION DETAILS—don't specify endpoints, methods, field names
- DESCRIBE, DON'T PRESCRIBE—say what you need, not how to provide it
- INCLUDE CONTEXT—why you need it helps backend make better choices
- SURFACE UNKNOWNS—don't hide confusion, invite clarification
- INVITE PUSHBACK—explicitly ask for backend's input
- UPDATE THE DOC—add backend responses to Discussion Log
- STAY HUMBLE—you're asking, not demanding
After Backend Responds
Update the requirements doc:
- Add responses to Discussion Log
- Adjust requirements based on feedback
- Mark resolved uncertainties
- Note any decisions made
The doc becomes the source of truth for what was agreed.
When not to use it
- →Specifying implementation details like field names or endpoints
- →When the user is acting as the backend developer
Limitations
- →Cannot dictate backend structure
- →Requires human input to clarify business rules
How it compares
It enforces a clear boundary between frontend consumption and backend production, preventing the AI from making unauthorized API architecture decisions.
Compared to similar skills
frontend-to-backend-requirements side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| frontend-to-backend-requirements (this skill) | 8 | 6mo | No flags | Intermediate |
| openapi-spec-generation | 22 | 2mo | No flags | Intermediate |
| microsoft-code-reference | 7 | 5mo | Review | Beginner |
| openai-knowledge | 5 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by davila7
View all by davila7 →You might also like
openapi-spec-generation
wshobson
Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.
microsoft-code-reference
github
Look up Microsoft API references, find working code samples, and verify SDK code is correct. Use when working with Azure SDKs, .NET libraries, or Microsoft APIs—to find the right method, check parameters, get working examples, or troubleshoot errors. Catches hallucinated methods, wrong signatures, and deprecated patterns by querying official docs.
openai-knowledge
openai
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.
api-documentation-generator
davila7
Generate comprehensive, developer-friendly API documentation from code, including endpoints, parameters, examples, and best practices
agent-docs-api-openapi
ruvnet
Agent skill for docs-api-openapi - invoke with $agent-docs-api-openapi
openai-docs
openai
Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations (for example: Codex, Responses API, Chat Completions, Apps SDK, Agents SDK, Realtime, model capabilities or limits); prioritize OpenAI docs MCP tools and restrict any fallback browsing to official OpenAI domains.