[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECZ56P4KZ1QP70RXACN1XC":3,"skill-same:01M7ECZ56P4KZ1QP70RXACN1XC":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ECZ56P4KZ1QP70RXACN1XC","upload-and-share",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fpayments\u002Fupload-and-share\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# upload-and-share\n\n# Upload and Share via StableUpload\n\nUpload any local file to S3-backed cloud storage via x402 micropayments. Returns a public URL. No API keys needed.\n\n## Setup\n\nSee [rules\u002Fgetting-started.md](rules\u002Fgetting-started.md) for installation and wallet setup.\n\n## Quick Reference\n\n| Tier | Max Size | Cost |\n|------|----------|------|\n| `10mb` | 10 MB | $0.02 |\n| `100mb` | 100 MB | $0.20 |\n| `1gb` | 1 GB | $2.00 |\n\nAll uploads expire after 6 months.\n\n| Task | Endpoint | Price |\n|------|----------|-------|\n| Buy upload slot | `https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fupload` | Tier-based |\n| List uploads | `GET https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fuploads` | Free (auth) |\n| Get upload details | `GET https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fdownload\u002F:uploadId` | Free (auth) |\n| Buy site slot | `https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite` | Tier-based |\n| Activate site | `POST https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Factivate` | Free (auth) |\n| Update site | `PUT https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite` | Free (auth) |\n| Renew site | `https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Frenew` | Tier-based |\n| Attach domain | `POST https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Fdomain` | Free (auth) |\n| Detach domain | `DELETE https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Fdomain` | Free (auth) |\n| Domain status | `GET https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Fdomain\u002Fstatus?uploadId=...` | Free (auth) |\n\n## Workflow\n\n### 1. Check wallet balance\n\n```bash\nnpx agentcash@latest balance\n```\n\nEnsure sufficient USDC balance for the chosen tier.\nIf balance is low and the user needs funding details, run `npx agentcash@latest accounts` to get deposit links and wallet addresses.\n\n### 2. Determine the tier\n\nPick the smallest tier that fits the file. Check file size first with `ls -la` or `wc -c`.\n\n| Tier | Max Size | Cost |\n|------|----------|------|\n| `10mb` | 10 MB | $0.02 |\n| `100mb` | 100 MB | $0.20 |\n| `1gb` | 1 GB | $2.00 |\n\n### 3. Buy the upload slot\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fupload -m POST -b '{\"filename\": \"report.pdf\", \"contentType\": \"application\u002Fpdf\", \"tier\": \"10mb\"}'\n```\n\n**Parameters:**\n- `filename` — name for the uploaded file (required)\n- `contentType` — MIME type (required, advisory for browser)\n- `tier` — `\"10mb\"`, `\"100mb\"`, or `\"1gb\"` (required)\n\n**Response:**\n```json\n{\n  \"uploadId\": \"k7gm3nqp2\",\n  \"uploadUrl\": \"https:\u002F\u002Ff.stableupload.dev\u002Fk7gm3nqp2\u002Freport.pdf?t=...\",\n  \"publicUrl\": \"https:\u002F\u002Ff.stableupload.dev\u002Fk7gm3nqp2\u002Freport.pdf\",\n  \"expiresAt\": \"2026-08-19T00:00:00.000Z\",\n  \"maxSize\": 10485760\n}\n```\n\n### 4. Upload the file via curl\n\nUse Bash to PUT the file to the returned `uploadUrl`:\n\n```bash\ncurl -s -X PUT \"\u003CuploadUrl>\" -H \"Content-Type: \u003Cmime>\" --data-binary @\u002Fabsolute\u002Fpath\u002Fto\u002Ffile\n```\n\n**Critical:** Use `--data-binary` (not `-d`) to preserve binary content. Use the absolute path.\n\n### 5. Share the public URL\n\nPresent the `publicUrl` to the user. This URL is publicly accessible immediately and remains live for 6 months.\n\n## Common MIME Types\n\n| File Type | Content Type |\n|-----------|-------------|\n| PDF | `application\u002Fpdf` |\n| PNG image | `image\u002Fpng` |\n| JPEG image | `image\u002Fjpeg` |\n| CSV | `text\u002Fcsv` |\n| JSON | `application\u002Fjson` |\n| Plain text | `text\u002Fplain` |\n| ZIP archive | `application\u002Fzip` |\n| Excel | `application\u002Fvnd.openxmlformats-officedocument.spreadsheetml.sheet` |\n| Unknown | `application\u002Foctet-stream` |\n\n## Listing Previous Uploads\n\nTo list uploads for the current wallet:\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fuploads\n```\n\n## Get Upload Details\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fdownload\u002Fk7gm3nqp2\n```\n\n## Key Details\n\n- **No API keys required** — payment is the authentication\n- **Upload URLs expire in 1 hour** — upload promptly after buying the slot\n- **Public URLs last 6 months** from purchase date\n- **Any file type accepted** — contentType is advisory for the browser, not a restriction\n- **S3-backed** — files stored on AWS S3 with public read access\n- **Discovery endpoint**: `npx agentcash@latest discover https:\u002F\u002Fstableupload.dev` if you need to verify endpoints\n\n## Common Patterns\n\n**Upload a file the user just created:**\nSkip discovery, go straight to wallet check + buy slot + upload.\n\n**Upload multiple files:**\nBuy separate slots for each file. Slots can be purchased in parallel but uploads must use the correct uploadUrl for each.\n\n**User asks to \"share\" or \"send\" a file:**\nUpload it and present the public URL. The URL can be shared anywhere.\n\n**Host images for emails:**\nUpload the image, then reference the `publicUrl` in email HTML:\n```html\n\u003Cimg src=\"https:\u002F\u002Ff.stableupload.dev\u002Fabc\u002Fphoto.png\" alt=\"Photo\" \u002F>\n```\n\n## Static Site Hosting\n\nHost static sites (HTML\u002FCSS\u002FJS) with custom domains and automatic HTTPS.\n\n### Deploy a Site\n\n**1. Buy a site slot (paid, tier-based):**\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite -m POST -b '{\"filename\": \"my-site.zip\", \"tier\": \"100mb\"}'\n```\n\nReturns `{uploadId, uploadUrl}`.\n\n**2. Upload the zip:**\n\n```bash\ncurl -X PUT \"$uploadUrl\" -H \"Content-Type: application\u002Fzip\" --data-binary @site.zip\n```\n\n**3. Activate the site (SIWX, free):**\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Factivate -m POST -b '{\"uploadId\": \"...\"}'\n```\n\nReturns `{siteUrl, fileCount, files}`. Site is live at `https:\u002F\u002F{uploadId}.s.stableupload.dev\u002F`.\n\n### Update an Existing Site\n\nUpdate for free: PUT \u002Fapi\u002Fsite to get a new upload URL, upload the new zip, then activate.\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite -m PUT -b '{\"uploadId\": \"...\", \"filename\": \"my-site.zip\"}'\n```\n\nThen upload the new zip and call activate again.\n\n### Custom Domain\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Fdomain -m POST -b '{\"uploadId\": \"...\", \"hostname\": \"www.example.com\"}'\n```\n\nReturns DNS records to configure. Check status:\n\n```bash\nnpx agentcash@latest fetch \"https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Fdomain\u002Fstatus?uploadId=...\"\n```\n\nDetach a domain:\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Fdomain -m DELETE -b '{\"uploadId\": \"...\", \"hostname\": \"www.example.com\"}'\n```\n\n### Renew a Site\n\n```bash\nnpx agentcash@latest fetch https:\u002F\u002Fstableupload.dev\u002Fapi\u002Fsite\u002Frenew -m POST -b '{\"uploadId\": \"...\", \"count\": 4}'\n```\n\nExtends 4 x 6 months.\n\n### Notes\n\n- Max 500 files per site\n- Tier limit applies to uncompressed size\n- Custom domains get automatic HTTPS via Cloudflare\n\n## Error Handling\n\n- **Insufficient balance**: Run `npx agentcash@latest accounts` to show deposit links and wallet addresses\n- **File too large for tier**: Suggest the next tier up\n- **Upload URL expired**: Buy a new slot (the previous payment is non-refundable)\n- **curl fails**: Verify the file path exists and the uploadUrl is correctly quoted\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fpayments\u002Fupload-and-share","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill upload-and-share",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill upload-and-share",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill upload-and-share","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fpayments\u002Fupload-and-share\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",680,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fpayments\u002Fupload-and-share\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]