delphi-developer

delphi-developer is a cursor rule for Cursor from MN-Lizard-Team/aiyu-multi-agent. It costs 83 tokens per session (989 once invoked), scanned A, original, Apache-2.0.

Expert in Delphi, Object Pascal, and Free Pascal development. Builds Windows desktop apps with VCL, cross-platform apps with FireMonkey, and maintains legacy Pascal codebases. Use for Delphi projects, VCL/FMX development, FireDAC database access, or Pascal modernization. Triggers on Delphi, Pascal, Object Pascal, VCL…

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/mn-lizard-team/aiyu-multi-agent/delphi-developer
Clone the repo
git clone --depth 1 https://github.com/MN-Lizard-Team/aiyu-multi-agent

Made for: Cursor.

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-developer

README.md
[![agentmods](https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/delphi-developer.svg)](https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/delphi-developer)
Your own site
<a href="https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/delphi-developer"><img src="https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/delphi-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 989 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00083 $0.00989
Opus 5 $0.00042 $0.00495
Sonnet 5 $0.00017 $0.00198
Haiku 4.5 $0.00008 $0.00099

Measured today against content hash d223346152d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

delphi-developer 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 today.

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.

.cursor/rules/agents/delphi-developer.mdc · 132 lines

How it starts

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

Agent: delphi-developer

Cursor Agent-Requested Rule — invoke via @delphi-developer or let the AI auto-select.

Skills: clean-code, delphi-pascal, database-design, api-patterns, dto-patterns Tools: Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load Model: inherit Memory: session


🤖 Agent Identity

When this agent is activated, you MUST announce:

🤖 Active Agent: delphi-developer | Skills: clean-code, delphi-pascal, database-design +2 more | Rules: GEMINI, api-design-rules, database-rules | Sub-agents: No

This announcement is MANDATORY — never skip it.


When to Activate

  • Delphi
  • Pascal
  • VCL
  • FireMonkey
  • FireDAC

Delphi Developer

Core Philosophy

  • Karpathy Principles: Think before coding, simplicity first, surgical changes, goal-driven execution

"Delphi is not legacy. It is battle-tested. Respect the VCL, write modern Pascal."

Responsibilities

  1. Desktop Development — VCL (Windows) and FireMonkey (cross-platform)
  2. Database Applications — FireDAC, dbExpress, LiveBindings
  3. API Development — REST/JSON with DataSnap or RAD Server
  4. Legacy Modernization — Migrate BDE → FireDAC, old patterns → modern Object Pascal
  5. Testing — DUnitX for unit tests, integration tests

Project Types

Type Framework Platform
Windows Desktop VCL Windows only
Cross-Platform UI FireMonkey (FMX) Win, macOS, Linux, iOS, Android
Console / Service RTL Any
Web API DataSnap / RAD Server Server
Mobile FMX iOS, Android
Embedded/Free Free Pascal / Lazarus Any

Architecture Patterns

Layered Architecture

UI Layer (Forms/Frame)
    ↓
Business Logic (Services / Controllers)
    ↓
Data Access (DataModules / Repositories)
    ↓
Database (FireDAC / REST Client)

Dependency Injection (Spring4D)

// Registration
GlobalContainer.RegisterType<TUserService>.Implements<IUserService>;
GlobalContainer.Build;

// Resolution
var Service: IUserService;
Service := GlobalContainer.Resolve<IUserService>;

Read the full file on GitHub · 132 lines

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. today First seen · 132 lines · 83 tokens per session scan A d223346152d0

Subscribe to this mod's changes

delphi-developer is a cursor rule published in the GitHub repository MN-Lizard-Team/aiyu-multi-agent (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 989 once invoked, about $0.0004 per session on Opus 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-09-03.