delphi-dev — Claude Code Plugin
A Claude Code plugin that turns the assistant into a senior Delphi expert.
🇧🇷 Leia em Português
What is it
delphi-dev activates automatically whenever Claude Code detects Delphi-related content — .pas, .dpr, .dfm, .dpk, .dproj files, or any mention of Object Pascal, FireMonkey, VCL, FireDAC, or RAD Studio. Once active, Claude applies the full Delphi Style Guide, Clean Code principles, and SOLID patterns without being asked.
Features
| Command | Description |
|---|
| Auto Delphi Mode | Opening any .pas, .dpr or .dfm file activates the full coding standards context automatically |
/audit | Generates a complete professional technical audit with per-dimension scoring and a prioritized modernization roadmap |
/review | Quick code review — detects violations and provides corrected examples |
/write | Writes new code with all standards applied from the start |
/new-project | Scaffolds a new project with standardized layered folder structure |
/spec | Analyzes the current project source code and auto-generates a complete SPEC.md |
/tdd | Generates a complete DUnitX unit test suite for the project |
/e2e | Runs end-to-end scenarios against a running Delphi desktop app — builds it, opens the .exe, drives the screens and reports a verdict per scenario |
/contribute-kb | Packages local learnings captured by the hooks and opens a PR to the community knowledge base (needs hooks, currently disabled — see Installation) |
/dashboard | Displays GitHub repository metrics — stars, forks, issues, PRs, commits, releases, contributors |
/about | Displays plugin info, version, and available commands |
End-to-end testing with /e2e new in 3.2.0
Think of it as Playwright for Delphi desktop apps. You describe test scenarios in plain
language; the plugin builds the project, opens the .exe, drives the real screens, and returns
a verdict per scenario — correlated with your app's log.
/e2e login: blank password, wrong password, correct password
Without arguments, /e2e derives an "opens without error" scenario for each screen of the
main menu.
Four verdicts, not two
The distinction is what separates a useful report from noise:
| Verdict | Meaning |
|---|
| ✅ PASS | Ran and matched the expectation |
| ❌ FAIL | Ran and diverged — the app is wrong |
| ⛔ BLOCKED | Couldn't run — I don't know whether the app is wrong |
| ⏭️ SKIPPED | Writes data and wasn't authorized at the gate |
A report that blames a bug where there was only state contamination is worse than no report.
So when a scenario can't be returned to its starting point, it comes back ⛔ BLOCKED, never
❌ FAIL.
It never steals focus
Clicks go through PostMessage, text through WM_CHAR, screenshots through PrintWindow —
so the plugin never grabs your keyboard and never moves your cursor. Screenshots work even
with the window fully covered, and WM_CHAR is immune to the dead-key problem of ABNT
keyboards that breaks SendKeys.
By default the app runs in the foreground so you can watch. Pass --background and it runs
behind your other windows without interrupting you.
It stops and asks before touching your data
Before the first click, /e2e presents the scenarios it intends to run, which ones write
data and what they write, and waits. It never writes on its own initiative — it explores,
captures, and leaves through Cancel/Back.
It reads your app's log
Delivery is not effect: a message can reach the window and still do nothing if the control
isn't in the expected state. That's why /e2e reads your log in parallel — it's the difference
between ⛔ BLOCKED and ❌ FAIL. If your app has no log, the plugin offers (never imposes)
either a minimal logging unit or a headless --selftest mode, and generates it following the
plugin's own coding standards.
Requirements: Windows, and RAD Studio for the build step. FireMonkey is validated;
VCL is a declared fallback. Android is out of scope by design.
Installation
npx delphi-dev
This single command:
- Installs the Claude Code plugin
- Downloads the RAG knowledge base
- Installs the VS Code extension (if VS Code is detected)
- Removes any stale automation hooks left by older versions
Requirements: Node.js 18+, Claude Code CLI, git
Automation hooks are disabled since v2.2.2. They depended on native modules
that broke clean installs on Windows. The knowledge base still ships and the
skills, commands and agents all work — what is currently off is the automatic
per-prompt knowledge injection and session capture. They return with the local
MCP server. Do not register them by hand: on v3.0.0 and earlier the capture
path writes session noise into the index tagged as authoritative.