Golden Tests
Testing & Qualitygolden-testsGolden Tests is an Agent Skill for testing & quality published in the starkware-libs/cairo repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Help with Cairo's file-based golden test framework. Use /golden-tests for creating test runners, writing test files, or fixing test outputs.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/starkware-libs/cairo/blob/HEAD/.claude/skills/golden-tests/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/golden-tests, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Golden Tests Skill
Helps with Cairo's cairo_lang_test_utils file-based test framework.
When Invoked
Read the full documentation at ~/.claude/skills/golden-tests/docs.md and then help the user with their request.
Common tasks:
- Creating new test runners (
test_file_test!macro) - Writing test data files (
//! >tag format) - Fixing test outputs (
CAIRO_FIX_TESTS=1) - Understanding test failures