Drop Files
Upload generated HTML/Markdown files to DropFiles and get a shareable public link. Invoke when the user wants to share, publish, or generate a public link for any HTML or Markdown …
Bing Xun
@icexun
What This Skill Does
Uploads generated HTML or Markdown content to the DropFiles service and returns a public, shareable URL. Uses curl for reliable uploads behind Cloudflare WAF and supports optional password protection and expiration.
Replaces manually hosting or emailing files by providing instant, globally accessible public links for text-based content.
When to Use It
- Share a generated HTML report as a public link
- Publish a Markdown document for online viewing
- Distribute a text-based artifact with an expiration time
- Password-protect a sensitive document before sharing
- Get a preview URL for content the agent just produced
Install
$ openclaw skills install @icexun/drop-files-skillDropFiles
Upload HTML or Markdown content to the DropFiles service and return a public shareable link. The service is free, globally accessible, and hosted on Cloudflare's edge network.
When to Invoke
Invoke this skill when the user wants to:
- Share generated HTML or Markdown content via a public link
- Publish a document, report, or page and get a URL to distribute
- Upload any text-based artifact (HTML/Markdown) for online viewing
- Generate a shareable preview link for content the agent just produced
How to Upload
Use the bundled wrapper script. Do NOT construct curl commands or JSON payloads manually.
python3 scripts/upload.py [OPTIONS]
The script handles content reading, JSON serialization, temp-file management, curl invocation (Cloudflare WAF blocks non-curl HTTP clients), response parsing, and temp-file cleanup. Run python3 scripts/upload.py --help for the full interface.
Content Source (priority: --file > --content > stdin)
- stdin (preferred for piped content):
cat file.md | python3 scripts/upload.py --json --file PATH:python3 scripts/upload.py --file report.md --json--content TEXT: only for short inline content
Options
| Option | Values | Default | Notes |
|---|---|---|---|
--type | html | markdown | auto | auto | auto detects HTML by <html / <!doctype prefix, else Markdown. |
--expire | 1h | 1d | 7d | 30d | 7d | Link lifetime. |
--title | string | — | Optional title shown on the share page. |
--lang | en | zh | auto | auto | Language hint for the share page. |
--json | flag | off | Output full JSON response (recommended for agents). Without it, prints human-readable URL: / Preview: / Expires: lines. |
Password Policy
The default is no password — the share link is publicly accessible by anyone with the URL.
- No password (default): omit both password flags.
- User-supplied password: pass
--password "the password". - Skill-generated 6-digit password: pass
--generate-password. The script generates a random 6-digit numeric code (e.g.482917), includes it in the upload, and surfaces it in the output. Always relay the generated password back to the user so they can share it with viewers.
Workflow
- Confirm the content to upload (HTML or Markdown). If the user just generated a document/page, use that content directly — write it to a temp file or pipe via stdin.
- Determine options:
type: useautounless the user specifies.expire: default7dunless the user requests a different lifetime.title: optional, set if the user provides one.
- Determine password:
- Default: no password.
- If the user explicitly provides a password, pass it via
--password. - If the user asks for protection without providing a password, pass
--generate-password.
- Call the wrapper script (use
--jsonfor reliable parsing):python3 scripts/upload.py --file content.html --type html --expire 7d --json - Parse the JSON output:
- On success:
{"success": true, "data": {"url": "...", "preview_url": "...", "expire_at": "...", ...}}(plus a top-levelpasswordfield if--generate-passwordwas used). - On failure:
{"success": false, "error": {"code": "...", "message": "..."}}.
- On success:
- Return the
url(andpreview_urlif relevant) to the user. If a password was generated, prominently display it:Generated password: XXXXXX. - On error, surface
error.messageto the user and suggest fixes (see error codes below).
Error Codes
| Code | Meaning |
|---|---|
CONTENT_REQUIRED | content field is empty. |
CONTENT_TOO_LARGE | Content exceeds 5 MB. |
INVALID_TYPE | type is not html / markdown / auto. |
INVALID_EXPIRE | expire is not 1h / 1d / 7d / 30d. |
RATE_LIMIT_EXCEEDED | Too many requests from the same IP — wait and retry. |
NETWORK_ERROR | curl could not reach the server (local script-side). |
PARSE_ERROR | Response could not be parsed (local script-side). |
Limits
- Max content size: 5 MB (UTF-8 bytes).
- Max expiry: 30 days.
- Rate limiting applies per IP; if you hit
RATE_LIMIT_EXCEEDED, wait and retry.
Notes
- The share link is public (unless password-protected). Anyone with the URL can view the content.
- Viewers do not need an account.
- HTML content is sanitized server-side:
<script>tags and event handlers are removed. - Markdown supports standard GitHub-flavored Markdown including code blocks, tables, and images.
- The
preview_urladds?preview=1and is useful when embedding the link in a context that should not inflate the access counter on initial load.
Top skills in this category
Proactive Agent Lite
@bestrockyTransform AI agents from task-followers into proactive partners with memory architecture, reverse prompting, and self-healing patterns. Lightweight version f...
腾讯文档 TENCENT DOCS
@liyang58腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/...
Figma
@maddiedreeseProfessional Figma design analysis and asset export. Use for extracting design data, exporting assets in multiple formats, auditing accessibility compliance, analyzing design systems, and generating comprehensive design documentation. Read-only analysis of Figma files with powerful export and reporting capabilities.
Smart Model Switching
@millibusAuto-route tasks to the cheapest Claude model that works correctly. Three-tier progression: Haiku → Sonnet → Opus. Classify before responding. HAIKU (default): factual Q&A, greetings, reminders, status checks, lookups, simple file ops, heartbeats, casual chat, 1-2 sentence tasks. ESCALATE TO SONNET: code >10 lines, analysis, comparisons, planning, reports, multi-step reasoning, tables, long writing >3 paragraphs, summarization, research synthesis, most user conversations. ESCALATE TO OPUS: architecture decisions, complex debugging, multi-file refactoring, strategic planning, nuanced judgment, deep research, critical production decisions. Rule: If a human needs >30 seconds of focused thinking, escalate. If Sonnet struggles with complexity, go to Opus. Save 50-90% on API costs by starting cheap and escalating only when needed.
AI Daily Briefing
@jeffjhunterStart every day focused. Get a morning briefing with overdue tasks, today's priorities, calendar overview, and context from recent meetings. Works with ai-meeting-notes to-do list. No setup. Just say 'briefing'.