Agent skill

Update Data Model

by bitovi in bitovi/ai-enablement-prompts

Add or modify domain entities in the data model using Zod schemas.

MITAuto-check passedFrontend & Design

Install Update Data Model

skills CLI
$ npx skills add bitovi/ai-enablement-prompts --skill update-data-model -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bitovi/ai-enablement-prompts update-data-model --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/react-mock/skills/update-data-model .claude/skills/update-data-model && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
update-data-model
GitHub stars
121
Token cost
~588 tokens
SKILL.md length
241 words
Files
1
Skills in repo
40
Repo updated
First seen
Licence
MIT

At a glance

Add or modify domain entities in the data model using Zod schemas.

  • Works in 5 steps: Zod for validation (base schemas, no… → TypeScript interfaces for relationships… → Foreign keys end with Id suffix → …
  • Creating new entities
  • SKILL.md covers Model Architecture, When to Use, Adding a New Entity and Adding a Field to an Existing…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Update Data Model is an agent skill from bitovi/ai-enablement-prompts. Add or modify domain entities in the data model using Zod schemas. Use when creating new entities, adding fields, changing relationships, or updating the domain model structure.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Forms and validation. It works with Zod. The repository describes itself as: Prompts Bitovi uses for software development. The licence is MIT.

When your agent uses it

  • Creating new entities
  • Changing relationships
  • Updating the domain model structure

Example prompts

  • “/update-data-model”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Zod for validation (base schemas, no relationships)
  2. TypeScript interfaces for relationships (extend base types)
  3. Foreign keys end with Id suffix
  4. Navigation properties use full entity names
  5. Circular references use import() types

What it can do on your machine

Read from SKILL.md and the folder at commit df229b1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Update Data Model loads about 588 tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 241 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~588

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bitovi/ai-enablement-prompts at commit df229b1, republished under its MIT licence (© bitovi). 241 words, ~588 tokens.

Download SKILL.mdSave it as .claude/skills/update-data-model/SKILL.md (or your agent's skills folder).
name
update-data-model
description
Add or modify domain entities in the data model using Zod schemas. Use when creating new entities, adding fields, changing relationships, or updating the domain model structure.

Skill: Updating the Data Model

How to work with the domain model using Zod for schema validation and TypeScript for type definitions.

Model Architecture

One entity per file with Zod schemas:

model/
├── index.ts
├── enums.ts
├── User.ts
├── Job.ts
└── Site.ts
Key Principles
  1. Zod for validation (base schemas, no relationships)
  2. TypeScript interfaces for relationships (extend base types)
  3. Foreign keys end with Id suffix
  4. Navigation properties use full entity names
  5. Circular references use import() types

When to Use

  • Adding new entities, fields, relationships
  • Changing enums or validation rules
  • Renaming fields or entities

Adding a New Entity

  1. Create model/YourEntity.ts with BaseSchema, Schema, types, and interface with navigation properties
  2. Add enum to model/enums.ts if needed
  3. Update model/index.ts with exports
  4. Update related entities with inverse navigation properties
  5. Update model/README.md Mermaid diagram

Adding a Field to an Existing Entity

  1. Update Base Schema
  2. TypeScript types auto-update
  3. Update mock data in handlers
  4. Update Storybook stories

Field Naming Conventions

TypeConventionExample
Foreign KeyentityNameIduserId, siteId
Navigation (1:1/many:1)entityNameuser, site
Navigation (1:many)entityNamesjobs, submittedJobs
EnumPascalCaseUserRole, JobStatus
Enum ValuesSCREAMING_SNAKE_CASEIN_PROGRESS

Common Validation Patterns

typescript
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())

Common Mistakes

  • ❌ Don't mix FK and navigation property names
  • ❌ Don't add relationships to Zod schemas (use TS interfaces)
  • ❌ Don't forget to update index.ts
  • ❌ Don't forget to update mock data

Summary

  • One entity per file, Zod for base fields, TS interfaces for relationships
  • FK fields end with Id, always update index.ts
  • Update mock data and stories after changes

© bitovi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/react-mock/skills/update-data-model of bitovi/ai-enablement-prompts.

Open the folder on GitHubat commit df229b1

Compare with similar skills

Update Data Model next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Update Data Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Update Data Model this skillbitovi/ai-enablement-prompts121—~588Automated safety check: PassMIT
World Book Skillecho-xianyu/worldbook-skill211—~1.8kAutomated safety check: PassCustom licence
Reglevictorgarciaesgi/regle506—~840Automated safety check: PassMIT
Buzzformbuildnbuzz/buzzform101—~1.5kAutomated safety check: PassMIT
Regle Migrate Vuelidatevictorgarciaesgi/regle506—~752Automated safety check: PassMIT
Shared SchemasInsForge/InsForge13k—~628Automated safety check: PassApache-2.0

Similar skills

  • World Book Skill

    echo-xianyu/worldbook-skill

    Create and manage SillyTavern Character Cards (角色卡) and World Books (世界书).

    211 GitHub stars~1.8k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Regle

    victorgarciaesgi/regle

    Core Regle form validation in Vue 3 — setup with useRegle, the reactive r$ object, validation properties, displaying errors, and modifiers.

    506 GitHub stars~840 tokensUpdated 9 days ago
    Frontend & DesignAuto-check passed
  • Buzzform

    buildnbuzz/buzzform

    A skill your agent uses when working with BuzzForm schema-driven forms, @buildnbuzz/form-core, @buildnbuzz/form-react, or any related APIs like defineSchema, InferType, FormProvider, useDataField…

    101 GitHub stars~1.5k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Regle Migrate Vuelidate

    victorgarciaesgi/regle

    Migrate Vuelidate form validation to Regle. An agent skill from victorgarciaesgi/regle.

    506 GitHub stars~752 tokensUpdated 9 days ago
    Frontend & DesignAuto-check passed
  • Shared Schemas

    InsForge/InsForge

    A skill your agent uses when contributing to InsForge's shared schema package.

    13k GitHub stars~628 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Sets the conventions for the Opik React frontend: TanStack Query for data, Zustand for shared state, one-way layer imports and a fix for Google Translate crashes.

    22k GitHub stars~1.1k tokensUpdated today
    Frontend & DesignAuto-check passed

More from bitovi/ai-enablement-prompts

All 40 skills in this repo
  • Component Registry

    bitovi/ai-enablement-prompts

    Track reusable UI components and unextracted patterns. An agent skill from bitovi/ai-enablement-prompts.

    121 GitHub stars~597 tokensUpdated 27 days ago
    Auto-check passed
  • Computed Styles

    bitovi/ai-enablement-prompts

    Extract and compare computed CSS styles between a baseline URL and a dev/Storybook URL using Playwright MCP evaluate calls.

    121 GitHub stars~2.4k tokensUpdated 27 days ago
    Auto-check passed
  • Create Plugin

    bitovi/ai-enablement-prompts

    A skill your agent uses when the user asks to "create a plugin", "add a plugin", "make a new plugin", "build a plugin", or wants to package skills into an installable plugin for this marketplace.

    121 GitHub stars~2k tokensUpdated 27 days ago
    Auto-check passed
  • Create React Modlet

    bitovi/ai-enablement-prompts

    Create React components, hooks, or utilities following the modlet pattern.

    121 GitHub stars~2.1k tokensUpdated 27 days ago
    Auto-check passed
  • Create Skill

    bitovi/ai-enablement-prompts

    A skill your agent uses when the user asks to "create a skill", "add a skill", "make a new skill", "build a skill", or wants to automate a repeated workflow into a reusable prompt.

    121 GitHub stars~1.6k tokensUpdated 27 days ago
    Auto-check passed
  • Create Skill

    bitovi/ai-enablement-prompts

    Create new Agent Skills for this project. An agent skill from bitovi/ai-enablement-prompts.

    121 GitHub stars~1.7k tokensUpdated 27 days ago
    Auto-check passed

Works with

Questions about Update Data Model

What does Update Data Model do?

Add or modify domain entities in the data model using Zod schemas. Update Data Model is an agent skill from bitovi/ai-enablement-prompts. Add or modify domain entities in the data model using Zod schemas.

When should I use Update Data Model?

Update Data Model fits situations like: creating new entities; changing relationships; updating the domain model structure.

How do I install Update Data Model in Claude Code?

Run `npx skills add bitovi/ai-enablement-prompts --skill update-data-model -a claude-code`. Or copy the skill folder (plugins/react-mock/skills/update-data-model in bitovi/ai-enablement-prompts) into .claude/skills/update-data-model in your project. Claude Code loads it when a task matches its description.

How do I install Update Data Model in Codex?

Run `npx skills add bitovi/ai-enablement-prompts --skill update-data-model -a codex`. Or copy the skill folder (plugins/react-mock/skills/update-data-model in bitovi/ai-enablement-prompts) into .agents/skills/update-data-model in your project. Codex loads it when a task matches its description.

Can I use Update Data Model in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bitovi/ai-enablement-prompts --skill update-data-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/update-data-model, .gemini/skills/update-data-model, .github/skills/update-data-model and .opencode/skills/update-data-model in your project.

What does Update Data Model need to run?

SKILL.md names no scripts, command-line tools or credentials: Update Data Model is instructions for the agent only.

Does Update Data Model access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Update Data Model safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Update Data Model use?

Update Data Model is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Update Data Model use?

About 588 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Update Data Model?

Skills that share tags, products or a category with Update Data Model: World Book Skill (echo-xianyu/worldbook-skill, 211 stars), Regle (victorgarciaesgi/regle, 506 stars), Buzzform (buildnbuzz/buzzform, 101 stars) and Regle Migrate Vuelidate (victorgarciaesgi/regle, 506 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Update Data Model?

bitovi (a GitHub organization) maintains it in bitovi/ai-enablement-prompts, which has 121 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on September 11, 2026.

Source: bitovi/ai-enablement-prompts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.