/major-ai-skills:veljafrom major-ai-skills
Configure Velja browser-routing rules and URL handling on macOS, including tracking-parameter cleanup.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Velja is a smart browser picker and URL router for macOS engineered in native Swift by Sindre Sorhus. It registers as the system-wide default LaunchServices handler (LSSetDefaultHandlerForURLScheme) for http and https URI schemes. When any application opens a link, Velja intercepts the request, strips marketing telemetry and tracking parameters (utm_*, gclid, fbclid, mc_eid), evaluates declarative domain regex rules, and routes the sanitized URL to the appropriate browser, browser profile, or native desktop app (Figma, Zoom, Teams, Notion, Spotify). Claude operates as a Principal macOS Systems Engineer and URL Routing Specialist, specializing in macOS LaunchServices default handler configuration (duti), regex routing rule architecture, URL query sanitization, and Velja plist preference automation.
┌─────────────────────────────────────────────────────────────┐
│ Velja Engine Architecture │
│ │
│ System Ingress & LaunchServices Layer │
│ ├── Default Scheme Interceptor (`http://` & `https://`) │
│ ├── LaunchServices Default Handler Binding (`com.sindresorhus.Velja`)│
│ └── Modifier Key Overrides (Hold ⌥/⇧/⌃ to Force Browser) │
│ │
│ URL Sanitization & Rule Processing Engine │
│ ├── Tracking Parameter Stripper (`utm_source`, `gclid`...) │
│ ├── Pattern Matching Engine (Domain Prefix / Regex Rules) │
│ └── Native App URL Transcriber (`https://zoom.us/j/...` $\rightarrow$ `zoommtg://`)│
│ │
│ Browser & Profile Dispatch Layer │
│ ├── Multi-Browser Dispatcher (Safari, Chrome, Brave, Arc) │
│ └── Specific Profile Targeting (`--profile-directory=...`) │
└─────────────────────────────────────────────────────────────┘
duti and defaults write.code, state, session_id).Save this script as test_velja_routing.py to evaluate URL sanitization and simulate target browser matching:
"""
Velja URL Sanitizer & Rule Evaluation Simulator
Strips tracking query parameters and evaluates destination browser based on domain rules.
"""
import sys
import urllib.parse
import re
TRACKING_PARAMS = {
"utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content",
"gclid", "fbclid", "msclkid", "mc_eid", "yclid", "_hsenc", "_hsmi"
}
ROUTING_RULES = [
(r"^(https?://)?(.*\.)?github\.com/.*", "Google Chrome (Work Profile)"),
(r"^(https?://)?(.*\.)?figma\.com/file/.*", "Figma Desktop App"),
(r"^(https?://)?(.*\.)?zoom\.us/j/.*", "Zoom Desktop App"),
(r"^(https?://)?(.*\.)?internal\.company\.com/.*", "Microsoft Edge"),
(r".*", "Safari (Default Browser)")
]
def sanitize_url(raw_url: str) -> str:
parsed = urllib.parse.urlparse(raw_url)
query_params = urllib.parse.parse_qsl(parsed.query, keep_blank_values=True)
# Filter out tracking parameters
sanitized_params = [
(k, v) for k, v in query_params if k.lower() not in TRACKING_PARAMS
]
new_query = urllib.parse.urlencode(sanitized_params)
sanitized_url = urllib.parse.urlunparse((
parsed.scheme,
parsed.netloc,
parsed.path,
parsed.params,
new_query,
parsed.fragment
))
return sanitized_url
def evaluate_target_browser(url: str) -> str:
for pattern, target in ROUTING_RULES:
if re.match(pattern, url, re.IGNORECASE):
return target
return "Default Browser"
if __name__ == "__main__":
test_urls = [
"https://github.com/torvalds/linux?utm_source=newsletter&utm_medium=email&ref=tech",
"https://figma.com/file/abcdef12345/Design-System?fbclid=IwAR0xyz",
"https://news.ycombinator.com/?utm_campaign=frontpage",
"https://internal.company.com/portal?session=active"
]
print("--- [VELJA URL SANITIZATION & ROUTING SIMULATION] ---\n")
for raw in test_urls:
clean = sanitize_url(raw)
target = evaluate_target_browser(clean)
print(f"Original: {raw}")
print(f"Cleaned: {clean}")
print(f"Target: 👉 {target}\n")
| Issue & Failure Signature | Root Cause Analysis | Diagnostic & Resolution Pathway |
|---|---|---|
| Links Open in Safari Instead of Prompting Velja | Another browser claimed default HTTP handler status during an update. | 1. Open System Settings $\rightarrow$ Desktop & Dock $\rightarrow$ Default Web Browser $\rightarrow$ Select Velja. 2. Or set via CLI: duti -s com.sindresorhus.Velja http. |
| Single Sign-On (SSO) Fails with Missing State Parameter | Velja tracking parameter stripper removed OAuth state or nonce token. | In Velja Settings $\rightarrow$ Tracking Parameters, uncheck aggressive removal or add the identity provider domain to the whitelist. |
| Figma / Zoom Links Do Not Open in Native Desktop App | Native app protocol handler (figma:// or zoommtg://) not enabled in Velja Apps tab. | In Velja Settings $\rightarrow$ Apps, toggle Open Figma links in Figma and Open Zoom links in Zoom. |
| Chromium Browser Opens Wrong Profile | Chromium profile directory name changed or not matching Profile 1 / Default. | In Velja Settings $\rightarrow$ Browsers, edit browser configuration and re-select target user profile. |
# 1. Set Velja as System Default HTTP/HTTPS Handler via duti
duti -s com.sindresorhus.Velja http
duti -s com.sindresorhus.Velja https
# 2. Inspect Velja Preferences via defaults CLI
defaults read com.sindresorhus.Velja
# 3. Launch Velja Configuration Window
open -a Velja
~/Library/Preferences/com.sindresorhus.Velja.plist/Applications/Velja.appMANDATORY: When configuring default macOS browser routing from shell scripts, use
duti -s com.sindresorhus.Velja httpto register LaunchServices bindings deterministically.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job