Skip to content

Instantly share code, notes, and snippets.

@henrik
Last active March 28, 2026 16:28
Show Gist options
  • Select an option

  • Save henrik/d470f96d5ffd3ff5766e8d24037bb2a6 to your computer and use it in GitHub Desktop.

Select an option

Save henrik/d470f96d5ffd3ff5766e8d24037bb2a6 to your computer and use it in GitHub Desktop.
Claude Code get-last-download Skill: Get the most recent ~/Downloads file even on a remote server.
name dl
description Fetch the most recent file from the host Mac's ~/Downloads via the SSH action server.
allowed-tools Bash, Read

Fetch the most recent file from the host's ~/Downloads folder via the SSH action server:

dir=$(mktemp -d /tmp/dl.XXXXXX) && curl --silent --show-error --remote-header-name --remote-name --output-dir "$dir" http://localhost:19998/last-download && ls "$dir"

After running the command, tell the user the filename and its full path. If the file is an image, read it to show it. If it's a text-based file (code, CSV, JSON, etc.), read a preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment