horse-routing

horse-routing is a skill for Claude Code, Codex from HashLoad/horse. It costs 24 tokens per session (675 once invoked), scanned A, original, MIT.

Guidance for defining HTTP routes in Horse, a Delphi web-server framework. It covers request methods, path parameters, wildcard paths, and groups of routes sharing a prefix.

In plain words
What is it for?
It helps build GET, POST, PUT, DELETE, and PATCH endpoints; read values such as user IDs from paths; serve nested paths; and group routes for API versions or shared middleware.
Why use it?
It prevents common routing mistakes, such as using the wrong parameter syntax, and helps keep related endpoints organized.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps build GET, POST, PUT, DELETE, and PATCH endpoints; read values such as user IDs from paths; serve nested paths; and group routes for API versions or shared middleware.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hashload/horse/horse-routing
About the project

Horse is a lightweight web framework for Delphi and Lazarus programs, providing tools for building HTTP servers and APIs. It is for developers who need routing, request handling, middleware, streaming, WebSockets, and related server features in those languages. Its catalogue skills support working with the framework.

HashLoad/horse · 1,374 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HashLoad/horse --skill horse-routing
Clone the repo
git clone --depth 1 https://github.com/HashLoad/horse

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for horse-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashload/horse/horse-routing.svg)](https://agentmods.dev/skills/hashload/horse/horse-routing)
Your own site
<a href="https://agentmods.dev/skills/hashload/horse/horse-routing"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-routing.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00675
Opus 5 $0.00012 $0.00338
Sonnet 5 $0.00005 $0.00135
Haiku 4.5 $0.00002 $0.00068

Measured 8d ago against content hash 70737facb0d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

horse-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

doc/skills/horse-routing/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Horse Routing

Defining HTTP Endpoints

Horse supports registering endpoints for all standard HTTP verbs using static or instance methods:

THorse.Get('/products', GetProductsHandler);
THorse.Post('/products', CreateProductHandler);
THorse.Put('/products', UpdateProductHandler);
THorse.Delete('/products', DeleteProductHandler);
THorse.Patch('/products', PatchProductHandler);

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:

// Matches /public/css/site.css, /public/images/logo.png, etc.
THorse.Get('/public/*', ServeStaticFilesHandler);

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:

    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:

    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:
    THorse.Get('/admin/dashboard', [AuthMiddleware, LoggerMiddleware], GetDashboardHandler);
    

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 93 lines · 24 tokens per session scan A 70737facb0d2

Subscribe to this mod's changes

horse-routing is a skill published in the GitHub repository HashLoad/horse (1,374 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 675 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.