delphi-firedac

delphi-firedac is a skill for Claude Code, Codex from danieleteti/delphi-ai-skills. It costs 156 tokens per session (2,234 once invoked), scanned A, original, Apache-2.0.

A guide to using FireDAC, Delphi's database access library, in applications without a web framework. It covers connections, drivers, queries, commands, stored procedures, parameters, transactions, pooling, and data fetching.

In plain words
What is it for?
Use it when writing or fixing Delphi code that reads or changes database data through FireDAC in desktop, service, console, or library projects.
Why use it?
It helps prevent runtime failures caused by missing driver units and data errors caused by transaction settings or incorrect query handling. It also identifies which advice was checked only with SQLite.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or fixing Delphi code that reads or changes database data through FireDAC in desktop, service, console, or library projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danieleteti/delphi-ai-skills/delphi-firedac
Install

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.

Any agent
npx skills add danieleteti/delphi-ai-skills --skill delphi-firedac
Clone the repo
git clone --depth 1 https://github.com/danieleteti/delphi-ai-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for delphi-firedac

README.md
[![agentmods](https://agentmods.dev/badge/skills/danieleteti/delphi-ai-skills/delphi-firedac/github.svg)](https://agentmods.dev/skills/danieleteti/delphi-ai-skills/delphi-firedac)
Your own site
<a href="https://agentmods.dev/skills/danieleteti/delphi-ai-skills/delphi-firedac"><img src="https://agentmods.dev/badge/skills/danieleteti/delphi-ai-skills/delphi-firedac/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.

agentmods 80×15 button for delphi-firedac

Your own site · 80×15
<a href="https://agentmods.dev/skills/danieleteti/delphi-ai-skills/delphi-firedac"><img src="https://agentmods.dev/badge/skills/danieleteti/delphi-ai-skills/delphi-firedac.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,234 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00156 $0.02234
Opus 5.5 $0.00062 $0.00894
Sonnet 5.5 $0.00031 $0.00447
Haiku 4.5 $0.00016 $0.00223

Measured 24d ago against content hash 51ebdfe741e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

delphi-firedac 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 24d 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.

skills/delphi-firedac/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FireDAC in plain Delphi

For Delphi code that uses FireDAC directly: VCL, FMX, console, service, library. Not for DelphiMVCFramework TMVCActiveRecord code: that has its own skills, start at dmvcframework. Language and RTL questions (ownership, try/finally, threads): delphi.

Everything here was run on Delphi 13 (dcc32 37.0) and, unless a line says otherwise, gave the same result on Delphi 12 (36.0). Every run used the SQLite driver (in-memory or file). Lines marked "SQLite only" may differ on other servers; "not verified" means exactly that.

Critical rules

  1. A missing FireDAC unit is a run-time error, not a compile error. The program builds, then the first Open raises Object factory for class {...} is missing ... include unit [FireDAC.X]. The message names the unit. A code-only program needs FireDAC.Stan.Def, FireDAC.Stan.Async, FireDAC.DApt, a driver unit, FireDAC.Comp.Client. Table below, details in reference/uses-and-drivers.md.
  2. Close, Free or a pooled Close with an open transaction COMMITS. TxOptions.DisconnectAction defaults to xdCommit; Isolation defaults to xiUnspecified. An exception does not end the transaction. Use try ... Commit except Rollback; raise end. For the opposite default set DisconnectAction := xdRollback.
  3. Pooling needs a named connection definition, with Pooled=True inside the definition and nothing else on the component. Params.Pooled := True on a private connection raises -507. When the pool is full the next Open raises -708 at once; it does not wait. Defaults: POOL_MaximumItems=50, POOL_CleanupTimeout=30000, POOL_ExpireTimeout=90000. Add FireDAC.Stan.Pool to uses.
  4. RecordCount right after Open is 50, not the row count. Default RecordCountMode = cmVisible, Mode = fmOnDemand, RowsetSize = 50. Count with select count(*); never size a loop with it.
  5. ApplyUpdates returns the number of FAILED rows and does not raise. It is not atomic. With the default AutoCommitUpdates = False a second ApplyUpdates sends the inserts again (duplicate rows). Call CommitUpdates after success. Connection.ApplyUpdates([...]) is deprecated.
  6. Array DML is Q.Execute(ATimes, AOffset). Q.ExecSQL(5, 0) does not compile; Execute with no arguments inserts ONE row and says nothing.
  7. Ownership. Param.AsStream := S hands S to the parameter (freeing it yourself is a double free). LoadFromStream copies, you free. C.ExecSQL(sql, RS) returns an open TFDQuery you must free.
  8. Macros eat text. & and ! inside SQL start a macro even in a quoted literal: select 'R&B' returns R. !name is pasted raw: injection. Values go in parameters; macros only for identifiers you control. Turn it off with ResourceOptions.MacroCreate := False; MacroExpand := False before assigning the SQL.
  9. Open is for SELECT, ExecSQL for everything else. The wrong one raises (-308 / -310), and Open on an INSERT runs the INSERT first.
  10. NULL needs a type. ParamByName('x').Clear on a fresh parameter raises -335; set DataType first.
  11. One TFDConnection per thread. Share the connection definition (pooled), not the connection object.
  12. The OnExecuteError event is procedure of object. No anonymous method.
  13. Non-console, non-VCL programs (services) must call FDManager.SilentMode := True, or include a wait unit, or the first Open fails with the TFDGUIxWaitCursor factory error.

Read the full file on GitHub · 130 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 24d ago First seen · 130 lines · 156 tokens per session scan A 51ebdfe741e8

Subscribe to this mod's changes

delphi-firedac is a skill published in the GitHub repository danieleteti/delphi-ai-skills (27 stars, last pushed 15d ago), licensed Apache-2.0. It adds 156 tokens to every session and 2,234 once invoked, about $0.0006 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-11-08.

Related

delphi-firedac compared with skills from other repositories

delphi-firedac next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
delphi-firedacdanieleteti/delphi-ai-skillsSkill2715d agoApache-2.0A156Claude Code, Codex
PostgreSQL Databasedelphicleancode/delphi-spec-kitSkill598mo agoMITA34Claude Code
Firebird Databasedelphicleancode/delphi-spec-kitSkill598mo agoMITA24Claude Code
Dext Framework Patternsdelphicleancode/delphi-spec-kitSkill598mo agoMITA32Claude Code
MySQL Databasedelphicleancode/delphi-spec-kitSkill598mo agoMITC31Claude Code
horse-database-poolingHashLoad/horseSkill1.4ktodayMITA30Claude Code, Codex
durable-objectsfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A22Claude Code