Recipe share and notify

From Files-com/files-cli · View interactive version

Recipe share and notify is an AI agent skill from the GitHub repository Files-com/files-cli. Share a Files.com file or folder via a Share Link (bundle) and email it to recipients. Spans `bundles`, `bundle-recipients`, and (optionally) `bundle-notifications`. Use this when the user wants to share files with someone outside Files.com by email, or to notify an internal Files.com user when acti

How to use this skill

Skill file

recipe-share-and-notify

Sharing a file or folder by email isn't a single call. It involves up to three domains:

bundles create produces the link but does not email anyone. Email delivery and notifications are separate operations.

When to use this skill

Sending the invitation email

There are two ways to send the invitation. Either one creates BundleRecipient rows for the addresses involved.

Path A: create the bundle, then send

Use when you already have the bundle, or when you want to email multiple addresses at once. bundles share supports up to 50 addresses per call.

files-cli bundles create --paths=/demo/q3-report.pdf --description="Q3 report" --format=json

files-cli bundles share --id=<BUNDLE_ID> --to=bob@example.com --to=alice@example.com --note="Q3 report attached" --format=json

Path B: create and add a recipient that triggers the email

Use when adding one recipient (or each recipient one at a time). The --share-after-create=true flag on bundle-recipients create is the "send mail at creation" path.

files-cli bundles create --paths=/demo/q3-report.pdf --description="Q3 report" --format=json

files-cli bundle-recipients create --bundle-id=<BUNDLE_ID> --recipient=bob@example.com --share-after-create=true --format=json

Recipient-restricted Share Links

If the link should only be accessible to addresses that received the invitation, set --require-share-recipient at creation:

files-cli bundles create --paths=/legal/contract.pdf --require-share-recipient --format=json

files-cli bundles share --id=<BUNDLE_ID> --to=counsel@example.com --to=ceo@example.com --format=json

Subscribing an internal user to ongoing activity

bundle-notifications is a separate surface from bundles share and bundle-recipients. It subscribes an existing Files.com user to receive emails when registration or upload activity happens against the Share Link.

Notifications can only target internal Files.com users — never external contacts. External addresses go through invitation emails.

files-cli bundle-notifications create --bundle-id=<BUNDLE_ID> --notify-user-id=<USER_ID> --notify-on-upload=true --notify-on-registration=true --format=json

--notify-user-id must reference an existing Files.com user — look it up with files-cli users list --search=email@example.com --format=json first if you don't have the ID.

Gotchas

Per-recipient invitation emails are rate-limited to once every 24 hours. A repeat bundles share to the same address within that window will not re-send.

A single bundles share call can address up to 50 recipients. Beyond that, split across multiple calls.

The sender's email is the reply-to. The email address of the user who issues the invitation is used as the reply-to address.

Anti-patterns

Related skills

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.