# Golden Tests

> Golden 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.

- Skill name: `golden-tests`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/starkware-libs/cairo/blob/HEAD/.claude/skills/golden-tests/SKILL.md
- Repository: starkware-libs/cairo (1,896 GitHub stars when collected)

## SKILL.md

# 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

---

Source: https://www.openparable.com/skill/testing-quality/golden-tests (OpenParable). Cite the canonical URL above.
