frontend-to-backend-requirements
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.
What this skill does
# 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.md` > **No 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: 1. **What is this?** — Screen, flow, component 2. **Who uses it?** — User type, permissions 3. **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`: ```markdown # 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: 1. Add responses to Discussion Log 2. Adjust requirements based on feedback 3. Mark resolved uncertainties 4. Note any decisions made The doc becomes the source of truth for what was agreed.
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.