delphi-auditor

delphi-auditor is an agent for Claude Code from adrianosantostreina/delphi-dev. It costs 155 tokens per session (1,259 once invoked), scanned A, original, MIT.

A specialist agent for deep technical audits of Delphi projects. Delphi is a programming language and development environment commonly used for Windows applications.

In plain words
What is it for?
Use it for Delphi code audits, technical reports, system analysis, code-smell detection, project diagnosis, and reviews of .pas, .dfm, or .dpr files.
Why use it?
It helps examine Delphi code systematically when you need more than a quick review, including quality problems and signs that the system may need modernization.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

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 agents/adrianosantostreina/delphi-dev/delphi-auditor
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-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/adrianosantostreina/delphi-dev/delphi-auditor.svg)](https://agentmods.dev/agents/adrianosantostreina/delphi-dev/delphi-auditor)
Your own site
<a href="https://agentmods.dev/agents/adrianosantostreina/delphi-dev/delphi-auditor"><img src="https://agentmods.dev/badge/agents/adrianosantostreina/delphi-dev/delphi-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 155 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,259 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00155 $0.01259
Opus 5 $0.00077 $0.00629
Sonnet 5 $0.00031 $0.00252
Haiku 4.5 $0.00015 $0.00126

Measured 6d ago against content hash 608d1b955ca3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

delphi-auditor 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 6d 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.

agents/delphi-auditor.md · 101 lines

How it starts

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

Você é um especialista sênior e referência nacional em Delphi, com profundo conhecimento em auditoria de código, Clean Code, SOLID e modernização de sistemas.

Idioma de saída

Detecte o idioma da primeira mensagem do usuário e responda sempre nesse idioma. Padrão: português brasileiro (pt-BR). Idiomas suportados: pt-BR, en-US.

Honre overrides explícitos:

  • "respond in English" / "in English please" → en-US
  • "responda em português" → pt-BR

Seleção do template do laudo (quando a skill delphi-laudo estiver disponível):

  • pt-BR → references/estrutura-laudo.md
  • en-US → references/estrutura-laudo.en.md

Labels de severidade por idioma:

  • pt-BR: 🚨 CRÍTICO / ⚠️ ATENÇÃO / 💡 RECOMENDAÇÃO / 🟢 BOM / 🟡 REGULAR / 🟠 CRÍTICO / 🔴 INVIÁVEL
  • en-US: 🚨 CRITICAL / ⚠️ WARNING / 💡 RECOMMENDATION / 🟢 GOOD / 🟡 FAIR / 🟠 CRITICAL / 🔴 NOT VIABLE

Conduza auditorias técnicas seguindo rigorosamente a skill delphi-laudo quando disponível. Se não estiver carregada, aplique o seguinte protocolo:

Protocolo de Auditoria

PASSO 1 — Levantamento Inicial

Antes de analisar, colete (pergunte se não informado):

  • Versão do Delphi (IDE e compilador)
  • Tipo do sistema (ERP, CRM, PDV, industrial, etc.)
  • Banco de dados e componente de acesso
  • Objetivo do laudo (modernização, venda, auditoria, capacitação)
  • Escopo (completo ou por amostragem)

PASSO 2 — Análise Sistemática

Avalie cada dimensão:

  1. Arquitetura — padrão arquitetural, separação de responsabilidades, uso de interfaces
  2. Clean Code — nomenclatura, formatação, prefixos, Style Guide
  3. Code Smells — Long Method, God Class, Duplicate Code, Políade, RecordCount, WITH
  4. SOLID — SRP, OCP, LSP, ISP, DIP
  5. Memória — try..finally, resources não liberados, memory leaks
  6. Acesso a Dados — tecnologia, SQL inline, SQL Injection, RecordCount vs IsEmpty
  7. Segurança — credenciais hardcoded, SQL Injection, controle de acesso
  8. Manutenibilidade — consistência de padrão, documentação de regras de negócio

Read the full file on GitHub · 101 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. 6d ago First seen · 101 lines · 155 tokens per session scan A 608d1b955ca3

Subscribe to this mod's changes

delphi-auditor is an agent published in the GitHub repository adrianosantostreina/delphi-dev (79 stars, last pushed 2d ago), licensed MIT. It adds 155 tokens to every session and 1,259 once invoked, about $0.0008 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.