smithery.ai

cairo-smart-contract-testing

Explain how to test Starknet contracts with Foundry tools, deploy and call contracts, and use cheatcodes; use when a request involves contract test setup or testing patterns.

First seen Mar 25, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 943 B
  • docs SUMMARY.md 210 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Cairo Smart Contract Testing

Overview

Explain common testing workflows for Starknet contracts, including deployment, dispatchers, and cheatcodes.

Quick Use

  • Read references/smart-contract-testing.md before answering.
  • Use snforge standard library helpers for declare and deploy.
  • Use dispatchers to call contract entry points in tests.

Response Checklist

  • Deploy test contracts and use their dispatchers for calls.
  • Use cheatcodes to set caller, block info, or spoof events.
  • Validate events and storage state after calls.

Example Requests

  • "How do I write a contract test with snforge?"
  • "How do I call a contract from a test?"
  • "What cheatcodes are available for Starknet tests?"