upload-and-share
Upload files to the cloud and get shareable public URLs using stableupload.dev (x402 micropayments). USE FOR: - Uploading files to get public URLs - Sharing files via download links - Hosting images, documents, or any file type - Making files publicly accessible for 6 months - Hosting static websites with custom domains TRIGGERS: - "upload this", "share this file", "get me a link" - "host this file", "make this downloadable" - "public URL", "download link", "put online" - "share file", "file hosting", "upload file" - "host site", "deploy site", "static site" ALWAYS use agentcash.fetch for stableupload.dev endpoints — never curl or WebFetch for the purchase step.
What this skill does
# Upload and Share via StableUpload
Upload any local file to S3-backed cloud storage via x402 micropayments. Returns a public URL. No API keys needed.
## Setup
See [rules/getting-started.md](rules/getting-started.md) for installation and wallet setup.
## Quick Reference
| Tier | Max Size | Cost |
|------|----------|------|
| `10mb` | 10 MB | $0.02 |
| `100mb` | 100 MB | $0.20 |
| `1gb` | 1 GB | $2.00 |
All uploads expire after 6 months.
| Task | Endpoint | Price |
|------|----------|-------|
| Buy upload slot | `https://stableupload.dev/api/upload` | Tier-based |
| List uploads | `GET https://stableupload.dev/api/uploads` | Free (auth) |
| Get upload details | `GET https://stableupload.dev/api/download/:uploadId` | Free (auth) |
| Buy site slot | `https://stableupload.dev/api/site` | Tier-based |
| Activate site | `POST https://stableupload.dev/api/site/activate` | Free (auth) |
| Update site | `PUT https://stableupload.dev/api/site` | Free (auth) |
| Renew site | `https://stableupload.dev/api/site/renew` | Tier-based |
| Attach domain | `POST https://stableupload.dev/api/site/domain` | Free (auth) |
| Detach domain | `DELETE https://stableupload.dev/api/site/domain` | Free (auth) |
| Domain status | `GET https://stableupload.dev/api/site/domain/status?uploadId=...` | Free (auth) |
## Workflow
### 1. Check wallet balance
```mcp
agentcash.get_balance()
```
Ensure sufficient USDC balance for the chosen tier.
If balance is low and the user needs funding details, call `agentcash.list_accounts()`.
### 2. Determine the tier
Pick the smallest tier that fits the file. Check file size first with `ls -la` or `wc -c`.
| Tier | Max Size | Cost |
|------|----------|------|
| `10mb` | 10 MB | $0.02 |
| `100mb` | 100 MB | $0.20 |
| `1gb` | 1 GB | $2.00 |
### 3. Buy the upload slot
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/upload",
method="POST",
body={"filename": "report.pdf", "contentType": "application/pdf", "tier": "10mb"}
)
```
**Parameters:**
- `filename` — name for the uploaded file (required)
- `contentType` — MIME type (required, advisory for browser)
- `tier` — `"10mb"`, `"100mb"`, or `"1gb"` (required)
**Response:**
```json
{
"uploadId": "k7gm3nqp2",
"uploadUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf?t=...",
"publicUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf",
"expiresAt": "2026-08-19T00:00:00.000Z",
"maxSize": 10485760
}
```
### 4. Upload the file via curl
Use Bash to PUT the file to the returned `uploadUrl`:
```bash
curl -s -X PUT "<uploadUrl>" -H "Content-Type: <mime>" --data-binary @/absolute/path/to/file
```
**Critical:** Use `--data-binary` (not `-d`) to preserve binary content. Use the absolute path.
### 5. Share the public URL
Present the `publicUrl` to the user. This URL is publicly accessible immediately and remains live for 6 months.
## Common MIME Types
| File Type | Content Type |
|-----------|-------------|
| PDF | `application/pdf` |
| PNG image | `image/png` |
| JPEG image | `image/jpeg` |
| CSV | `text/csv` |
| JSON | `application/json` |
| Plain text | `text/plain` |
| ZIP archive | `application/zip` |
| Excel | `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` |
| Unknown | `application/octet-stream` |
## Listing Previous Uploads
To list uploads for the current wallet:
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/uploads",
method="GET"
)
```
## Get Upload Details
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/download/k7gm3nqp2",
method="GET"
)
```
## Key Details
- **No API keys required** — payment is the authentication
- **Upload URLs expire in 1 hour** — upload promptly after buying the slot
- **Public URLs last 6 months** from purchase date
- **Any file type accepted** — contentType is advisory for the browser, not a restriction
- **S3-backed** — files stored on AWS S3 with public read access
- **Discovery endpoint**: `agentcash.discover_api_endpoints(url="https://stableupload.dev")` if you need to verify endpoints
## Common Patterns
**Upload a file the user just created:**
Skip discovery, go straight to wallet check + buy slot + upload.
**Upload multiple files:**
Buy separate slots for each file. Slots can be purchased in parallel but uploads must use the correct uploadUrl for each.
**User asks to "share" or "send" a file:**
Upload it and present the public URL. The URL can be shared anywhere.
**Host images for emails:**
Upload the image, then reference the `publicUrl` in email HTML:
```html
<img src="https://f.stableupload.dev/abc/photo.png" alt="Photo" />
```
## Static Site Hosting
Host static sites (HTML/CSS/JS) with custom domains and automatic HTTPS.
### Deploy a Site
**1. Buy a site slot (paid, tier-based):**
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site",
method="POST",
body={"filename": "my-site.zip", "tier": "100mb"}
)
```
Returns `{uploadId, uploadUrl}`.
**2. Upload the zip:**
```bash
curl -X PUT "$uploadUrl" -H "Content-Type: application/zip" --data-binary @site.zip
```
**3. Activate the site (SIWX, free):**
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site/activate",
method="POST",
body={"uploadId": "..."}
)
```
Returns `{siteUrl, fileCount, files}`. Site is live at `https://{uploadId}.s.stableupload.dev/`.
### Update an Existing Site
Update for free: PUT /api/site to get a new upload URL, upload the new zip, then activate.
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site",
method="PUT",
body={"uploadId": "...", "filename": "my-site.zip"}
)
```
Then upload the new zip and call activate again.
### Custom Domain
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site/domain",
method="POST",
body={"uploadId": "...", "hostname": "www.example.com"}
)
```
Returns DNS records to configure. Check status:
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site/domain/status?uploadId=...",
method="GET"
)
```
Detach a domain:
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site/domain",
method="DELETE",
body={"uploadId": "...", "hostname": "www.example.com"}
)
```
### Renew a Site
```mcp
agentcash.fetch(
url="https://stableupload.dev/api/site/renew",
method="POST",
body={"uploadId": "...", "count": 4}
)
```
Extends 4 x 6 months.
### Notes
- Max 500 files per site
- Tier limit applies to uncompressed size
- Custom domains get automatic HTTPS via Cloudflare
## Error Handling
- **Insufficient balance**: Call `agentcash.list_accounts()` to show deposit links and wallet addresses
- **File too large for tier**: Suggest the next tier up
- **Upload URL expired**: Buy a new slot (the previous payment is non-refundable)
- **curl fails**: Verify the file path exists and the uploadUrl is correctly quoted
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.