# Create Demo Model

> Create a Diff Studio demo model TS file and register it in the package, using equations from an IVP file. Use this skill when the user wants to create a demo model from an IVP file, mentions "demo model", "IVP file", "Diff Studio demo", or asks to convert an .ivp file into a demo.

- Skill: `majiayu000/create-demo-model` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/create-demo-model`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/create-demo-model/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/create-demo-model

---


# Create Demo Model from IVP File

Create a Diff Studio demo model using equations extracted from the IVP file, and register it in the package.

## Input Parsing

The user provides arguments in this format:

```
<ivp-file-path> [png-file-path]
```

- `ivp-file-path` (required) — path to the `.ivp` file
- `png-file-path` (optional) — path to the `.png` preview image

If `ivp-file-path` is missing, ask the user to provide it.

## Workflow

### Step 1 - Validate inputs

Verify that `ivp-file-path` exists and has a `.ivp` extension.
If `png-file-path` is provided, verify it exists and has a `.png` extension.
If validation fails, report the issue and stop.

### Step 2 - Run the generator

Run the conversion script from the skill directory:

```bash
python3 .claude/skills/create-demo-model/scripts/ivp-to-demo.py <ivp-file-path> [png-file-path]
```

If the script exits with a non-zero code, show stderr to the user and stop.

