← 返回
数据分析 中文

PrivateBin Upload Skill

Upload content to a PrivateBin instance and return a shareable link. Use when the user wants to share text, code, reports, or files via paste URL with option...
上传内容到 PrivateBin 并返回可分享链接,适用于通过粘贴链接分享文本、代码、报告或文件,可设置选项。
kafcoppelia
数据分析 clawhub v1.0.0 1 版本 99866 Key: 无需
★ 0
Stars
📥 745
下载
💾 9
安装
1
版本
#latest

概述

PrivateBin Upload Skill

When to Use

Use this skill when:

  • User wants to upload/share text, code, reports, or files via a paste link
  • User mentions "paste", "privatebin", "shareable link", "burn after reading", or "password-protect"
  • User needs expiry-controlled or one-time viewing sharing

Do NOT use this skill when:

  • User only wants to read an existing paste (use privatebin show directly)
  • No content or file has been identified to upload
  • User is asking about PrivateBin in general without intent to upload

Input / Output

Input:
  content:    string | file_path   # text/code to upload, or file path
  formatter?: plaintext | markdown | syntaxhighlighting  # default: plaintext
  expire?:    5min | 10min | 1hour | 1day | 1week | 1month | 1year | never
  burn_after_reading?: boolean     # default: false
  password?:  string               # ask user if requested
  attachment?: boolean             # true for binary/image/archive files
  bin?:       string               # named instance from config

Output:
  paste_url:  string   # shareable link to present
  expire:     string   # expiry setting used
  password?:  string   # echoed back if set

Steps

  1. Check CLI — Run privatebin --version. If not found, install privatebin-cli and stop until user resolves it.
  1. Check config — Verify ~/.config/privatebin/config.json exists. If missing, run:

```bash

privatebin init # default: privatebin.net

privatebin init --host https://bin.example.com # custom host

```

  1. Determine parameters — Infer formatter, expiry, attachment from context. Use defaults (plaintext, 1day) if unspecified. Ask for password only if user requested it.
  1. Run upload — Use --output=json as global flag (before create):

```bash

# Text/code via stdin

printf '%s' "" | privatebin --output=json create [flags]

# From file

privatebin --output=json create --filename=/path/to/file [flags]

# File attachment

privatebin --output=json create --attachment --filename=/path/to/file [flags]

```

  1. Parse response — Extract paste_url from JSON:

```json

{ "paste_id": "...", "paste_url": "https://bin.example.com?id#key", "delete_token": "..." }

```

  1. Confirm — Present paste_url, expiry, and password (if set) to user.

Common Flags

FlagExampleUse Case
-------------------------
Formatter--formatter=markdownMarkdown reports
Expiry--expire=10minQuick share
Burn--burn-after-readingOne-time secret
Password--password=secretAccess control
Attachment--attachmentBinary/image files

On Failure

ErrorAction
---------------
CLI not foundGuide user to install (see README.md)
no privatebin instance configuredRun privatebin init --host --force
Rate limitWait 10s, retry once. If fails again, report to user
Upload errorShow error message. Check host URL, network, config

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,621
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,177
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,103