typescript-type-safe-api-contracts
OfficialEnforce type-safe API contracts.
AuthorAgentient
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Type-safe API contracts reduce runtime errors by enforcing explicit return types and integrating Zod schemas for runtime validation, enabling safer frontend-backend boundaries.
Core Features & Use Cases
- Explicit Return Types: ensure functions return predictable, typed results across modules.
- Zod Integration: define schemas that are used for runtime validation and TypeScript inference.
- Generic Response Wrappers: unify success/error shapes to simplify API consumption.
Quick Start
Configure a new API contract by defining an explicit TypeScript return type and a Zod schema for the input, then wrap the outcome in a generic ApiResponse.
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: typescript-type-safe-api-contracts Download link: https://github.com/Agentient/vibekit/archive/main.zip#typescript-type-safe-api-contracts 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 471,000+ vetted skills library on demand.