delphi-legacy

delphi-legacy is a skill for Claude Code from adrianosantostreina/delphi-dev. It costs 91 tokens per session (444 once invoked), scanned A, original, MIT.

A specialist workflow for modernizing old Delphi software, especially projects using outdated string types, embedded SQL, widespread `with` statements, or little interface-based structure. Delphi is a programming language and development environment commonly used for Windows applications.

In plain words
What is it for?
Use it to assess how old a Delphi project is, plan migration steps, replace unsafe SQL construction, introduce interfaces and tests, and update encoding and data types.
Why use it?
It provides an ordered way to reduce migration and maintenance risks in codebases that lack tests, use obsolete data types, or mix database and application logic together.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the delphi-dev plugin — 15 skills, 10 commands, 4 agents shipped together

Good fit Use it to assess how old a Delphi project is, plan migration steps, replace unsafe SQL construction, introduce interfaces and tests, and update encoding and data types.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adrianosantostreina/delphi-dev/delphi-legacy
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 adrianosantostreina/delphi-dev --skill delphi-legacy
Clone the repo
git clone --depth 1 https://github.com/adrianosantostreina/delphi-dev

Made for: Claude Code.

Or install delphi-dev, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 4 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adrianosantostreina/delphi-dev/delphi-legacy"><img src="https://agentmods.dev/badge/skills/adrianosantostreina/delphi-dev/delphi-legacy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 444 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00091 $0.00444
Opus 5 $0.00046 $0.00222
Sonnet 5 $0.00018 $0.00089
Haiku 4.5 $0.00009 $0.00044

Measured 9d ago against content hash 70a2321a2a5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

delphi-legacy 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 9d 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-legacy/SKILL.md · 44 lines

What it actually says

Delphi Legacy

Idioma de saída

Detecte o idioma da primeira mensagem. Padrão: pt-BR. Respeite overrides explícitos.

Protocolo para código legado

Antes de qualquer mudança, leia rules/legacy.md integralmente.

Diagnóstico rápido de nível de legado

Nível Características
1 — Moderno Interfaces, DI, testes, UTF-8
2 — Razoável Sem interfaces mas com SOLID, sem testes
3 — Legado with em todo lugar, SQL concatenado, sem separação de camadas
4 — Crítico String[N], Real, ANSI, Delphi 7/2007, zero abstração
5 — Arqueologia BDE, DBExpress, Paradox, DLL COM sem .pas

Estratégia por nível

Nível 3: Extrair interfaces → adicionar testes → remover with gradualmente

Nível 4: Encoding primeiro (UTF-8 BOM) → tipos (Real→Double, String[N]→string) → depois arquitetura

Nível 5: Mapeamento completo antes de tocar qualquer coisa. Plano de migração detalhado.

Não modernize sem ordem

  1. Encoding e tipos obsoletos (risco baixo, ganho imediato)
  2. SQL seguro (risco médio, segurança imediata)
  3. Extração de interfaces (habilita testes)
  4. Testes de caracterização (trava o comportamento atual)
  5. Refactoring de arquitetura (com testes protegendo)
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. 9d ago First seen · 44 lines · 91 tokens per session scan A 70a2321a2a5e

Subscribe to this mod's changes

delphi-legacy is a skill published in the GitHub repository adrianosantostreina/delphi-dev (79 stars, last pushed 5d ago), licensed MIT. It adds 91 tokens to every session and 444 once invoked, about $0.0005 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-08-30.

Related

Other skills, from other repositories

rust-check

Run cargo check on the current Rust project to find compile errors.

Hmbown/CodeWhale · 15 tokens

stack-trace-rust-probe

Internal helper for meta-stack-trace-investigator. Use when a Rust panic or backtrace needs Rust-specific Result/Option checks, cargo test guidance, and patch targets.

opensquilla/opensquilla · 42 tokens

hotpath_init

Configure hotpath profiling in a Rust project. Adds the hotpath dependency with feature-gated setup, instruments main with hotpath::main, functions with measure/measureall, and wraps channels, mutexes, rwlocks, streams, futures, reqwest clients, axum routers and byte-level I/O with hotpath macros. Use when the user…

pawurb/hotpath-rs · 88 tokens

clickhouse-rust-type-mismatches

Fix ClickHouse query errors in Rust when using clickhouse-rs crate. Use when: (1) "string is not valid utf8" errors - typically FixedString columns need CAST to String, (2) "tag for enum is not valid" errors - typically Option fields receiving non-NULL values, (3) Sum/count aggregations returning Float64 but Rust…

divinevideo/divine-mobile · 280 tokens

fastly-compute-rust-edition2024-fix

Fix Fastly Compute Rust build failures caused by edition2024 dependencies. Use when: (1) cargo build fails with "feature edition2024 is required", (2) wit-bindgen or wasip2 crates fail to download/parse, (3) Fastly SDK pulls in incompatible transitive dependencies, (4) Build worked before but fails after dependency…

divinevideo/divine-mobile · 116 tokens

memory-safety-patterns

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

rmyndharis/antigravity-skills · 45 tokens