About modal-storage-knowledge
A skill for developers using Modal persistence and shared-state primitives. It helps select and apply storage options, covering mounts, commits, credentials, and validation before scaling jobs.
Key features
- 01Choose among Volume, Dict, Queue, and CloudBucketMount
- 02Commit and read Volume changes carefully
- 03Manage credentials with Modal Secrets
- 04Test reads and writes before scaling jobs
Use cases
- 01Persist filesystem data across Modal functions
- 02Share small metadata, caches, or coordination state
- 03Hand off tasks through queues or access object storage
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ josiahsiegel/ claude-plugin-marketplace --skill modal-storage-knowledgeAfter installing, type/modal-storage-knowledgein Claude Code to confirm it loaded.
Bundled filesreferences/storage-volumes-cloud.md
Details
From the project READMEModal Storage Knowledge
Use this skill for Modal persistence and shared-state primitives. For compute, GPU, autoscaling, or deployment topics, use modal-compute:modal-compute-knowledge.
Quick routing
- Volumes: durable filesystem state mounted into functions/classes; call
vol.commit()after writes that must persist. - Dict: distributed key-value state for small shared metadata, caches, and coordination.
- Queue: producer/consumer task handoff and distributed job queues.
- CloudBucketMount: direct access to S3/GCS-compatible object storage through Modal mounts.
- Secrets: use named secrets for storage credentials; never hardcode keys.
Essential workflow
- Identify whether the workload needs filesystem semantics, key-value state, queueing, or object-store access.
- Mount the storage primitive explicitly on every function/class that needs it.
- For Volumes, commit after writes and reload/read carefully across concurrent workers.
- Keep credentials in Modal Secrets and scope them to the functions that require access.
- Validate with a small read/write/delete test before scaling parallel jobs.
Detailed reference
See references/storage-volumes-cloud.md for examples, gotchas, and deeper storage guidance.
Comments
Markdown supported