PicSee 短链接生成器:高效链接管理 - Openclaw Skills
作者:互联网
2026-04-05
什么是 PicSee 短链接生成器?
PicSee 短链接生成器技能使 AI 代理能够与 PicSee.io 交互,将冗长笨拙的链接转换为简洁、易于分享的 URL。它利用浏览器自动化处理缩短流程,并集成本地 Python 功能,根据需求生成高质量的二维码。通过利用 Openclaw Skills,开发人员可以在不离开其代理环境的情况下自动执行链接管理和跟踪,从而确保代理和最终用户的无缝体验。
下载入口:https://github.com/openclaw/skills/tree/main/skills/picseeinc/picsee-url-shortener-web
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install picsee-url-shortener-web
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 picsee-url-shortener-web。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
PicSee 短链接生成器 应用场景
- 缩短用于社交媒体分发的长联盟链接或追踪链接。
- 为实物营销材料和名片生成高分辨率二维码。
- 通过清理深度链接 URL 来提高技术文档的可读性。
- 将自动化链接管理集成到更大的 Openclaw Skills 自动化工作流中。
- 对目标长 URL 进行编码,并通过浏览器工具使用 PicSee 直接缩短端点将其打开。
- 使用特定的等待时间监控浏览器状态,以确保远程服务器上的缩短过程完成。
- 捕获页面快照,从页面上的 aria-label 或文本内容中提取生成的短 URL。
- 向用户提示结果,并提供生成相应二维码的选项以节省 Token。
- 在隔离的虚拟环境中执行 Python 脚本,将二维码图像渲染并保存为 PNG 文件。
PicSee 短链接生成器 配置指南
要开始使用此技能,请确保您的系统安装了 Python 3.3 或更高版本,以支持二维码生成模块。该技能旨在 Openclaw Skills 框架内无缝运行。
# 该技能在执行期间自动管理其虚拟环境
# 但是,如果需要,您可以手动验证依赖项:
python3 -m venv ~/openclaw_python_venv
source ~/openclaw_python_venv/bin/activate
pip install qrcode pillow
PicSee 短链接生成器 数据架构与分类体系
| 属性 | 描述 |
|---|---|
| targetUrl | 用户提供的用于处理的原始长链接。 |
| targetId | 用于跨步骤跟踪会话的浏览器标签标识符。 |
| Shortened URL | 生成的输出链接(通常是 pse.is 或 picsee.io 域名)。 |
| QR Code Path | 保存在 /tmp/picsee_qr.png 的临时本地文件位置。 |
name: short-url
description: Quickly shorten URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also view analytics and history. Use when user says "縮網址", "短網址", "shorten URL", or requests URL shortening.
PicSee URL Shortener
Quickly shorten long URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also access analytics and history records.
Important Rules
- Always use
profile: "openclaw" - Each snapshot generates new refs - don't reuse old refs
- If any step fails, restart from Step 1
- When reading files, only use
file_pathparameter - don't passpath: ""(empty string causes EISDIR errors) - QR code is opt-in - Don't generate QR code unless user explicitly asks for it (saves tokens)
- Use virtual environment for QR generation - Ensures qrcode package is always available without polluting system Python
Workflow
Core technique: URL-encode the link and append it to the query string, PicSee will auto-shorten it. Only generate QR code if user requests it (to save tokens).
Step 1: Open PicSee with URL
URL-encode the long URL, then append it to https://picsee.io/?url=.
Use browser tool:
action: "open"
profile: "openclaw"
targetUrl: "https://picsee.io/?url=(URL-encoded long URL)"
URL encoding example:
- Original:
https://example.com/path?a=1&b=2 - Encoded:
https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2 - Full:
https://picsee.io/?url=https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2
Save the returned targetId - you'll need it for following steps.
Step 2: Wait for shortening to complete
Use browser tool to wait 3 seconds:
action: "act"
profile: "openclaw"
targetId: "(targetId from Step 1)"
request:
kind: "wait"
timeMs: 3000
Step 3: Extract shortened URL
Take a snapshot and extract the shortened URL from the page content:
action: "snapshot"
profile: "openclaw"
targetId: "(targetId from Step 1)"
refs: "aria"
Read the snapshot text and identify the shortened URL. PicSee displays the result prominently on the page after shortening completes. Look for:
- A clickable link that looks like a short URL
- Text that says "shortened URL" or similar followed by a link
- Any URL that's clearly shorter than the original input
If you can't find the short URL in the snapshot, wait another 3 seconds and retry. If still not found after 2 retries, use the fallback method (see below).
Step 4: Reply with short URL and ask about QR code
Reply with the shortened URL only. Do NOT generate QR code by default.
Reply in the same language as the user's original request. Example format in English:
Short URL: https://pse.is/xxxxx
Need QR code?
The language model will automatically translate this to the user's language if needed.
Wait for user response. If user confirms they want QR code, proceed to Step 5.
Step 5 (Optional): Generate QR code with virtual environment
Only run this step if user explicitly requests QR code.
Use Python virtual environment to ensure qrcode package is available:
# Check if venv exists, create if not
if [ ! -d ~/openclaw_python_venv ]; then
python3 -m venv ~/openclaw_python_venv
source ~/openclaw_python_venv/bin/activate
pip install qrcode pillow
else
source ~/openclaw_python_venv/bin/activate
fi
# Generate QR code
python3 - <<'PY'
import qrcode
qr = qrcode.QRCode()
qr.add_data("THE_SHORT_URL_HERE")
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("/tmp/picsee_qr.png")
print("QR code saved")
PY
After generation, send the QR code image file using message tool with filePath: "/tmp/picsee_qr.png".
Fallback Method (when quick method fails)
If Step 1's URL parameter method doesn't auto-shorten (page stays on homepage), use manual operation:
- snapshot to get page element refs (
refs: "aria") - Find the input box (textbox named "網址貼這裡") and button (
img "PicSee!") - act type to enter the URL in the input box
- act click to click the shorten button
- Return to Steps 2-4 to extract results
Common Error Handling
- EISDIR error: When reading files, don't pass
path: "", only usefile_pathparameter - Unknown ref: Ref has expired, re-run snapshot to get new refs
- tab not found: Page was closed, restart from Step 1
- Short URL not visible in snapshot: Increase wait time to 5000ms and retry
- Still can't find short URL: Switch to fallback method
- venv creation fails: Check Python version with
python3 --version(need 3.3+)
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
智能体浏览器:高性能无头 Web 自动化 - Openclaw Skills
Pine 编辑器:TradingView Pine Script v6 自动化 - Openclaw Skills
ClawdHub:通过 CLI 管理和发布 Openclaw 技能
Mixtiles Monthly:自动化的 WhatsApp 照片流水线 - Openclaw Skills
ClawdHub CLI: 管理并发布 Openclaw 技能 - Openclaw Skills
验证检查点:自动化代码验证 - Openclaw Skills
bird:用于阅读、搜索和发布内容的 X/Twitter 命令行工具 - Openclaw Skills
Bird:X/Twitter 命令行工具,用于阅读、搜索和发布 - Openclaw Skills
bird:用于阅读和发布的 X/Twitter CLI - Openclaw Skills
bird:面向 AI 智能体的 X/Twitter 命令行工具 - Openclaw Skills
AI精选
