Skip to content
Back to skills

Cairo Starknet Types

ASecurity

Explain Starknet-specific types like ContractAddress, StorageAddress, ClassHash, EthAddress, BlockInfo, and TxInfo; use when a request involves these core Starknet types in Cairo.

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

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-starknet-types --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Starknet Types?

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

Security grade badge for Cairo Starknet Types
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-starknet-types/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-starknet-types)

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-starknet-types
description: Explain Starknet-specific types like ContractAddress, StorageAddress, ClassHash, EthAddress, BlockInfo, and TxInfo; use when a request involves these core Starknet types in Cairo.
---

# Cairo Starknet Types

## Overview
Explain the core Starknet types and when to use them instead of raw felt values.

## Quick Use
- Read `references/starknet-types.md` before answering.
- Use explicit type conversions when needed (try_from, into, or constructors).
- Mention range constraints for addresses and hashes.

## Response Checklist
- Use ContractAddress for any contract address parameter or storage.
- Use StorageAddress and StorageBaseAddress for storage slot computations.
- Use ClassHash for class identifiers and EthAddress for L1 addresses.
- Use BlockInfo and TxInfo for environment context.

## Example Requests
- "How do I convert a felt into a ContractAddress?"
- "What is ClassHash used for?"
- "What is the difference between StorageAddress and StorageBaseAddress?"

Files in this skill

  • SKILL.md1018 B
  • references/starknet-types.md620 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…