shortcut-share-file
Skill584 starsChanged 59 days agoMITView on GitHub
通过 iOS 快捷指令「极速分享」分享 iCloud Drive 文件。当用户提到"分享文件"、"传文件"、"发文件"、"分享给xxx"、"用快捷指令分享"、"发备份里的文件"等与分享文件相关的操作时触发。支持传递 iCloud Drive 备份目录下的任意文件路径给快捷指令。
Files
分享文件 — 快捷指令「极速分享」
快捷指令链接:https://www.icloud.com/shortcuts/d044e04806a24ee18bb7360f8b3f802a
核心原则
- 零处理零检查:不解压、不列出内容、不查看文件类型、不确认文件存在。直接走分享流程。
- 文件路径:源文件在 iCloud 映射到
/var/minis/mounts/iCloud/极速分享/,参数传极速分享/<filename>(相对路径,不要绝对路径)。 - 不需要时间参数:上传完成先由本机监控确认,触发快捷指令时不传任何时间参数。
工作流程
A. 拷贝文件(如需)
如果文件不在 /var/minis/mounts/iCloud/极速分享/ 下:
cp <源文件路径> /var/minis/mounts/iCloud/极速分享/<filename>- 从外部拷贝进来 → 继续执行 B(等待上传完成)
- 原本就在极速分享目录中 → 跳过 B,直接进入 C(已就位即已传输完成)
B. 等待上传完成(仅新拷贝的文件需要)
刚拷贝进来的文件用监控脚本等待上传真正完成(检测 ctime 跳变信号):
bash /var/minis/skills/shortcut-share-file/scripts/icloud_upload_watch.sh "极速分享/<filename>"- 输出
UPLOAD_OK→ 进入 C - 输出
TIMEOUT(默认 600 秒)→ 重试一次;仍超时则告知用户「上传似乎未完成」,询问是否仍要触发 - 命令超时请设为脚本超时值(默认 600s)加缓冲;超大文件需更大
C. 触发快捷指令
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>"快捷指令无需等待,直接生成链接。
反馈用户
「上传已完成 ✓ 快捷指令已启动,链接稍后会自动复制到剪贴板,直接粘贴即可发送。」
捆绑资源
- 帮助文档 — 安装步骤、功能概览、使用指南,用户有疑问时提供
- scripts/icloud_upload_watch.sh — 上传完成监控脚本(ctime 信号)
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lsongdev/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- android-devSkill
- android-ui-automationSkill
- apple-remindersSkill
- appstoreprice-hubSkill
- asc-cliSkill
- bilibili-hubSkill
- Clash 控制器Skill
- cloudflare-dnsSkill
- codex-imageSkill
- codex-on-ishSkill
- contact-vcard-extractorSkill
- coredevice-toolkitSkill
- deepseek-usageSkill
- doubao-ttsSkill
- douyin-downloaderSkill
- evidence-chain-builderSkill
- exa-searchSkill
- free-ttsSkill
- fucai3d-latestSkill
- generative-ui-minisSkill
- github-sync-helperSkill
- health-sleep-analysisSkill
- health-training-checkinSkill
- hyperframes-cliSkill
- hyperframesSkill
- ios-devSkill
- korea-stockSkill
- maimai-hubSkill
- memos-apiSkill
- nano-bananaSkill
- notion-hubSkill
- openstreetmap-markerSkill
- pdf-converterSkill
- production-agent-publicSkill
- qbt-hubSkill
- quark-hubSkill
- reverse-dcfSkill
- self-improving-agentSkill
- shortcuts-builderSkill
- spotify-hubSkill
- stock-fund-flowSkill
- stock-priceSkill
- tavily-searchSkill
- tg-hubSkill
- todoocardSkill
- twitter-downloaderSkill
- twitter-x-hubSkill
- us-stockSkill
- web-content-extractorSkill
- web-searchSkill
- weibo-hubSkill
- whenpeakSkill
- xianyu-hubSkill
- xiaohongshu-hubSkill
- youtube-downloaderSkill
- ytmusic-hubSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

