Skip to content
Back to skills

Cairo Smart Contract Testing

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolstesting

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cairo-smart-contract-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Smart Contract Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairo Smart Contract Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-smart-contract-testing/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-smart-contract-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairo-smart-contract-testing
description: 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.
---

# 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?"

Files in this skill

  • SKILL.md943 B
  • references/smart-contract-testing.md551 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…