/react-mock:update-data-modelfrom react-mock
Adds or modifies domain entities in a Zod-based data model. Guides creating new entities, adding fields, changing relationships, and updating enums with TypeScript interfaces.
Ships in react-mock. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
How to work with the domain model using Zod for schema validation and TypeScript for type definitions.
One entity per file with Zod schemas:
model/
├── index.ts
├── enums.ts
├── User.ts
├── Job.ts
└── Site.ts
Id suffiximport() typesmodel/YourEntity.ts with BaseSchema, Schema, types, and interface with navigation propertiesmodel/enums.ts if neededmodel/index.ts with exportsmodel/README.md Mermaid diagram| Type | Convention | Example |
|---|---|---|
| Foreign Key | entityNameId | userId, siteId |
| Navigation (1:1/many:1) | entityName | user, site |
| Navigation (1:many) | entityNames | jobs, submittedJobs |
| Enum | PascalCase | UserRole, JobStatus |
| Enum Values | SCREAMING_SNAKE_CASE | IN_PROGRESS |
z.string().email()
z.string().url()
z.string().min(1).max(255)
z.number().int().positive()
z.enum(['ACTIVE', 'INACTIVE'])
z.string().datetime()
z.array(z.string())
Id, always update index.tsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bitovi/ai-enablement-prompts --plugin react-mock3 skills in this plugin
/generate-sample-dataGenerate mock/sample data from Zod schemas for testing, development, and mocks. Use when creating sample data generators, setting up test fixtures, populating mock APIs, or generating realistic fake data for development./implement-featureEnd-to-end workflow for implementing a new UI feature in a mock app. Ensures data model alignment, sample data, UI/UX consistency, component reuse, and automated verification. Load for ANY UI change.Other plugins' skills for the same job