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…
от Merit-Systems★ 23 звезды на GitHubОб этом скилле
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 for installation and wallet setup.
Quick Reference
| Tier | Max Size | Retention | Cost |
|---|---|---|---|
10mb |
10 MB | 6 months | $0.02 |
100mb |
100 MB | 6 months | $0.20 |
1gb |
1 GB | 6 months | $2.00 |
short-10mb |
10 MB | 7 days | $0.005 |
short-100mb |
100 MB | 7 days | $0.02 |
short-1gb |
1 GB | 7 days | $0.10 |
short-5gb |
5 GB | 7 days | $0.50 |
Default tiers expire after 6 months; short-* tiers after 7 days. short-5gb is for file uploads only (not sites).
| 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 |
| Preview domain DNS | GET https://stableupload.dev/api/site/domain/preview?hostname=... |
Free (no auth) |
| 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
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. Use a short-* tier when the file only needs to live for 7 days — they cost a fraction of the 6-month tiers.
| Tier | Max Size | Retention | Cost |
|---|---|---|---|
10mb |
10 MB | 6 months | $0.02 |
100mb |
100 MB | 6 months | $0.20 |
1gb |
1 GB | 6 months | $2.00 |
short-10mb |
10 MB | 7 days | $0.005 |
short-100mb |
100 MB | 7 days | $0.02 |
short-1gb |
1 GB | 7 days | $0.10 |
short-5gb |
5 GB | 7 days | $0.50 |
3. Buy the upload slot
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","1gb","short-10mb","short-100mb","short-1gb", or"short-5gb"(required)policyTtlSeconds— optional upload URL expiration in seconds, 60–86400; use longer TTLs only when reserving an output slot for a downstream service
Response:
{
"uploadId": "k7gm3nqp2",
"uploadUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf?t=...",
"uploadMethod": "put",
"uploadUrlExpiresAt": "2026-08-19T01:00:00.000Z",
"publicUrl": "https://f.stableupload.dev/k7gm3nqp2/report.pdf",
"expiresAt": "2027-02-19T00:00:00.000Z",
"maxSize": 10485760,
"curlExample": "curl -X PUT ..."
}
4. Upload the file via curl
Use Bash to PUT the file to the returned uploadUrl:
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.
The response includes a ready-made curlExample. If uploadMethod is "post", upload a multipart form to postUrl with postFields instead of a PUT.
5. Share the public URL
Present the publicUrl to the user. This URL is publicly accessible immediately and remains live for the tier's retention window (6 months for default tiers, 7 days for short-* tiers) — see expiresAt.
Common MIME Types
| File Type | Content Type |
|---|---|
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:
agentcash.fetch(
url="https://stableupload.dev/api/uploads",
method="GET"
)
Get Upload Details
agentcash.fetch(
url="https://stableupload.dev/api/download/k7gm3nqp2",
method="GET"
)
Key Details
- No API keys required — payment is the authentication
- Upload URLs expire — see `uploa
Установить upload-and-share в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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 7 days or 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.
Как установить скилл upload-and-share?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл upload-and-share запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic