Skip to content
Back to skills

Cairo Storage Mappings

ASecurity

Explain Starknet storage mappings with Map, hashing of keys, and read/write patterns; use when a request involves mapping-like storage 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-storage-mappings --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Storage Mappings?

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

Security grade badge for Cairo Storage Mappings
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-storage-mappings/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-storage-mappings)

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-storage-mappings
description: Explain Starknet storage mappings with Map, hashing of keys, and read/write patterns; use when a request involves mapping-like storage in Cairo.
---

# Cairo Storage Mappings

## Overview
Guide use of storage mappings, key hashing, and constraints around Map types.

## Quick Use
- Read `references/storage-mappings.md` before answering.
- Use `Map<key, value>` only in storage structs.
- Access with `.read(key)` and `.write(key, value)`.

## Response Checklist
- Remind that Map types cannot be instantiated as regular variables.
- Note that mappings are not iterable and return default values for missing keys.
- Mention that key hashing chains through multiple keys when needed.

## Example Requests
- "How do I store balances by address in storage?"
- "Can I iterate over a storage mapping?"
- "How does Starknet hash mapping keys?"

Files in this skill

  • SKILL.md884 B
  • references/storage-mappings.md621 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…