hashload/horse/horse-app-structure
Claude Code and agent skill by hashload/horse
- community
Checking that the SKILL.md file is still in the repository.
Guide for setting up Horse applications, bootstrap program (.dpr), basic console initialization, and registering modules.
Install
npx vskill@latest install hashload/horse/horse-app-structureSKILL.md
The same SKILL.md was published earlier as hashload/horse/horse-app-structure.
Horse App Structure
Application Bootstrap (.dpr)
A standard Horse application is typically configured as a Delphi Console Application ({$APPTYPE CONSOLE}).
Modular Architecture
For production grade projects, keep the .dpr file clean by delegating route definitions to specialized Controller classes:
- Keep Controllers stateless: Do not store request-specific variables as fields in a controller class unless they are thread-safe.
- Uses Sequence: Ensure modules containing business services or repository layers are decoupled from the HTTP transport layer (
Horseunits).
Thread-Safe Data Access & Database Connections
Horse is inherently multithreaded (each request runs on a separate worker thread). Accessing a database inside a route handler requires strict thread safety to avoid memory corruption, race conditions, or application crashes (Access Violations):
- NEVER share connection components globally: Do not put a global
TFDConnectionor query component in your Controller or DataModule and share it across handlers. - Local instantiation (Thread-local): Always create the connection and query components inside the route handler, and release them in a
try...finallyblock (Delphi XE7+ compatible):
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdoc/skills/horse-app-structure/SKILL.md
Popularity
- Repository stars
- 1,368
- Repository forks
- 244
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hashload/horse/horse-app-structure)