About shareflare
shareflare is a file-sharing skill that uploads requested local files through a configured service and returns the resulting URL. It is for workflows that need to deliver files while keeping the bearer token out of output.
Key features
- 01Checks required environment variables
- 02Confirms files are readable regular files
- 03Uploads files with MIME type and bearer authorization
- 04Returns a URL for each uploaded file
- 05Keeps the token out of output and files
Use cases
- 01Sharing a requested local file
- 02Delivering multiple files with a URL for each
- 03Uploading files from a workflow with configured credentials
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ falcondev-oss/ skills --skill shareflareAfter installing, type/shareflarein Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEShare files
For every requested file:
- Require non-empty
SHAREFLARE_URLandSHAREFLARE_TOKEN. If either is unset, stop and name the missing variable. - Set
fileto the path and confirm it is a readable regular file. - Upload it and capture the response:
curl --fail-with-body --silent --show-error \
--data-binary "@$file" \
-H "Authorization: Bearer $SHAREFLARE_TOKEN" \
-H "Content-Type: $(file --brief --mime-type -- "$file")" \
"${SHAREFLARE_URL%/}/"
- Return the URL printed by the service. Completion means every requested file has one returned URL.
Keep SHAREFLARE_TOKEN out of output and files.
Comments
Markdown supported