serverpod/relic/relic-routing
Claude Code and agent skill by serverpod/relic
- community
Checking that the SKILL.md file is still in the repository.
Define routes with path parameters, wildcards, tail segments, and typed params in Relic. Use when adding endpoints, handling dynamic URLs, setting up URL patterns, or forwarding requests.
Install
npx vskill@latest install serverpod/relic/relic-routingSKILL.md
Relic Routing
Routes map incoming requests to handlers based on path and HTTP method. Register routes on RelicApp (which implements RelicRouter).
Handler signature
A handler returns a Result: either a Response, WebSocketUpgrade, or Hijack.
Registering routes
Core add method
The convenience methods call add() internally:
Multiple methods
Path parameters
Use :name to capture a segment. Access with Symbol-based key:
Typed path parameters
Define typed accessors for automatic parsing:
Nullable variant (returns null if missing):
Built-in accessors: IntPathParam, DoublePathParam, NumPathParam.
Custom path parameter type
Reusable specialization:
Wildcards
* matches any single segment without capturing:
Tail segments
/** captures the entire remaining path, exposed via request.remainingPath:
Required when serving directories so the handler knows which file was requested.
Route priority
- Literal segments take priority over dynamic segments.
- Backtracking ensures the best match if a literal leads to a dead end.
- Registration order does not affect matching.
Request for /users/789: tries literal users path first (Route 2), needs third segment /profile but path ends -- backtracks to :entity parameter (Route 1) with entity=users, id=789.
Tail segments with specific routes:
/files/special/report matches the exact route; /files/special/other falls back to catch-all.
Request forwarding
Re-route a request through the same router with copyWith + forwardTo:
forwardTo sends the new request through the full routing pipeline including middleware. It throws StateError if the request was not routed through a RelicRouter.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/relic/skills/relic-routing/SKILL.md
Popularity
- Repository stars
- 115
- Repository forks
- 14
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/serverpod/relic/relic-routing)