Agent skill

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.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/create-demo-model

SKILL.md

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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results