agentleFS
OpenMinisOpenMinis/MinisSkills/shortcut-share-file/SKILL.md

shortcut-share-file

Skill438 starsChanged 3 months agoMITView on GitHub

Share iCloud Drive files using the iOS Shortcut "Instant Share." Trigger this skill when the user mentions file-sharing actions such as "share a file," "transfer a file," "send a file," "share with xxx," "share using a Shortcut," or "send a file from the backup." Supports passing any file path under the iCloud Drive backup directory to the Shortcut.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No processing and no checks: Do not unzip, list contents, inspect file types, or confirm that the file exists.

    line 13
  2. Very specific:

    If a record exists and is less than 24 hours old, use the upload_MBs value directly.

    line 24
  3. Distinctive:

    If no record exists or the record has expired, run:

    line 25
  4. Very specific:

    If the file is not under /var/minis/mounts/iCloud/Instant Share/:

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Share Files, "Instant Share" Shortcut

Shortcut link: https://www.icloud.com/shortcuts/c0cd9fbdc42149c3b98e4f9fcb103011

Core Principles

  • No processing and no checks: Do not unzip, list contents, inspect file types, or confirm that the file exists. Go directly to the sharing workflow.
  • File path: The source file is mapped in iCloud to /var/minis/mounts/iCloud/Instant Share/. Pass the parameter as Instant Share/<filename> (a relative path, not an absolute path).

Workflow

A. Speed Test (Use the cached memory first)

memory_get(keywords="iperf3 Speed Test: Upload Speed")
  • If a record exists and is less than 24 hours old, use the upload_MBs value directly.
  • If no record exists or the record has expired, run:
iperf3 -c ping.online.net -t 3 --json 2>/dev/null | python3 -c "import sys,json;d=json.load(sys.stdin);bps=d['end']['sum_sent']['bits_per_second'];print(f'{bps/8000000:.2f}')"

The output is in MB/s (megabytes per second). Write it to memory immediately:

memory_write(content="## Speed Cache\n- upload_MBs: <Value> (<Date>)\n- Valid for 24 hours")

B. Copy the File (If Needed) and Calculate the Time

If the file is not under /var/minis/mounts/iCloud/Instant Share/:

cp <Source file path> /var/minis/mounts/iCloud/Instant Share/<filename>

Calculate the parameter suffix:

  • From another iCloud directory → --0Second
  • From an external source such as attachments → --<ceil(file_size_MB / upload_MBs * 1.2)>Second (add a 20% buffer to handle network fluctuations)

C. Invoke the Shortcut

apple-open "shortcuts://run-shortcut?name=%E6%9E%81%E9%80%9F%E5%88%86%E4%BA%AB&input=text&text=%E6%9E%81%E9%80%9F%E5%88%86%E4%BA%AB/<filename>--<time>Second"

User Feedback

"The Shortcut has started. When it finishes, the link will be copied to the clipboard automatically. You can paste and send it directly."


Bundled Resources

  • Help Documentation - Installation steps, feature overview, and usage guide. Provide this when the user has questions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.