Vercel Composition Patterns
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
Guide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus.
$ npx skills add HashLoad/horse --skill horse-dependency-injection -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HashLoad/horse horse-dependency-injection --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .claude/skills && cp -r skills-src/doc/skills/horse-dependency-injection .claude/skills/horse-dependency-injection && rm -rf skills-srcUse ~/.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/
Install the "horse-dependency-injection" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injection into .claude/skills/horse-dependency-injection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-dependency-injection", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injectionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HashLoad/horse --skill horse-dependency-injection -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HashLoad/horse horse-dependency-injection --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .agents/skills && cp -r skills-src/doc/skills/horse-dependency-injection .agents/skills/horse-dependency-injection && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "horse-dependency-injection" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injection into .agents/skills/horse-dependency-injection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-dependency-injection", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HashLoad/horse --skill horse-dependency-injection -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HashLoad/horse horse-dependency-injection --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/doc/skills/horse-dependency-injection .cursor/skills/horse-dependency-injection && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "horse-dependency-injection" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injection into .cursor/skills/horse-dependency-injection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-dependency-injection", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HashLoad/horse.git --path doc/skills/horse-dependency-injection--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HashLoad/horse --skill horse-dependency-injection -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HashLoad/horse horse-dependency-injection --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/doc/skills/horse-dependency-injection .gemini/skills/horse-dependency-injection && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "horse-dependency-injection" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injection into .gemini/skills/horse-dependency-injection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-dependency-injection", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HashLoad/horse horse-dependency-injectionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HashLoad/horse --skill horse-dependency-injection -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .github/skills && cp -r skills-src/doc/skills/horse-dependency-injection .github/skills/horse-dependency-injection && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "horse-dependency-injection" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injection into .github/skills/horse-dependency-injection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-dependency-injection", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HashLoad/horse --skill horse-dependency-injection -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HashLoad/horse horse-dependency-injection --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HashLoad/horse.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/doc/skills/horse-dependency-injection .opencode/skills/horse-dependency-injection && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "horse-dependency-injection" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-dependency-injection into .opencode/skills/horse-dependency-injection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-dependency-injection", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
horse-dependency-injectionGuide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus.
Horse Dependency Injection is an agent skill from HashLoad/horse. Guide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus.
Its SKILL.md is about 990 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Design patterns. The repository describes itself as: Fast, opinionated, minimalist web framework for Delphi. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d4351a5. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are pascal).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Horse Dependency Injection loads about 985 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 300 words of instructions outside code blocks.
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.
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.
The full file from HashLoad/horse at commit d4351a5, republished under its MIT licence (© HashLoad). 300 words, ~985 tokens.
.claude/skills/horse-dependency-injection/SKILL.md (or your agent's skills folder).The Services property in THorseRequest provides a thread-safe, request-scoped Inversion of Control (IoC) container. This container manages the lifecycle of classes and objects that need to exist only during the execution of a single HTTP request (e.g., database connections, repository patterns, user context).
doOwnsValues := True) of registered instances.try/finally blocks inside route handlers.Add)Use Add to register an already instantiated object. The container takes ownership and will destroy the instance when the request ends.
procedure SetContextMiddleware(Req: THorseRequest; Res: THorseResponse; Next: TProc);
var
LUserContext: TUserContext;
begin
LUserContext := TUserContext.Create;
LUserContext.UserId := Req.Headers['X-User-ID'];
// Register the instance
Req.Services.Add(TUserContext, LUserContext);
Next();
end;
procedure GetProfileHandler(Req: THorseRequest; Res: THorseResponse; Next: TProc);
var
LUserContext: TUserContext;
begin
// Resolve and use the registered service
LUserContext := TUserContext(Req.Services.Resolve(TUserContext));
Res.Send('Profile data for user: ' + LUserContext.UserId);
end;AddFactory)Use AddFactory to register a factory delegate. The object will only be instantiated at the exact moment Resolve is called (Lazy Loading). Once instantiated, it is cached for subsequent resolves in the same request and destroyed at the end.
This is highly recommended for heavy resources (like database connections) that might not be needed in every execution path of a route.
procedure RegisterDatabaseMiddleware(Req: THorseRequest; Res: THorseResponse; Next: TProc);
begin
// Register the factory method
Req.Services.AddFactory(TFDConnection,
function: TObject
begin
Result := TFDConnection.Create(nil);
TFDConnection(Result).ConnectionDefName := 'PooledPGDef';
TFDConnection(Result).Connected := True;
end);
Next();
end;
procedure QueryUsersHandler(Req: THorseRequest; Res: THorseResponse; Next: TProc);
var
LConnection: TFDConnection;
LQuery: TFDQuery;
begin
// The connection is physically created and opened only on the next line!
LConnection := TFDConnection(Req.Services.Resolve(TFDConnection));
LQuery := TFDQuery.Create(nil);
try
LQuery.Connection := LConnection;
LQuery.SQL.Text := 'SELECT id, name FROM users';
LQuery.Open;
Res.Send(LQuery.ToJSONArray);
finally
LQuery.Free;
end; // LConnection is automatically freed by the container when the request ends!
end;Services container belongs exclusively to the thread handling the current THorseRequest.Resolve method returns a raw TObject to preserve compatibility across old Delphi versions. You must cast it to your concrete class (e.g., TMyService(Req.Services.Resolve(TMyService)))..Free or FreeAndNil on objects resolved from Req.Services that you want to persist until the end of the request.© HashLoad, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in doc/skills/horse-dependency-injection of HashLoad/horse.
Open the folder on GitHubat commit d4351a5
Horse Dependency Injection 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Horse Dependency Injection this skillHashLoad/horse | 1.4k | — | ~985 | Automated safety check: Pass | MIT | |
| Vercel Composition Patternssupabase/supabase | 111k | 59 repos | ~726 | Automated safety check: Pass | MIT | |
| Swiftui View RefactorDimillian/Skills | 4k | 5 repos | ~2k | Automated safety check: Pass | MIT | |
| RTK Rust Design Patternsrtk-ai/rtk | 83k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Effect Client WrapperUsefulSoftwareCo/executor | 4.1k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Architecture PatternsKartikLabhshetwar/better-shot | 2.4k | 2 repos | ~1.4k | Automated safety check: Pass | Custom licence |
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
Dimillian/Skills
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.
rtk-ai/rtk
Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.
UsefulSoftwareCo/executor
Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.
KartikLabhshetwar/better-shot
Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.
GitTools/GitVersion
Gives repository-specific .NET guidance for GitVersion: build and test commands, central package management, project layout and coding conventions.
HashLoad/horse
Guide for setting up Horse applications, bootstrap program (.dpr), basic console initialization, and registering modules.
HashLoad/horse
Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
HashLoad/horse
Guide to handling file uploads (multipart), downloads, and stream lifetime management in the Horse framework.
HashLoad/horse
Guidelines and workflows for developing and maintaining gRPC services, HTTP/2 h2c transport, and Protobuf serialization within the Horse framework.
HashLoad/horse
Guide for writing automated integration tests for Horse endpoints using DUnit/DUnitX and THTTPClient.
HashLoad/horse
Guide for ensuring Lazarus and Free Pascal (FPC) compatibility, addressing anonymous methods differences, JSON units, and compiler directives.
Categories
Guide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus. Horse Dependency Injection is an agent skill from HashLoad/horse. Guide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus.
Horse Dependency Injection fits situations like: tasks that involve Design patterns.
Run `npx skills add HashLoad/horse --skill horse-dependency-injection -a claude-code`. Or copy the skill folder (doc/skills/horse-dependency-injection in HashLoad/horse) into .claude/skills/horse-dependency-injection in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HashLoad/horse --skill horse-dependency-injection -a codex`. Or copy the skill folder (doc/skills/horse-dependency-injection in HashLoad/horse) into .agents/skills/horse-dependency-injection in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HashLoad/horse --skill horse-dependency-injection -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-dependency-injection, .gemini/skills/horse-dependency-injection, .github/skills/horse-dependency-injection and .opencode/skills/horse-dependency-injection in your project.
SKILL.md names no scripts, command-line tools or credentials: Horse Dependency Injection is instructions for the agent only.
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.
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.
Horse Dependency Injection is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 985 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Horse Dependency Injection: Vercel Composition Patterns (supabase/supabase, 111k stars), Swiftui View Refactor (Dimillian/Skills, 4k stars), RTK Rust Design Patterns (rtk-ai/rtk, 83k stars) and Effect Client Wrapper (UsefulSoftwareCo/executor, 4.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HashLoad (a GitHub organization) maintains it in HashLoad/horse, which has 1,377 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.