Hybrid Cloud Outboxes
getsentry/sentry
Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.
Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
$ npx skills add HashLoad/horse --skill horse-database-pooling -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HashLoad/horse horse-database-pooling --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-database-pooling .claude/skills/horse-database-pooling && 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-database-pooling" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-database-pooling into .claude/skills/horse-database-pooling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-database-pooling", 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-database-poolingType 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-database-pooling -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HashLoad/horse horse-database-pooling --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-database-pooling .agents/skills/horse-database-pooling && 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-database-pooling" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-database-pooling into .agents/skills/horse-database-pooling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-database-pooling", 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-database-pooling -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HashLoad/horse horse-database-pooling --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-database-pooling .cursor/skills/horse-database-pooling && 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-database-pooling" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-database-pooling into .cursor/skills/horse-database-pooling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-database-pooling", 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-database-pooling--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-database-pooling -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HashLoad/horse horse-database-pooling --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-database-pooling .gemini/skills/horse-database-pooling && 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-database-pooling" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-database-pooling into .gemini/skills/horse-database-pooling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-database-pooling", 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-database-poolingInstalls 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-database-pooling -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-database-pooling .github/skills/horse-database-pooling && 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-database-pooling" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-database-pooling into .github/skills/horse-database-pooling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-database-pooling", 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-database-pooling -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-database-pooling --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-database-pooling .opencode/skills/horse-database-pooling && 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-database-pooling" agent skill from https://github.com/HashLoad/horse/tree/master/doc/skills/horse-database-pooling into .opencode/skills/horse-database-pooling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "horse-database-pooling", 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-database-poolingGuide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
Horse Database Pooling is an agent skill from HashLoad/horse. Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
Its SKILL.md is about 1.4k 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 Databases, covering Database administration. 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 Database Pooling loads about 1.4k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 223 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). 223 words, ~1,386 tokens.
.claude/skills/horse-database-pooling/SKILL.md (or your agent's skills folder).Horse handles each incoming HTTP request in a separate thread. Therefore, sharing a single database connection components (like a global TFDConnection or query component placed on a global DataModule/Controller) across requests will cause race conditions, data corruption, and Access Violations.
FireDAC provides built-in, highly optimized connection pooling. To configure and use it:
Configure the connection definition globally in your application bootstrap (program block or startup class) using TFDManager:
uses
FireDAC.Stan.Intf, FireDAC.Phys.PG, FireDAC.Comp.Client;
procedure SetupConnectionPool;
var
LParams: TStrings;
begin
LParams := TStringList.Create;
try
LParams.Values['DriverID'] := 'PG'; // PostgreSQL example
LParams.Values['Server'] := 'localhost';
LParams.Values['Database'] := 'my_db';
LParams.Values['User_Name'] := 'postgres';
LParams.Values['Password'] := 'secret';
LParams.Values['Pooled'] := 'True'; // CRITICAL: Enables pooling
LParams.Values['POOL_MaximumItems'] := '50'; // Set maximum connections in pool
// Register the definition with FDManager
FDManager.AddConnectionDef('MyPooledPGDef', 'PG', LParams);
finally
LParams.Free;
end;
end;In your route handlers, instantiate the TFDConnection locally, referencing the pooled definition name. Always protect resources with try...finally:
procedure GetUsersHandler(Req: THorseRequest; Res: THorseResponse; Next: TProc);
var
LConnection: TFDConnection;
LQuery: TFDQuery;
begin
LConnection := TFDConnection.Create(nil);
LQuery := TFDQuery.Create(nil);
try
// Reference the pooled definition - this will instantly pull a connection from the pool
LConnection.ConnectionDefName := 'MyPooledPGDef';
LConnection.Connected := True;
LQuery.Connection := LConnection;
LQuery.SQL.Text := 'SELECT id, name FROM users';
LQuery.Open;
// Johnson middleware takes ownership of the JSON object/array
Res.Send(LQuery.ToJSONArray);
finally
LQuery.Free;
LConnection.Free; // Automatically releases connection back to the pool
end;
end;If using Devart UniDAC, enable pooling via the connection string parameter or using TUniConnection.SpecificOptions:
procedure GetUsersUniDACHandler(Req: THorseRequest; Res: THorseResponse; Next: TProc);
var
LConnection: TUniConnection;
LQuery: TUniQuery;
begin
LConnection := TUniConnection.Create(nil);
LQuery := TUniQuery.Create(nil);
try
LConnection.ProviderName := 'PostgreSQL';
LConnection.Server := 'localhost';
LConnection.Database := 'my_db';
LConnection.Username := 'postgres';
LConnection.Password := 'secret';
// Enable Pooling in UniDAC
LConnection.Pooling := True;
LConnection.PoolingOptions.MaxPoolSize := 50;
LConnection.Connect;
LQuery.Connection := LConnection;
LQuery.SQL.Text := 'SELECT id, name FROM users';
LQuery.Open;
Res.Send(LQuery.ToJSONArray);
finally
LQuery.Free;
LConnection.Free;
end;
end;
---
## 3.5. Automated Connection Management via Request Services (IoC)
With Horse's native Request Scope IoC container, you can register a lazy factory for database connections. This ensures the connection is only opened if/when a route resolves it, and guarantees it is freed automatically when the request ends.
```pascal
// Setup connection factory inside a global middleware
THorse.Use(procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
begin
Req.Services.AddFactory(TFDConnection,
function: TObject
begin
Result := TFDConnection.Create(nil);
TFDConnection(Result).ConnectionDefName := 'MyPooledPGDef';
TFDConnection(Result).Connected := True;
end);
Next();
end);
// Usage in Route Handler (No manual connection free required!)
THorse.Get('/users', procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
var
LConnection: TFDConnection;
LQuery: TFDQuery;
begin
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 freed automatically by Horse when the request finishes!
end);try...finally: Ensure connection/query components are freed even if an exception occurs during SQL execution.ReadOnly := True on your queries where possible to improve pooling performance.© 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-database-pooling of HashLoad/horse.
Open the folder on GitHubat commit d4351a5
Horse Database Pooling 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 Database Pooling this skillHashLoad/horse | 1.4k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Hybrid Cloud Outboxesgetsentry/sentry | 45k | — | ~4.8k | Automated safety check: Pass | Custom licence | |
| Replicate Video AdJingyi-Wu-Richael/replicate-video-ad | 106 | 1 repos | ~1.6k | Automated safety check: Pass | None | |
| Sea Orm 2FlyinPancake/yoink | 112 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Pixel Perfect ReplicationYu-369/VibeCurb | 980 | — | ~8.7k | Automated safety check: Pass | MIT | |
| Redis Clusteringredis/agent-skills | 165 | 1 repos | ~1k | Automated safety check: Pass | MIT |
getsentry/sentry
Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.
Jingyi-Wu-Richael/replicate-video-ad
Analyze a reference video frame by frame and turn its visual grammar, story beats, dialogue, product reveal, proof sequence, and conversion structure into a production-ready ecommerce story-ad…
FlyinPancake/yoink
Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow.
Yu-369/VibeCurb
Image-to-code replication pipeline. An agent skill from Yu-369/VibeCurb.
redis/agent-skills
Redis Cluster and replication guidance covering hash tags for multi-key operations, avoiding CROSSSLOT errors, and reading from replicas to scale read-heavy workloads.
EliasOulkadi/shokunin
PostgreSQL database administration — backup/restore (pgdump, PITR, WAL archiving), health monitoring (connections, bloat, cache hit ratio, dead tuples), connection pooling (PgBouncer), replication…
HashLoad/horse
Guide for setting up Horse applications, bootstrap program (.dpr), basic console initialization, and registering modules.
HashLoad/horse
Guide for managing request-scoped contextual services and IoC (dependency injection) in Delphi and Lazarus.
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 setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications. Horse Database Pooling is an agent skill from HashLoad/horse. Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
Horse Database Pooling fits situations like: tasks that involve Database administration.
Run `npx skills add HashLoad/horse --skill horse-database-pooling -a claude-code`. Or copy the skill folder (doc/skills/horse-database-pooling in HashLoad/horse) into .claude/skills/horse-database-pooling in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HashLoad/horse --skill horse-database-pooling -a codex`. Or copy the skill folder (doc/skills/horse-database-pooling in HashLoad/horse) into .agents/skills/horse-database-pooling 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-database-pooling -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-database-pooling, .gemini/skills/horse-database-pooling, .github/skills/horse-database-pooling and .opencode/skills/horse-database-pooling in your project.
SKILL.md names no scripts, command-line tools or credentials: Horse Database Pooling 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 Database Pooling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.5k 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 Database Pooling: Hybrid Cloud Outboxes (getsentry/sentry, 45k stars), Replicate Video Ad (Jingyi-Wu-Richael/replicate-video-ad, 106 stars), Sea Orm 2 (FlyinPancake/yoink, 112 stars) and Pixel Perfect Replication (Yu-369/VibeCurb, 980 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.