Agent skill

Horse Advanced Routing

by HashLoad in HashLoad/horse

Guidelines and workflows for developing and maintaining regular expressions and optional parameter routing features in the Horse framework.

MITAuto-check passed

Install Horse Advanced Routing

skills CLI
$ npx skills add HashLoad/horse --skill horse-advanced-routing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HashLoad/horse horse-advanced-routing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/horse-advanced-routing .claude/skills/horse-advanced-routing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
horse-advanced-routing
GitHub stars
1.4k
Token cost
~565 tokens
SKILL.md length
223 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Guidelines and workflows for developing and maintaining regular expressions and optional parameter routing features in the Horse framework.

  • Works in 3 steps: Regex Helper (src/Horse.Core.Regex.pas) → Parameter Injection → Route Precedence
  • SKILL.md covers 💡 Syntax Reference, ⚙️ Architecture and Execution… and 🧪 Testing Guidelines
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Horse Advanced Routing is an agent skill from HashLoad/horse. Guidelines and workflows for developing and maintaining regular expressions and optional parameter routing features in the Horse framework.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Fast, opinionated, minimalist web framework for Delphi. The licence is MIT.

Example prompts

  • “Use the horse-advanced-routing skill to guideline and workflows for developing and maintaining regular expressions and optional parameter routing…”
  • “/horse-advanced-routing”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Regex Helper (src/Horse.Core.Regex.pas)
  2. Parameter Injection
  3. Route Precedence

What it can do on your machine

Read from SKILL.md and the folder at commit d4351a5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Horse Advanced Routing loads about 565 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 223 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~565

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HashLoad/horse at commit d4351a5, republished under its MIT licence (© HashLoad). 223 words, ~565 tokens.

Download SKILL.mdSave it as .claude/skills/horse-advanced-routing/SKILL.md (or your agent's skills folder).
name
horse-advanced-routing
description
Guidelines and workflows for developing and maintaining regular expressions and optional parameter routing features in the Horse framework.

Horse Advanced Routing Skill

This skill guides AI agents in maintaining, expanding, and debugging Advanced Routing features (Regular Expression constraints and Optional path parameters) within the Horse framework.

💡 Syntax Reference

  • Optional parameters: :paramName?
    • Example: /users/:id?
  • Regex constraints: :paramName(regexPattern)
    • Example: /users/:id(\d+)
  • Legacy segment Regex: (regexPattern) (Keep for backwards compatibility only)
    • Example: /users/(\d+)

⚙️ Architecture and Execution Flow

1. Regex Helper (src/Horse.Core.Regex.pas)

Always use the unified THorseRegex abstraction. Do NOT import System.RegularExpressions (Delphi) or RegExpr (FPC) directly in routers to prevent cross-compilation breaks.

  • Use THorseRegex.Create(APattern) to instantiate.
  • Use THorseRegex.Match(AContent) which returns Boolean indicating if the exact string matches the pattern.
  • Always free the regex matcher instance inside the node destructions (TRadixNode.Destroy / THorseRouterTree.Destroy).
2. Parameter Injection

When a path segment matches a route parameter, always ensure it is registered in THorseRequest.Params even if optional and empty:

  • Optional parameter missing → Params.Items['param'] = ''.
  • Ensure backtracking logic in CallNextPath (Tree) and FindNode (Radix) clears parameters during path rejection to prevent parameters from bleeding into other matched paths.
3. Route Precedence

When routing, the engines prioritize matches as follows:

  1. Exact static segment matches (/users/new)
  2. Regular expression matched parameters (/users/:id(\d+))
  3. Optional or general parameters (/users/:id?)

🧪 Testing Guidelines

  • Always write integration tests in tests/src/tests/Tests.Integration.AdvancedRouting.pas verifying both THorseRadixRouter and THorseRouterTree.
  • Test real network calls with System.Net.HttpClient to confirm full transport compatibility.
  • Ensure ports are freed properly during TearDown using the ClearGlobalState helper.

© HashLoad, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/horse-advanced-routing of HashLoad/horse.

Open the folder on GitHubat commit d4351a5

Compare with similar skills

Horse Advanced Routing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Horse Advanced Routing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Horse Advanced Routing this skillHashLoad/horse1.4k—~565Automated safety check: PassMIT
Node Backend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2kAutomated safety check: PassMIT
React Frontend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2.9kAutomated safety check: PassMIT
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
Parametersthedaviddias/Front-End-Checklist74k—~638Automated safety check: PassMIT
Wiki Maintaineropenclaw/openclaw392k1 repos~462Automated safety check: PassMIT

Similar skills

  • Node Backend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Sets layered architecture and coding rules for Node.js, Express and TypeScript microservices, covering routes, controllers, services, repositories, Prisma, Sentry and Zod.

    10k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • React Frontend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Guidelines for React 18 and TypeScript apps covering Suspense data fetching, lazy loading, feature folders, MUI v7 styling, TanStack Router and performance.

    10k GitHub starsUsed in 2 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • Parameters

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing URL structure or configuring search engine handling of filtered, sorted, or tracked URLs.

    74k GitHub stars~638 tokensUpdated 3 days ago
    Sales & SupportAuto-check passed
  • Wiki Maintainer

    openclaw/openclaw

    Maintain the OpenClaw memory wiki vault with deterministic pages, managed blocks, and source-backed updates.

    392k GitHub starsUsed in 1 repo~462 tokens
    Knowledge ManagementAuto-check passed
  • Game Development

    sickn33/agentic-awesome-skills

    Game development orchestrator. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~1.3k tokens
    Game DevelopmentAuto-check passed

More from HashLoad/horse

All 23 skills in this repo
  • Horse App Structure

    HashLoad/horse

    Guide for setting up Horse applications, bootstrap program (.dpr), basic console initialization, and registering modules.

    1.4k GitHub stars~716 tokensUpdated 3 days ago
    Auto-check passed
  • Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.

    1.4k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Guide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus.

    1.4k GitHub stars~985 tokensUpdated 3 days ago
    Auto-check passed
  • Horse Files Streams

    HashLoad/horse

    Guide to handling file uploads (multipart), downloads, and stream lifetime management in the Horse framework.

    1.4k GitHub stars~601 tokensUpdated 3 days ago
    Auto-check passed
  • Horse Grpc

    HashLoad/horse

    Guidelines and workflows for developing and maintaining gRPC services, HTTP/2 h2c transport, and Protobuf serialization within the Horse framework.

    1.4k GitHub stars~776 tokensUpdated 3 days ago
    Auto-check passed
  • Guide for writing automated integration tests for Horse endpoints using DUnit/DUnitX and THTTPClient.

    1.4k GitHub stars~964 tokensUpdated 3 days ago
    Auto-check passed

Questions about Horse Advanced Routing

What does Horse Advanced Routing do?

Guidelines and workflows for developing and maintaining regular expressions and optional parameter routing features in the Horse framework. Horse Advanced Routing is an agent skill from HashLoad/horse. Guidelines and workflows for developing and maintaining regular expressions and optional parameter routing features in the Horse framework.

How do I install Horse Advanced Routing in Claude Code?

Run `npx skills add HashLoad/horse --skill horse-advanced-routing -a claude-code`. Or copy the skill folder (.agents/skills/horse-advanced-routing in HashLoad/horse) into .claude/skills/horse-advanced-routing in your project. Claude Code loads it when a task matches its description.

How do I install Horse Advanced Routing in Codex?

Run `npx skills add HashLoad/horse --skill horse-advanced-routing -a codex`. Or copy the skill folder (.agents/skills/horse-advanced-routing in HashLoad/horse) into .agents/skills/horse-advanced-routing in your project. Codex loads it when a task matches its description.

Can I use Horse Advanced Routing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HashLoad/horse --skill horse-advanced-routing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/horse-advanced-routing, .gemini/skills/horse-advanced-routing, .github/skills/horse-advanced-routing and .opencode/skills/horse-advanced-routing in your project.

What does Horse Advanced Routing need to run?

SKILL.md names no scripts, command-line tools or credentials: Horse Advanced Routing is instructions for the agent only.

Does Horse Advanced Routing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Horse Advanced Routing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Horse Advanced Routing use?

Horse Advanced Routing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Horse Advanced Routing use?

About 565 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Horse Advanced Routing?

Skills that share tags, products or a category with Horse Advanced Routing: Node Backend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), React Frontend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), MCP Development (coollabsio/coolify, 63k stars) and Parameters (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Horse Advanced Routing?

HashLoad (a GitHub organization) maintains it in HashLoad/horse, which has 1,378 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 7, 2026.

Source: HashLoad/horse on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.