Skip to content
Back to skills

Files

ASecurity

How to find, read, write, file and tidy the person's files with the files__* tools

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 4, 2026
ai-agentsgo

Works with

  • cursor

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add NimbleBrainInc/nimblebrain --skill files --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Files?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Files
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nimblebraininc-files/badge)](https://www.skillsdirectory.com/skills/nimblebraininc-files)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: files
description: How to find, read, write, file and tidy the person's files with the files__* tools
metadata:
  nimblebrain:
    loading-strategy: dynamic
    priority: 50
    tool-affinity:
      - files__*
    triggers:
      - "file"
      - "files"
      - "folder"
      - "document"
      - "attachment"
      - "upload"
      - "pdf"
      - "spreadsheet"
      - "download"
allowed-tools: files__list files__search files__info files__read files__create files__tag files__move files__create_folder
---

# Files

The person's files belong to the workspace you are in and are theirs alone. You never name a
workspace or an owner to reach them: every `files__*` call is already walled to this
workspace and this person. Never ask which workspace a file is in, and never use
`nb__search` to find a file.

## Find a file

- **`files__search {query}`** when you know part of its name, description or a tag. It
  matches case-insensitively and answers the newest first.
- **`files__list`** to browse or filter: by `folderId` (`null` is the top level; add
  `recursive: true` for everything below), `kinds` (`image`, `document`, `data`, `font`,
  `other`), `sources` (`chat` attached in a chat, `agent` written by an agent, `app` or
  `manual` uploaded), `conversationId`, `runId`, `createdAfter`/`createdBefore`, `tags`,
  `mimeType` (a prefix such as `image/`). `total` and `facets`, when answered, count every
  match. Each file names its `kind`.
- A list answers at most `limit` files (default 20). When `nextCursor` is not null, pass it
  back as `cursor` with the same filters and sort, unchanged, for the next page.
- A file's id is the `<id>` of its `files://<id>` URI. `files__create` answers `{ file }`, the
  new file's record: its id is `file.id`.

## Read a file

- **`files__read {id}`** answers the file's text for text, code, JSON, Markdown, CSV, HTML,
  XML, YAML, PDF, DOCX and XLSX (its first sheet, as CSV). `truncated: true` means the text
  stops at the bound; pass `maxBytes` to ask for less.
- **For a long PDF, read it by page**: `files__read {id, pages: [4, 5, 6]}`, at most 10 pages a
  call. Use it for pages past a truncated text, or when the person asks about a page.
- An image, a font, an archive or other binary has no text: `read` answers its record with
  `extractedText: null`. An image the person attached reaches you with their message; do not
  read it again here.
- **`files__info {id}`** answers the record alone (name, type, size, tags, folder, where it
  came from), never the content, and shows the person the file to download.

## Give the person a file

- **To hand the person a file, call `files__info {id}`** (find the id first if you need to).
  Its answer shows the file in the chat with a preview and a Download button, so that call
  is the download. A file you just made with `files__create` is already shown the same way.
- Never say you cannot provide a download or a link, and never send the person to the Files
  screen to fetch a file you can show. Never paste a `files://` URI as the way to get it.

## Write a file

- **`files__create {manifest, body, encoding}`**. For anything you compose yourself
  (Markdown, code, CSV, JSON, prose) pass `encoding: "text"` and the content verbatim. Use
  the default base64 only for bytes you already hold encoded, in the standard padded
  alphabet. The body is at most 4 MiB.
- `manifest` is `{filename, mimeType, folder?, tags?, description?}`. A generic or empty
  `mimeType` for a known text extension (`.md`, `.py`, `.typ`…) is recorded as that
  extension's text type. `folder` is a path such as `Reports/Q3`, at most 32 folders deep;
  missing folders are made. A filename is at most 255 characters with no control characters,
  a description at most 2000, and a file carries at most 50 tags of at most 64 characters.
- A file's content never changes: to revise one, create the new version and delete the old
  one if the person wants it gone.

## Organize

- **`files__tag {id, add, remove}`** to label files.
- **`files__move {ids, folderId}`** moves every id or none; `folderId: null` is the top level.
- **`files__create_folder`**, **`files__update_folder`** (rename with `manifest.name`, move
  with `manifest.parentId`, `null` for the top level) and **`files__delete_folder`** (only an
  empty folder). Folder
  names are unique beside each other, ignoring case.
- **`files__delete {id}`** removes a file and its content for good. Confirm with the person
  first unless they asked for it plainly.

## Errors

Every error is `{code, error}`; decide on `code`. `file_not_found` and `folder_not_found`
mean the id names nothing of this person's here (check the id with `files__search`);
`conflict` names what stands in the way; `not_paged` means `pages` was given for a file with
no pages; `too_large` and `type_not_allowed` mean the file cannot be stored as asked;
`quota_exceeded` means the person's files are full: tell them, and offer to delete files they
no longer need.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.