Goal: let OmegaClaw inspect and modify its environment using shell, read-file, write-file, and append-file.
- A running OmegaClaw (see Usage).
- Awareness that these skills run with the permissions of the OmegaClaw process.
| Skill | Purpose |
|---|---|
(shell "cmd") |
Run a shell command; returns stdout. Apostrophes are not allowed in the argument. |
(read-file "path") |
Return the file contents as a string. |
(write-file "path" "contents") |
Overwrite the file. |
(append-file "path" "line") |
Append a line (with trailing newline) to the file. |
See reference-skills-io.md for exact signatures.
what version of python is available?
Expected skill call: (shell "python3 --version").
write a haiku about reasoning under uncertainty to /tmp/haiku.txt
Expected: (write-file "/tmp/haiku.txt" "..."), then on the next turn (read-file "/tmp/haiku.txt") to confirm.
start a log at /tmp/session.log and append a line summarizing every turn
The agent should (append-file "/tmp/session.log" "...") on each subsequent turn. Inspect cat /tmp/session.log.
- Apostrophes in
shellarguments are rejected by the Prolog-sideshellhelper. Quote text with double quotes instead, or write it to a file first and operate on the file. - There is no sandbox. If you expose destructive commands (
rm -rf, etc.) through the shell you will get what you ask for. Run in Docker and treat the container as ephemeral. - File paths are resolved relative to the OmegaClaw working directory unless absolute.
- Log shows a
(shell ...)call and its captured stdout. - Files created by
write-file/append-fileexist on disk inside the container.
- tutorial-03-writing-a-custom-skill.md — extend the surface with your own skill.
- reference-skills-io.md — full details and edge cases.