datagrok-ai/public/create-tests-for-demo-model
Claude Code and agent skill by datagrok-ai/public
- community
Checking that the SKILL.md file is still in the repository.
Create tests for Diff Studio demo models
Install
npx vskill@latest install datagrok-ai/public/create-tests-for-demo-modelSKILL.md
Create Tests for Diff Studio Demo Model
Create tests for a Diff Studio model defined in the TS file at the path specified in the argument.
Instructions
- Parse input: extract the path to the TS file from the argument. Verify the file exists and has a
.tsextension.
- Read the TS file: open it and locate the single exported object of type
ModelInfo. Note:
- The export name (e.g.,
export const myModel: ModelInfo = { ... }). - The
equationsfield of the exported object.
- Extract the file name: derive the base file name (without directory path and without the
.tsextension) from the given path. This will be used as the test case name.
- Update the test file
src/tests/demo-models-tests.ts:
a. Add import: at the top of the file (with other imports), add:
Use the correct relative path from src/tests/ to the target file (without the .ts extension in the import path).
b. Add test case: inside the 'Demo models' category block, add a call to testTemplate (imported from ./test-utils):
- First argument: string with the TS file name (e.g.,
'my-model'). - Second argument: the
equationsfield of the importedModelInfoobject.
c. Placement: add the new test case in alphabetical order relative to existing test cases, or at the end of the 'Demo models' category if ordering is not established.
Example
Given argument: src/demos/acid-base.ts
If the file exports:
Then in src/tests/demo-models-tests.ts:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/DiffStudio/.claude/skills/create-tests-for-demo-model/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/datagrok-ai/public/create-tests-for-demo-model)