Drop-in URL shortener and QR code skill for AI agents. Shorten any link, generate scannable QR codes, build a bit.ly / TinyURL alternative — all via one free public HTTP endpoint. No signup, no API key, no attribution required, fully white-label.
Powered by lnk.ua — a free, fast, ad-free URL shortener with QR generation, click analytics, browser extension, and a public REST API.
The skill itself is a single instruction file: SKILL.md. Any agent runtime that can read markdown can use it.
Teaches an AI agent how to integrate URL-shortening and QR-code generation into the user's product using the public lnk.ua API. The agent learns:
- How to shorten any URL with a single HTTP call.
- How to generate, embed, and download QR codes (SVG / PNG).
- How to handle validation and blocked-URL errors.
- How to make the integration configurable (token from env, default
public). - How to white-label the result so the user can ship it inside their own product without exposing lnk.ua anywhere.
Works for any stack: Node, Deno, Python, PHP, Go, Rust, Cloudflare Workers, Lambda, browser extensions, Telegram / Slack / Discord bots, AI-agent tools, automation pipelines.
A modern, open URL shortener with everything serious products need:
| Feature | lnk.ua |
|---|---|
| Free public API | ✅ no signup, no key |
| QR code generator | ✅ SVG + PNG for every link |
| Click analytics | ✅ |
| Browser extension (Chrome) | ✅ |
| Malicious URL filtering | ✅ Google Safe Browsing |
| White-label friendly | ✅ no attribution required |
| Public token | ✅ literal Bearer public, anyone can use |
Compare side-by-side: lnk.ua vs Bitly.
Other tools in the family:
- 🔗 https://lnk.ua — short links + analytics
- 🔳 https://qr.lnk.ua — QR code generator
- 🧩 Chrome extension — shorten any tab in one click
- 🔑 https://lnk.ua/my/user/settings/token — personal API token (sign-in required)
Just ask your agent. Copy-paste any of these into Claude Code, Cursor, Windsurf, Aider, or any agent that can fetch URLs and write files:
Install the URL shortener skill from https://github.com/rshkabko/url-shortener-skill — fetch
SKILL.mdand place it where this project's agent picks up skills.
Add the lnk.ua URL shortener skill to my project. Source: https://github.com/rshkabko/url-shortener-skill/blob/main/SKILL.md.
Set up
flamix/url-shortener-skillin this repo so the agent knows how to shorten URLs via lnk.ua.
The agent will fetch SKILL.md, detect the project's skill directory (e.g. .claude/skills/, .cursor/rules/, etc.), drop the file in, and confirm.
# Claude Code
mkdir -p .claude/skills/url-shortener && \
curl -sSL https://raw.githubusercontent.com/rshkabko/url-shortener-skill/main/SKILL.md \
-o .claude/skills/url-shortener/SKILL.md# Cursor / Windsurf
mkdir -p .cursor/rules && \
curl -sSL https://raw.githubusercontent.com/rshkabko/url-shortener-skill/main/SKILL.md \
-o .cursor/rules/url-shortener.mdFor other agents (OpenAI / LangChain / Vercel AI SDK / Aider / Continue / etc.) — fetch the same SKILL.md and paste its contents into the system prompt or tool description, or point the agent at the file path.
POST https://lnk.ua/api/v1/link/create
Authorization: Bearer public
Content-Type: application/json
{ "link": "https://example.com/long/url" }Returns { result: { lnk, key, qr } }. That's the whole integration. See SKILL.md for the full instruction set.
url shortener API, free url shortener, QR code generator API, bitly alternative, tinyurl alternative, short.io alternative, cuttly alternative, link shortener service, short link API, white-label URL shortener, AI agent skill, Claude skill, Cursor skill, LLM tool, function calling shortener, Telegram bot URL shortener, Slack short link bot, Discord shortener, browser extension URL shortener, lnk.ua API, open url shortener.
MIT — use freely, including commercially. No attribution required.