š§ Linkfuse OpenClaw Plugin & Skill | ClawHub
Looking to integrate Linkfuse into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate marketing & sales tasks instantly, without having to write custom tools from scratch.
What this skill does
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.
Install
openclaw skills install @oliverw/linkfusenpx clawhub@latest install linkfuseFull SKILL.md
Open original| name | description |
|---|---|
| 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. |
SKILL.md content below is scrollable.
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_TOKENis not set. Get your token fromhttps://app.linkfuse.net/user/external-tokenand add it to your environment:export LINKFUSE_TOKEN=your_token_hereThen 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
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_TOKENis 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:
echo -n "<short-url>" | xclip -selection clipboard 2>/dev/null || echo -n "<short-url>" | pbcopy 2>/dev/null || true
Notes
allowRecycle: trueis 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-skillheader identifies this client to the server.