description:Manages short URLs on MPM's mpm.to YOURLS instance. Use this skill whenever the user wants to create, look up, expand, update, or delete short links at mpm.to. Triggers on phrases like "create a short link", "make a short URL for", "what does mpm.to/X go to", "delete the mpm.to link", "update the short code", "list our short URLs", "add a short link", "mpm link", "short code", "shortcode", "shorten this URL", or any mention of mpm.to URLs. Also use when the user says things like "can you shorten that" or "set up a link for the new campaign".
---
# MPM URL Shortener
Manages short URLs on MPM's YOURLS instance at `https://mpm.to`. Supports full CRUD — create, read/list, update, and delete — using only the API signature token. No username or password is stored.
## How it works
- **Create & Read** always use the YOURLS API with the signature token — no password needed.
- **Update & Delete** use one of two methods, tried in order:
1.**API + plugin** (preferred): If the `mpm-api-extras` plugin is active on the server, the signature token handles everything.
2.**Admin session fallback**: If the plugin isn't installed, the script logs into the YOURLS admin interface using a stored username + password.
The bundled script `scripts/yourls_manager.py` handles the switching automatically — you don't need to think about which method is in use.
---
## One-time plugin installation (recommended)
Installing the plugin means only the signature token is ever needed. No passwords in Keychain.
See `plugin/INSTALL.md` for instructions to pass to your server admin.