File ops

From barry-ran/QuickDesk · View interactive version

File ops is an AI agent skill from the GitHub repository barry-ran/QuickDesk. Read, write, list, move, and inspect files and directories on a remote host via QuickDesk. Use when the user needs to browse folders, view file contents, create or edit files, rename or relocate files, or check file metadata (size, permissions, modification time) on a remote machine.

How to use this skill

Skill file

file-ops

Manage files and directories on a remote host connected through QuickDesk.

Tools

read_file

Read the text contents of a file.

Returns { "path", "content", "size" }.

write_file

Write content to a file. Creates the file (and parent directories) if it does not exist; overwrites if it does.

Returns { "path", "bytes_written" }.

list_directory

List files and directories at a given path, sorted directories-first then alphabetically.

Returns { "path", "count", "entries": [{ "name", "type", "size" }] }.

create_directory

Create a directory and any missing parent directories.

Returns { "path", "created": true }.

move_file

Move or rename a file or directory.

Returns { "source", "destination", "moved": true }.

get_file_info

Get file metadata including size, type, modification time, and permissions.

Returns { "path", "type", "size", "readonly", "modified_unix", "permissions_octal" } (permissions_octal on Unix only).

get_default_directory

Return the current user's home directory and the host path separator. The Web

file manager uses this as its initial location.

Returns { "path", "separator" }.

read_file_chunk

Read a bounded binary chunk and return it as standard Base64. length defaults

to 64 KiB and is clamped to 256 KiB.

Returns { "path", "offset", "next_offset", "size", "eof", "data_base64" }.

write_file_chunk

Write one bounded Base64 chunk for browser uploads.

Returns { "path", "offset", "bytes_written", "next_offset" }.

trash_path

Move a file or directory into <parent>/.quickdesk-trash without overwriting an

older deleted version. The operation is reversible and works across filesystems

inside the same parent directory.

Returns { "path", "trash_path", "trashed": true }.

Workflow

  1. Use list_directory to browse a remote folder.
  2. Use read_file to inspect a specific file.
  3. Use write_file to create or update content — parent directories are created automatically.
  4. Use get_file_info before destructive operations like move_file to confirm the target exists and check permissions.
  5. Use read_file_chunk and write_file_chunk for browser-safe transfer of binary or large files.
  6. Use trash_path for reversible deletion; do not emulate deletion with write_file.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.