// how it works
A notice becomes a shortcut
An automation posts a command as text in Discord. With a rule in place, the command becomes a link; one click opens Claude with the request ready.
Before · plain text
[TASK-123] Error sending message
Run the triage with /triage TASK-123
After · link
[TASK-123] Error sending message
Run the triage with /triage TASK-123
Finds
The script runs on the pages you added and follows new content as it arrives, like new Discord messages.
Replaces
Each match of a rule becomes a claude://code/new link, built from the rule’s value and folder.
Opens
The click opens a Claude Desktop session with the message typed. Nothing is sent on its own: you review it and press Enter.
// installation
Install it
Install from the Chrome Web Store (works in Chrome, Brave and other Chromium browsers), or load it from the source code.
Chrome Web Store · recommended
One click, with automatic updates. Then pin the extension icon to the toolbar.
From the source code
- Download or clone the repository.
- Open
brave://extensionsorchrome://extensions. - Turn on Developer mode.
- Click Load unpacked and pick the folder.
- Pin the extension icon to the toolbar.
From the terminal
# clone the code git clone https://github.com/correaschneider/claude-links-extension.git # after changing files: # ↻ on the extension + reload the tab
// configuration
Rules per page
Click the extension icon to see the list of pages. The + button adds a new one with the current tab’s domain filled in. When you save, the browser asks for permission for the extension to run on that site; without it, the extension does not touch the page.
| Field | What it is |
|---|---|
| Page | Domain where the rules apply, e.g. discord.com. Subdomains match too. |
| Key | Regex that finds the text to replace. Validated as you type. |
| Value | Message sent to Claude (the q parameter). Accepts $1, $2… from the key’s groups. |
| Folder | Optional. Folder where the session opens. Empty = Claude Desktop’s default folder. |
| ▶ | Applies the rule to the open tab right away, without saving, and tells you how many matches became links. |
Example rule
key /(triage|open-ticket)\s+([A-Z][A-Z0-9]*-\d+) value Run the skill $1 on $2 link claude://code/new?q=Run%20the%20skill%20triage%20on%20TASK-123
// limitations
Good to know
Claude Desktop and website behaviors that shaped the extension.
Commands with a slash don’t work in the value. Claude Desktop replaces the leading slash of q with another character, so the text is not a command. Ask for the skill in words: “Run the skill X on Y”.
Discord doesn’t accept these links in a message. It only makes http(s) links clickable. That’s why the replacement happens in the browser.
Confirmation the first time. The browser asks whether it may open Claude when you click the first claude:// link.
With a folder, Claude Desktop asks you to trust it on every link, even if you already trusted it before. Leave the folder empty to skip that prompt.
Text captured by $1, $2… comes from the page, and anyone in the channel may have written it. Line breaks and invisible characters become spaces and each group is cut at 200 characters. Hover a link to see the full message and review it before pressing Enter.