5,439,582 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Cairo Security Recommendations

Summarize Starknet smart contract security recommendations and common Cairo pitfalls; use when a request involves best practices, safety checks, or audit guidance.

Installable skillApache-2.0By David-Li0406Updated Oct 30, 2026
INTENDED FORClaude CodeCodexOpenClawCursorInstall in a listed agent.

instructions.md

---
name: cairo-security-recommendations-8ac20b2193e4
description: Summarize Starknet smart contract security recommendations and common Cairo pitfalls; use when a request involves best practices, safety checks, or audit guidance.
---

# Cairo Security Recommendations

## Overview
Provide best practice guidance for safe Starknet contract development.

## Quick Use
- Read `references/security-recommendations.md` before answering.
- Prioritize access control, input validation, and event logging.
- Call out Cairo-specific pitfalls like operator precedence and underflows.

## Response Checklist
- Require access control on privileged actions and upgrades.
- Validate external inputs, especially L1 handler senders.
- Avoid unbounded loops and large storage writes.
- Emit events for sensitive state changes.

## Example Requests
- "What are common security pitfalls in Cairo contracts?"
- "What should I validate in an L1 handler?"
- "What are general best practices for Starknet contracts?"

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.