teckedd-code2save/ai-build-tools/frontend-data-consumer
- community
Checking that the SKILL.md file is still in the repository.
Ingests backend API contracts and scaffolds high-quality, typed React/Vue components (Data Tables, Detail Cards, Forms) using a specific design system (like Tailwind or Shadcn/UI). Use when a user wants to build a UI for their backend API or data platform.
Install
npx vskill@latest install teckedd-code2save/ai-build-tools/frontend-data-consumerSKILL.md
Frontend Data Consumer
Automatically convert backend API contracts, database schemas, or ORM models into fully functional, strongly-typed frontend components. This skill is the perfect companion to the forge backend generator.
🎯 When to Use
- When the backend has been scaffolded and the user wants to start building the frontend features.
- When you need to generate a React or Vue component that reads or writes to a specific API endpoint.
- When generating admin dashboards, data tables, or forms based on database tables.
- Works perfectly alongside the
frontend-design-reviewskill to refine the generated UI.
🛠️ Step-by-Step Workflow
1. Analyze the Backend Contracts
- Locate the backend API routers/controllers, DTOs, or ORM schemas (e.g., Prisma schema, SQLAlchemy models).
- Understand the exact shape of the data returned by the
GETendpoints. - Understand the required payloads for the
POST/PUT/PATCHendpoints.
2. Scaffold Frontend API Hooks/Services
Once the data shape is known, generate the data-fetching layer in the frontend using modern libraries (e.g., React Query, SWR, or RTK Query for React; Vue Query for Vue).
Example (React Query):
3. Generate UI Components
Based on the API contracts, scaffold the necessary UI components. Always use the project's preferred styling solution (TailwindCSS, CSS Modules, Styled Components, Shadcn/UI, Material UI).
- Data Tables: Map array responses to robust data tables (with pagination and sorting if supported by the backend).
- Forms: Generate creation/edit forms using a library like
react-hook-formpaired withzodvalidation that matches the backend rules exactly. - Detail Views: Generate read-only detail cards for individual records.
4. Implement Loading & Error States
Never return a component that crashes when data is fetching or fails.
- Always handle the
isLoadingorisPendingstate with skeletons or spinners. - Always handle the
isErrorstate with a friendly error message or fallback UI.
5. Finalize UI Contracts (No Hardcoding)
Adhere strictly to this rule: Never hardcode static arrays representing business entities. The components must always consume the generated API hooks. If the backend endpoint doesn't exist yet, the hook should query a real endpoint path even if it currently 404s, so the wiring is ready to go.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/frontend-data-consumer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/teckedd-code2save/ai-build-tools/frontend-data-consumer)