返回顶部
L

Linkfuse

Create a Linkfuse affiliate short link from any URL. Trigger this skill when the user wants to create a Linkfuse link, shorten an affiliate URL, or says "/linkfuse". Requires LINKFUSE_TOKEN environment variable.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.4
安全检测
已通过
672
下载量
0
收藏
概述
安装方式
版本历史

Linkfuse

# Linkfuse Skill Creates an affiliate short link via the Linkfuse REST API — same API used by the Chrome and Firefox extensions. ## Trigger Conditions Use this skill when the user: - Says `/linkfuse [url]` - Asks to "create a Linkfuse link" for a URL - Wants to shorten an affiliate/Amazon URL via Linkfuse ## Authentication This skill reads the Bearer token exclusively from the `LINKFUSE_TOKEN` environment variable. If it is not set, tell the user: > `LINKFUSE_TOKEN` is not set. Get your token from `https://app.linkfuse.net/user/external-token` and add it to your environment: > ``` > export LINKFUSE_TOKEN=your_token_here > ``` > Then retry. Do not proceed without a token. ## Workflow ### Step 1 — Get the URL If the user did not provide a URL, ask for one before proceeding. ### Step 2 — Create the link ```bash node scripts/create-link.js --url "<url>" ``` - **Exit 0**: stdout contains JSON `{ "url": "...", "title": "..." }` — proceed to Step 3. - **Exit 2 (Unauthorized)**: Tell the user their `LINKFUSE_TOKEN` is invalid or expired and they should update it. - **Exit 1**: Display the stderr error message to the user. ### Step 3 — Display result Show the user: ``` ✓ Link created: <short-url> Title: <title> ``` Offer to copy the short URL to the clipboard: ```bash echo -n "<short-url>" | xclip -selection clipboard 2>/dev/null || echo -n "<short-url>" | pbcopy 2>/dev/null || true ``` ## Notes - `allowRecycle: true` is sent with every request — if the same URL was shortened before, the existing link is returned rather than creating a duplicate. - The `X-API-CLIENT: claude-skill` header identifies this client to the server.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 linkfuse-1776420064 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 linkfuse-1776420064 技能

通过命令行安装

skillhub install linkfuse-1776420064

下载 Zip 包

⬇ 下载 Linkfuse v1.0.4

文件大小: 2.84 KB | 发布时间: 2026-4-17 18:36

v1.0.4 最新 2026-4-17 18:36
- Added an "emoji: 🧠" field under the "clawdbot" metadata section in SKILL.md.
- No other changes to functionality or usage.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部