contract-enforcement
CommunityGuarantee shared contracts every commit
Software Engineering#typescript#zod#server actions#schema validation#contract enforcement#shared contracts
Authordtaborda
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill ensures every cross-package data flow relies on the centralized @template/contracts definitions so inline DTOs and inconsistent schemas are caught early.
Core Features & Use Cases
- Strict imports: Every API-handling module must import DTOs, schemas, and response types from @template/contracts instead of defining them locally.
- Validation focus: Server Actions must wrap responses in ActionResult and validate inputs with shared Zod schemas, preventing bypassed checks.
- Use Case: While reviewing a pull request that adds a new server action and UI component, flag inline interfaces or z.object definitions and require shared contract usage.
Quick Start
Review the latest pull request for inline DTOs or z.object definitions and insist on @template/contracts imports before approving.
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: contract-enforcement Download link: https://github.com/dtaborda/startup-saas-template/archive/main.zip#contract-enforcement 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.