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.
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.
npx skills add HashLoad/horse --skill horse-integration-testsgit clone --depth 1 https://github.com/HashLoad/horseWrote 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.
[](https://agentmods.dev/skills/hashload/horse/horse-integration-tests)<a href="https://agentmods.dev/skills/hashload/horse/horse-integration-tests"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-integration-tests/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hashload/horse/horse-integration-tests"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-integration-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.00949 |
| Opus 5.5 | $0.00010 | $0.00380 |
| Sonnet 5.5 | $0.00005 | $0.00190 |
| Haiku 4.5 | $0.00003 | $0.00095 |
Grade A, and why
horse-integration-tests 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Horse Integration Testing
Automated integration tests ensure your API routes, request parsing, and error-handling pipelines behave correctly under simulated HTTP traffic.
1. The Dynamic Port Pattern
When running tests locally or in CI/CD pipelines (like GitHub Actions), static ports (e.g., 9000) might be occupied. To avoid port conflicts:
- Generate a dynamic port for each test run.
- Start Horse on that port inside the setup method.
- Perform HTTP requests against
http://localhost:<dynamic_port>. - Terminate Horse inside the teardown method.
2. Integration Test Example (DUnitX)
Here is a complete integration test suite demonstrating how to bootstrap Horse, perform requests with Delphi's native THTTPClient, and assert responses:
unit Test.UserAPI;
interface
uses
DUnitX.TestFramework,
System.Net.HttpClient,
System.SysUtils;
type
[TestFixture]
TTestUserAPI = class
private
FPort: Integer;
FClient: THTTPClient;
function GetBaseURL: string;
public
[SetupFixture]
procedure SetupFixture; // Start Horse Server
[TearDownFixture]
procedure TearDownFixture; // Terminate Horse Server
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure TestGetPingReturnsPong;
[Test]
procedure TestGetInvalidUserReturns404;
end;
implementation
uses
Horse,
System.JSON,
System.Net.URLClient;
function TTestUserAPI.GetBaseURL: string;
begin
Result := 'http://localhost:' + FPort.ToString;
end;
procedure TTestUserAPI.SetupFixture;
begin
// Choose a random dynamic port
Randomize;
FPort := 10000 + Random(50000);
// Register endpoints to test
THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
begin
Res.Send('pong');
end);
THorse.Get('/users/:id',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
var
LId: Integer;
begin
LId := Req.Params.Field('id').AsInteger;
if LId = 999 then
Res.Status(THTTPStatus.NotFound).Send('User not found')
else
Res.Send('User found');
end);
// Start Horse asynchronously (non-blocking)
THorse.Listen(FPort);
end;
procedure TTestUserAPI.TearDownFixture;
begin
// Terminate the process / stop Horse provider
THorse.Terminate;
end;
procedure TTestUserAPI.Setup;
begin
FClient := THTTPClient.Create;
end;
procedure TTestUserAPI.TearDown;
begin
FClient.Free;
end;
procedure TTestUserAPI.TestGetPingReturnsPong;
var
LResponse: IHTTPResponse;
begin
LResponse := FClient.Get(GetBaseURL + '/ping');
Assert.AreEqual(200, LResponse.StatusCode);
Assert.AreEqual('pong', LResponse.ContentAsString);
end;
procedure TTestUserAPI.TestGetInvalidUserReturns404;
var
LResponse: IHTTPResponse;
begin
LResponse := FClient.Get(GetBaseURL + '/users/999');
Assert.AreEqual(404, LResponse.StatusCode);
Assert.AreEqual('User not found', LResponse.ContentAsString);
end;
initialization
TDUnitX.RegisterTestFixture(TTestUserAPI);
end.
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.
- 1mo ago First seen · 146 lines · 25 tokens per session scan A e277e1c03c9d
horse-integration-tests is a skill published in the GitHub repository HashLoad/horse (1,380 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 949 once invoked, about $0.0001 per session on Opus 5.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.
Other skills, from other repositories
api-testing-patterns
Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.
write-tests
Add or update PHPUnit tests using this repository's E2E, functional, integration, and unit test conventions.
API Fuzzing
API endpoint fuzzing for discovering unexpected behaviors, crashes, and security vulnerabilities through malformed requests, boundary values, and protocol violations.
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
add-console-command
Add or change a Symfony console command using this repository's command, dependency-injection, input/output, and testing conventions.
add-event-listener
Create or update Symfony event listeners or Doctrine lifecycle listeners, including service registration, event ordering, and tests following this repository's conventions.