storage_access — Claude Code prompt: file access rules
storage_access is a Claude Code prompt that limits an agent’s access to stored resources. It defines allowed paths for robot references, observations, and session work.
MIT ★ 488 updated 2026-11-15
.claude/commands/storage_access.mdWhat storage_access does
storage_access sets which files an agent may read and where it can save its own session materials. Skill documentation is read through declared tools; updates are allowed only through the declared writing tool when enabled.
Images in {{ images_dir }} are read-only. The same restriction applies to exact paths supplied in the initial input or tool results: parent folders, simulator internals, and other task assets are outside the permitted scope. Agents can use {{ scratch_dir }} for session scripts, notes, and calculations. Task files and directories beyond these boundaries cannot be read, searched, or changed.
What it helps with
- limit reads of observation images
- restrict robot resource access to supplied paths
- block searches through other task directories
- keep session scripts and notes in a designated folder
Example prompts for the agent
- Use
storage_accessto read the observation at the supplied path. - Apply
storage_accessand save the session calculations in{{ scratch_dir }}. - Follow
storage_accessand avoid searching for task files outside the permitted paths.
How to install storage_access
Manually: put the files in place
.claude/commands/storage_access.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about storage_access
How do I install storage_access in Claude Code?
Save the prompt as .claude/commands/storage_access.md.
What does storage_access do?
It defines permitted read and write locations for robot resources, observation images, and session files. Other task files remain out of scope.
Which files can storage_access read?
It allows reads from {{ images_dir }} and from exact observation or robot resource paths supplied in the initial input or tool results. Skill documentation and robot docs are accessed through declared tools.
Source text
storage_access.md · MIT
If you need to access stored resources, limit access to the following:
- Skills and robot documentation through the declared skill listing and reading
tools; skill updates only through the declared skill-writing tool when enabled.
- Observation images in `{{ images_dir }}` (read-only).
- Exact files supplied in initial input or tool results as `observation_path`,
`observation.artifact_ref`, camera `image_path`, `robot_calibration_path`, or
entries in `robot_resources` (read-only). These are
published observations and robot references, not permission to inspect their
parent directories, simulator internals, or task assets.
- `{{ scratch_dir }}` for reading and writing your own scripts, notes, and
calculation results for this session.
Do not read, search, or modify task-related files or directories outside these
scopes.
© Open-RUA · MIT · Open-RUA/uni-robot-agent