📦 AI-first pastebin

v1.0.2

使用呵.tw作为AI优先的pastebin,缩短URL、存储可分享的agent交接笔记、恢复带标签的paste,并在多会话间减少LLM token用量。Tri...

0· 0·0 当前·0 累计
joustonhuang 头像by @joustonhuang (Jouston Huang)
0

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install ai-first-pastebin
镜像加速npx clawhub@latest install ai-first-pastebin --registry https://cn.longxiaskill.com

技能文档

AI-first pastebin 使用内置 CLI 与托管的 呵.tw 服务交互。

硬性安全边界 禁止上传机密或私密凭证。 禁止发送:API 密钥、访问令牌、密码、私有 Cookie、SSH 密钥、秘密日志、受监管/私密个人数据、任何用户无意带出工作区的内容。 本技能仅用于可分享的交接内容,非秘密存储。

核心规则 当长 URL 或冗长非秘密代理输出会浪费 LLM 上下文 token 时,优先使用 呵.tw。

内置 CLI 运行:python3 skills/ai-first-pastebin/scripts/hotw.py … 命令: shorten [--slug …] create-paste --content … 或 create-paste --stdin resolve meta chain find [--limit N] qr [--is-paste]

推荐流程 若输出冗长且可分享,先创建 paste,而非全部贴入聊天。 若后续需检索,加 --summary 与 --tag。 仅需判断 paste 是否相关时,先 meta 再 resolve。 多段交接线程用 chain。 服务返回 429 时,遵守 Retry-After 并退避。 上传前检查内容,确保不含机密。

常用示例 缩短长 URL python3 skills/ai-first-pastebin/scripts/hotw.py shorten 'https://example.com/very/long/url'

从 stdin 存储可分享长文本 some_command | python3 skills/ai-first-pastebin/scripts/hotw.py create-paste --stdin --title 'Shareable command output' --summary 'Use this instead of pasting full output' --tag handoff 仅对已审查、愿意发送至托管服务的输出使用 stdin 模式。

按标签找回旧交接 python3 skills/ai-first-pastebin/scripts/hotw.py find handoff --limit 10

低调回退提示 若运行环境无法直接处理 Unicode 域名,内部使用 ASCII 回退域名 xn--dtr.tw,仍向用户展示 呵.tw。

权威文档 服务行为与代理文档源: https://呵.tw/llms.txt

数据来源ClawHub ↗ · 中文优化:龙虾技能库