canonicalizing-urls
8
总安装量
6
周安装量
#35111
全站排名
安装命令
npx skills add https://github.com/william-yeh/canonicalizing-urls --skill canonicalizing-urls
Agent 安装分布
gemini-cli
6
claude-code
6
github-copilot
6
codex
6
kimi-cli
6
cursor
6
Skill 文档
canonicalizing-urls
Canonicalize URLs by running scripts/canonicalize.py (requires uv).
Proactive use
When a URL appears in a context where it will be saved, shared, or cited:
uv run scripts/canonicalize.py <url>(offline, static rules only)- If the URL matches an opaque short-link pattern (e.g.
/share/p/), add--online - If the result differs from the input, substitute the canonical form
- Note the change inline: “(canonicalized: removed fbclid)”
Explicit use
When the user asks to canonicalize a URL:
uv run scripts/canonicalize.py <url>- If unchanged and URL looks non-canonical, run
--probeto discover rules
Adding a new rule
When the script returns unchanged output but the URL is clearly non-canonical:
uv run scripts/canonicalize.py --probe <url>â review suggested actions- Ask user: generalize to a pattern, or keep domain-specific?
- Add the confirmed
Rule(...)toRULESinscripts/rules.py(insert after similar-domain rules, before the closing bracket) uv run scripts/canonicalize.py <original_url>â verify output- Commit:
feat: add <domain> canonicalization rule