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-mvc-architecturegit 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-mvc-architecture)<a href="https://agentmods.dev/skills/hashload/horse/horse-mvc-architecture"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-mvc-architecture/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-mvc-architecture"><img src="https://agentmods.dev/badge/skills/hashload/horse/horse-mvc-architecture.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.00034 | $0.01089 |
| Opus 5 | $0.00017 | $0.00544 |
| Sonnet 5 | $0.00007 | $0.00218 |
| Haiku 4.5 | $0.00003 | $0.00109 |
Grade A, and why
horse-mvc-architecture 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 12d 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 — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Horse MVC Architecture
For large-scale, production-ready REST APIs, avoid placing business logic inside route handlers or keeping everything in the .dpr bootstrap file. Implement a clean, decoupled MVC (Model-View-Controller) architecture.
1. Project Directory Structure
Keep your project organized by dividing concerns into dedicated directories under the src/ folder:
my_project/
├── my_project.dpr
└── src/
├── controllers/ # Mappings of HTTP endpoints to service invocations
├── services/ # Core business rules, validations, and orchestration
├── repositories/ # Database access layer (SQL execution, FireDAC queries)
└── models/ # Entity classes and data structures (Domain)
2. Decoupling Rules (The Golden Rule)
To ensure testability and maintenance, never couple your business logic to the web framework.
- Rule: The
Service,Repository, andModellayers must never import Horse units or reference Horse objects (likeTHorseRequestorTHorseResponse). - Reason: If you decide to migrate from HTTP to a CLI application or gRPC, your business services and repositories remain 100% untouched.
3. Implementation Blueprint
A. The Repository Layer (Database Access)
Retrieves and updates raw database data. It knows nothing about HTTP.
unit Repository.Customer;
interface
uses
System.JSON, FireDAC.Comp.Client;
type
TCustomerRepository = class
public
class function FindById(const AId: Integer): TJSONObject;
end;
implementation
class function TCustomerRepository.FindById(const AId: Integer): TJSONObject;
var
LConnection: TFDConnection;
LQuery: TFDQuery;
begin
Result := nil;
LConnection := TFDConnection.Create(nil);
LQuery := TFDQuery.Create(nil);
try
LConnection.ConnectionDefName := 'MyPooledDef';
LConnection.Connected := True;
LQuery.Connection := LConnection;
LQuery.SQL.Text := 'SELECT id, name, email FROM customers WHERE id = :id';
LQuery.ParamByName('id').AsInteger := AId;
LQuery.Open;
if not LQuery.IsEmpty then
Result := LQuery.ToJSONObject; // Returns raw JSON entity
finally
LQuery.Free;
LConnection.Free;
end;
end;
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.
- 12d ago First seen · 193 lines · 34 tokens per session scan A 61fa607cbe79
horse-mvc-architecture is a skill published in the GitHub repository HashLoad/horse (1,375 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 1,089 once invoked, about $0.0002 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.
Other skills, from other repositories
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
api-design-patterns
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices.
hunt-wordpress
Use when an authorized target exposes WordPress core, plugin, theme, REST, or XML-RPC behavior.
mars-development
Develop REST APIs with MARS-Curiosity (Delphi REST library) - writing resources, REST attributes, parameter binding, JWT authentication and roles, FireDAC dataset publishing, server-sent events (SSE), WebStencils HTML templating, client components, configuration, serialization. Use this skill whenever the user is…
a0-development
Develop or operate Agent Zero: projects, chats, tasks, framework, tools and API/WebUI.