hashload/horse/horse-routing
Claude Code and agent skill by hashload/horse
- community
Checking that the SKILL.md file is still in the repository.
Guidelines for setting up endpoints, defining path parameters, route wildcards, and structuring HTTP controllers.
Install
npx vskill@latest install hashload/horse/horse-routingSKILL.md
The same SKILL.md was published earlier as hashload/horse/horse-routing.
Horse Routing
Defining HTTP Endpoints
Horse supports registering endpoints for all standard HTTP verbs using static or instance methods:
Route Parameters
Path parameters are defined using the colon syntax (`:param`):
- Correct:
THorse.Get('/users/:id', GetUserHandler); - Incorrect:
THorse.Get('/users/{id}', GetUserHandler);
Inside the handler, you access the parameter via Req.Params.Items['id'] (or Req.Params['id']).
Wildcards
Use the wildcard asterisk (*) to match any subpath:
Route Grouping & Prefixes (THorse.Group)
You can group related routes under a common path prefix using THorse.Group. This is highly useful for API versioning (e.g., /v1) and isolating group-level middlewares:
- Prefixing Routes:
``pascal THorse.Group.Prefix('/v1') .Get('/products', GetProductsHandler) .Get('/customers', GetCustomersHandler); ``
- Group-level Middlewares (Restricted Middlewares):
Instead of registering a middleware globally via THorse.Use, you can register it specifically for a group using .Use(). The middleware will only run for endpoints defined inside that group: ``pascal THorse.Group.Prefix('/admin') .Use(AuthMiddleware) // Only runs for routes under /admin .Get('/dashboard', GetDashboardHandler) .Get('/settings', GetSettingsHandler); ``
Route-level Middlewares (Local)
You can pass an array of route-specific middlewares (array of THorseCallback) to apply checks only to a single endpoint. These run after global and group-level middlewares:
- Static routing:
``pascal THorse.Get('/admin/dashboard', [AuthMiddleware, LoggerMiddleware], GetDashboardHandler); ``
- Fluent routing:
``pascal THorse.Route('/reports') .Get([AuthMiddleware, LoggerMiddleware], GetReportsHandler) .Post([AuthMiddleware], CreateReportHandler); ``
Grouping with Controllers
To keep routes organized, group them logically within static class methods or dedicated units:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdoc/skills/horse-routing/SKILL.md
Popularity
- Repository stars
- 1,368
- Repository forks
- 244
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/hashload/horse/horse-routing)