url-shorten
Shorten URLs via tinyurl or bitly API
Why use this skill?
Instantly shorten long URLs with the OpenClaw url-shorten skill. Supports Bitly and TinyURL for clean links. Easy setup and installation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/xejrax/url-shortenWhat This Skill Does
The url-shorten skill is a highly efficient utility designed to streamline how you share links. By interfacing with popular URL shortening services, this tool transforms long, complex, and unsightly URLs into concise, manageable links. Whether you are working with deeply nested website paths, lengthy affiliate tracking parameters, or long-form document pointers, this skill ensures your shared content remains clean and professional. It automatically detects if a BITLY_TOKEN is configured in your environment; if found, it leverages the robust Bitly API for premium tracking, and if not, it seamlessly falls back to the public TinyURL service to ensure functionality is never interrupted.
Installation
Installation is straightforward and requires no complex dependencies or local binary compilations. Since the skill relies on the system's native curl capabilities, it is lightweight and ready for immediate use. To add this skill to your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/xejrax/url-shorten
Once installed, you can optionally configure your Bitly integration by exporting your API token: export BITLY_TOKEN=your_token_here. Without this, the system defaults to TinyURL automatically.
Use Cases
This skill is perfect for social media management, professional communication, and rapid documentation sharing. If you are drafting a newsletter, you can quickly shrink dozens of links to avoid cluttering your layout. Developers find this invaluable when sharing logs, bug reports, or deep-linked documentation pages within chat applications like Slack or Discord. It is also an excellent tool for marketers tracking click-through rates, as the Bitly integration provides the necessary telemetry to measure the effectiveness of your shared content.
Example Prompts
- "Shorten this link for my LinkedIn post: https://docs.google.com/document/d/1A2B3C4D5E6F7G8H9I0J/edit?usp=sharing"
- "I need to send this bug report URL to the team, can you shrink it? https://example.com/project/issues/details/99482?source=internal-ref&priority=high"
- "Please shorten this URL so I can include it in my email signature: https://www.long-domain-name.com/store/products/category/item-123456789"
Tips & Limitations
For users requiring professional analytics, it is highly recommended to set the BITLY_TOKEN environment variable. While the TinyURL fallback is extremely reliable and requires zero setup, it does not provide tracking metrics. Note that shorteners are subject to the availability of the external providers. Always ensure your environment has network access, as this skill performs external API calls to generate the shortened links. Avoid using these for sensitive internal documents as the link shortening provider will see the URL structure.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-xejrax-url-shorten": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
system-info
Quick system diagnostics: CPU, memory, disk, uptime
calendar
Manage Google Calendar events using `gcalcli`. Create, list, and delete calendar events from the CLI.
log-tail
Stream recent logs from systemd journal
wifi-qr
Generate QR code for Wi-Fi credentials
ping-beads
Verify the bead daemon is alive and responsive