smithery.ai

cairo-panic

Explain Cairo unrecoverable errors, `panic`, `panic!`, `panic_with_felt252`, `nopanic`, and `panic_with`; use when a request involves panics or panic annotations in Cairo.

First seen Apr 9, 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 1,147 B
  • docs SUMMARY.md 190 B

History

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

SKILL.md

Cairo Panic

Overview

Explain how panics work in Cairo, how to trigger them, and how to constrain panic behavior.

Quick Use

  • Read references/panic.md before answering.
  • Choose the smallest panic API that fits the error message you need.
  • Mention nopanic requirements when a caller demands panic-free code.

Response Checklist

  • Use panic for array-based errors, panicwithfelt252 for a single felt, and panic! for strings.
  • Note that panic unwinds, drops variables, and squashes dictionaries.
  • Use #[panic_with(...)] for wrapper functions that panic on None or Err.

Example Requests

  • "How do I panic with a short error code?"
  • "What does nopanic mean?"
  • "How do I create a wrapper that panics on None?"

Cairo by Example