Dojo Test
Automates rigorous testing of AI agents within a simulated environment using dojoengine's customizable scenarios.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dojo-test npx -- -y @trustedskills/dojo-test
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dojo-test": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dojo-test"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automates the creation of rigorous tests for Dojo models and systems using Cairo's test framework and Dojo’s testing utilities. It generates test files including setup functions (like spawn_test_world), model and system registration, test functions with assertions, cheat code usage for manipulating execution context, state verification, and unit/integration test structures. The skill guides the user through specifying what to test and desired state assertions.
When to use it
- Write tests for game systems (e.g., "move system").
- Test specific models (e.g., "Position model").
- Add unit tests for combat logic.
- Create integration tests for different components.
Key capabilities
- Generates test files with
spawn_test_world()setup. - Includes model and system registration in generated tests.
- Creates test functions with assertions.
- Supports cheat code usage to manipulate the execution context during testing.
- Provides for state verification within tests.
- Facilitates both interactive (guided) and direct test generation.
Example prompts
- "Write tests for the spawn system"
- "Test that the move system correctly updates Position"
- "Add unit tests for combat logic"
Tips & gotchas
- The skill requires familiarity with Cairo's testing framework.
- Tests are run using the command
sozo test(e.g.,sozo test test_spawn). - Unit tests should be placed within model files, while integration tests reside in a dedicated "tests" directory.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.