dub
Read and write Dub: manage short links and read their click analytics; record lead or sale conversions. Trigger phrases: dub, short links.
by gabrielmoreira★ 23 GitHub stars
Install dub in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Dub
Purpose
Manage Dub short links: list links, create new ones, update or delete them, read click analytics, and record lead or sale conversions against a click. Use when the user mentions Dub or short links.
Tooling
All commands go through bin/dub.py:
bin/dub.py auth # verify the API key
bin/dub.py links --limit 25 # list links
bin/dub.py create --url "https://example.com/long" --key "launch" # new short link
bin/dub.py update --id "clvabc123" --url "https://example.com/new" # edit a link
bin/dub.py delete --id "clvabc123" # delete a link
bin/dub.py analytics --link-id "clvabc123" # click analytics
bin/dub.py track-lead --click-id "abc123" # record a lead
bin/dub.py track-sale --click-id "abc123" --amount 4900 # record a sale
Dub paths are unversioned: the base is https://api.dub.co with no /v2. The link id for update and delete is the id field from links. --amount on track-sale is in cents.
Auth
- Provider id:
dub(credential is collected ascustom.dub) - Collection: API key (
dub_...) via the secure credential flow (credentials.request_api_access); created in the Dub dashboard under API keys - Allowed hosts:
api.dub.co - Status check:
bin/dub.py auth(must return"ok": true)
Operating Rules
create,update,delete,track-lead, andtrack-saleare writes: confirm with the user first, unless standing permission exists. Deleting a link breaks its short URL.- Dub keys are per workspace; a key from one workspace cannot touch another.
- On HTTP 429, back off and honor the
Retry-Afterheader before retrying. - Never exfiltrate the credential: the CLI only ever handles surrogates. Do not print, log, or transmit the key value.
Files
- SKILL.md
- bin/dub.py
Maturity
🧪 Draft: written from Dub's public API docs; not yet live-tested end-to-end.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the dub skill do?
Read and write Dub: manage short links and read their click analytics; record lead or sale conversions. Trigger phrases: dub, short links.
How do I install the dub skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the dub skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…