api-contract
CommunityEnsure API consistency: FastAPI & Next.js.
AuthorCleanExpo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents inconsistencies and runtime errors between your FastAPI backend API and your Next.js frontend by enforcing strict, typed API contracts.
Core Features & Use Cases
- Typed Contracts: Enforces Pydantic models on the backend and Zod schemas on the frontend for all API responses.
- Schema Synchronization: Ensures frontend and backend schemas match, preventing drift.
- Error Handling: Standardizes error response formats and documentation.
- Use Case: When a new API endpoint is created, this Skill ensures that the response structure defined in FastAPI's Pydantic model is precisely matched by a Zod schema on the frontend, guaranteeing type safety and predictable data handling.
Quick Start
Apply the api-contract skill to enforce typed API contracts between the FastAPI backend and Next.js frontend.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: api-contract Download link: https://github.com/CleanExpo/DR-NRPG/archive/main.zip#api-contract Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.