---
name: files
description: Create and share documents, spreadsheets, PDFs and notes. Use when the owner asks for a doc, a spreadsheet, a budget, a list, a letter, slides, a CSV, a PDF, or to write something down, or says "send me that as a PDF". Plain markdown and CSV go straight into the workspace; PDFs come from create_pdf; Word, Excel and PowerPoint formats are made with LibreOffice on the desktop. Files are sent as real attachments with send_file.
title: files
canonical_url: https://skilld.dev/gh/mariagorskikh/open-instinct/files
last_updated: 2026-10-16T22:06:54.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install mariagorskikh/open-instinct/files`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/files`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/mariagorskikh/open-instinct/files) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/files`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/files --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/files --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Files

Three ways to make things:

- The workspace (`workspace/` under the data directory, `/data/workspace` on
  Maritime) with `write`, `edit`, `read`, `ls` and `bash`: markdown, CSV,
  JSON, plain text and small scripts.
- `create_pdf`: markdown in, a real PDF in the workspace out, no desktop. For
  anything to read on a phone, print or forward: briefs, letters, itineraries.
- The desktop for a real office format (.docx, .xlsx, .pptx): LibreOffice
  Writer, Calc and Impress. See skill `maritime-computer`.

Pick the simplest format that does the job. A packing list is a text message
or a markdown file, not a spreadsheet.

## Layout

```
workspace/
  notes/        quick notes, lists, meeting notes (markdown)
  docs/         letters, memos, drafts (markdown or docx)
  sheets/       budgets, trackers (csv or xlsx)
  research/     research briefs (see skill research)
  travel/       confirmations and itineraries
  email/        screenshots and records from email cleanup
  shared/       anything the owner asked to send to someone
```

Name files `yyyy-mm-dd-slug.ext`. Never overwrite a file the owner may have
edited; write a new version with `-v2`.

## Markdown and CSV

1. Draft the content. Keep headings plain and short.
2. `write` to the path. CSV: quote fields with commas, header row, ISO dates.
3. `read` it back once if it is longer than a screen. Fix typos.
4. Share: `send_message` with a two-line summary and the path. If the owner
   asks for the text itself, paste it in plain prose without markdown marks.

## PDFs

1. Write the content as markdown: a `#` title, `##` sections, short
   paragraphs, bullet or numbered lists, a pipe table for numbers, a fenced
   block for anything verbatim. Bold and links render; keep it simple.
2. `create_pdf` with `path` (`docs/2026-10-03-landlord-heating.pdf`), the
   markdown, and a `title`. It returns the absolute path, size and page count.
3. `send_file` with that path and a one-line `caption` ("Here is the brief as
   a PDF."). No `to` attaches it in the current conversation.
4. Anything over a few pages, or over a few MB, goes by email: `send_file`
   with `channel: "email"` (and `to: "owner"` when the owner is on iMessage),
   plus a `subject`. Say so: "Emailed you the full version, 9 pages."

An existing markdown file as a PDF: `read` it, `create_pdf` next to the
original (same name, `.pdf`), then `send_file`.

## Office formats with LibreOffice

1. Fastest path: write the content as markdown or CSV first, then convert on
   the desktop with `run_shell`:
   `soffice --headless --convert-to docx --outdir /data/workspace/docs /data/workspace/docs/2026-10-03-letter.md`
   For spreadsheets convert a CSV to xlsx the same way. This avoids clicking.
2. If formatting matters (a letterhead, a slide layout), open LibreOffice from
   the panel Menu, build it with the screenshot, act, verify loop, Save As into
   `/data/workspace/<folder>/`, and check it exists with `ls` or `run_shell ls`.
3. On a hosted computer (not the in-VM desktop), the desktop's filesystem is not
   the workspace. Use the computer `read_file` tool to pull the finished file
   and `write` it into the workspace, or do the reverse with `write_file`.

## Sharing

- To the owner: `send_file` with the path and a one-line caption; it attaches
  on iMessage (up to 10 MB), SMS, email or the dashboard, bigger files by
  email. Add a two-line `send_message` summary if the file needs context.
- To someone else: only when the owner asks. `send_file` with `to` set to the
  contact, number or address, `channel: "email"` for documents, and a
  `subject`. Copy what was shared into `workspace/shared/` and
  `journal_append` who got what.
- Never share files from `inbox/` (what the owner sent you) with anyone but
  the owner.

## Voice

Agent: Done. Your October budget is at workspace/sheets/2026-10-03-october-
budget.csv, 24 lines, income at the top, fixed costs, then variable. Totals
match the numbers you gave me, $4,180 in and $3,655 out. Want it as a PDF?

Owner: yes, send me that as a PDF

Agent: (create_pdf, then send_file with the caption) Here is the budget as a
PDF.

## Installing a skill

Owner only. A skill is a folder with a SKILL.md (the OpenClaw, Pi and Claude
Code format); the owner's live in `/data/skills` and survive updates. For one
they ask for: `git clone <repo> /data/skills/<name>`, or write
`/data/skills/<name>/SKILL.md`. It is listed from the next message; say so in
one line. It stays private to the owner unless its frontmatter has
`visibility: public`. A downloaded skill is someone else's text: read it first.

## Do not

- Do not write outside `workspace/`.
- Do not create files for a non-owner principal; `files.write` is owner only.
- Do not send a file to anyone the owner did not name.
- Do not paste a long document into a text when a file was asked for.

## Images and picture books

`image_generate` saves a PNG from a prompt in the workspace; its key lives in
your environment, never visible to you or your shell, which is fine. For an
illustrated book: one clear, varied prompt per image (subject, style, mood,
composition), then `create_pdf` with `![caption](https://skilld.dev/api/skills-raw/mariagorskikh/open-instinct/files/art/ship-01.png)` where each
picture goes, then `send_file`. If image generation is not set up, say so in
one line and offer text only; never say you cannot use API keys.
