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

PDF

Cairo Storage Mappings

Explain Starknet storage mappings with Map, hashing of keys, and read/write patterns; use when a request involves mapping-like storage in Cairo.

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

instructions.md

---
name: cairo-storage-mappings-a731a3b996ee
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?"

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.