Claude-Tools-for-Delphi: Skill for Claude Code

.claude/skills/light-review-PostEdit/SKILL.md

light-review-PostEdit is a skill for Claude Code from GabrielOnDelphi/Claude-Tools-for-Delphi. It costs 128 tokens per session (2,630 once invoked), scanned A, original, MPL-2.0.

A post-change code review for Delphi, a programming language and framework used to build desktop apps. It checks recent edits against their intended behavior and related DFM/FMX form files.

In plain words
What is it for?
Use it after implementing a fix or feature to list and inspect each edit, compare it with known false-positive patterns, revert failed changes, and then test or compile the project.
Why use it?
It helps catch incorrect changes, missed places that call the changed code, broken observable behavior, and failed tests or builds before delivery.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is GabrielOnDelphi/Claude-Tools-for-Delphi's own configuration. It tells Claude Code how to work on Claude-Tools-for-Delphi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Claude-Tools-for-Delphi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to GabrielOnDelphi/Claude-Tools-for-Delphi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/GabrielOnDelphi/Claude-Tools-for-Delphi/main/.claude/skills/light-review-PostEdit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/GabrielOnDelphi/Claude-Tools-for-Delphi

Made for: Claude Code.

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 light-review-PostEdit

README.md
[![agentmods](https://agentmods.dev/badge/skills/gabrielondelphi/claude-tools-for-delphi/light-review-postedit/github.svg)](https://agentmods.dev/skills/gabrielondelphi/claude-tools-for-delphi/light-review-postedit)
Your own site
<a href="https://agentmods.dev/skills/gabrielondelphi/claude-tools-for-delphi/light-review-postedit"><img src="https://agentmods.dev/badge/skills/gabrielondelphi/claude-tools-for-delphi/light-review-postedit/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 light-review-PostEdit

Your own site · 80×15
<a href="https://agentmods.dev/skills/gabrielondelphi/claude-tools-for-delphi/light-review-postedit"><img src="https://agentmods.dev/badge/skills/gabrielondelphi/claude-tools-for-delphi/light-review-postedit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,630 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 118
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00128 $0.02630
Opus 5 $0.00064 $0.01315
Sonnet 5 $0.00026 $0.00526
Haiku 4.5 $0.00013 $0.00263

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

Security

Grade A, and why

light-review-PostEdit 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 2d 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.

.claude/skills/light-review-PostEdit/SKILL.md · 153 lines

How it starts

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

Delphi Post Change

You just wrote new code. Some of it is wrong. Find the problems before the user does.

Precondition: if no code changes were made in this session, stop and tell the user: "No prior changes found in this session — there is nothing to verify." Do not invent edits to verify.

Step 1 — List what you changed

For each edit you applied in this session:

  • file:line of the change
  • one sentence: what the code does now (new feature) OR what the original did vs. what the new code does (bug fix)
  • one sentence: WHY you made the change (the feature requirement or the bug you were fixing)

If you cannot state the "why" clearly, the change is suspect — flag it.

Step 2 — Load the false-positive memory and match against the list

  1. Read c:/Users/<you>/.claude/agent-memory/light-review/patterns_common_false_positives.md if it exists.
  2. Glob c:/Users/<you>/.claude/agent-memory/light-review/patterns_*.md and read the 2–5 files whose filename keywords match the files you edited (e.g., edited FormLessonChat.pas → read patterns_formlessonsetup_*.md, patterns_formview_main_chat.md, etc.).

For every edit in your Step 1 list, check: does this change contradict a known-good pattern? If yes, quote the line of the pattern file it contradicts, then revert immediately and note the revert. No quoted pattern line, no revert.

If the memory directory does not exist, skip this step.

Step 3 — Critical analysis of each change, including the opposite case

This is the ONLY judgement pass over the edits. Ask all of it here, in one go — do not judge the edits and then judge them again, because a second pass over your own first pass is the worst-scoring way to review anything (21.7% of planted errors caught against 28.6% for a fresh console, and 4.4 wrong complaints per document against 3.1 — Song, arXiv:2603.12123).

For every edit:

  • Does the code match the stated intent? Does the new code actually do what you described, or does it just appear to?
  • For bug fixes: did you fix the root cause or just paper over a symptom? Could the underlying problem still manifest in a different code path?
  • For new features: does the feature handle the obvious edge cases — empty input, nil references, boundary values, range-check errors, missing objects, double-invocation?
  • Did you change observable behavior the original code did not need to change? Unintended side effects: wrong default, swapped order of operations, different exception type, weakened invariant.
  • Did you touch one call site but miss another? Grep for the procedure name or pattern across the project.
  • Did you change a procedure signature, class layout, or DFM/FMX-bound field? If yes, find every caller and confirm they still work.
  • Did the change introduce a new exception path, ownership shift, or broken invariant? Watch for: Free on a non-owned object, missing try/finally, FreeAndNil on a borrowed reference, dangling event handlers after a form closes.
  • Resource leaks. New TStringList.Create, TFileStream.Create, TBitmap.Create etc. — is there a matching Free or try/finally?
  • Threading. Did you touch code that runs on a non-main thread? Synchronize / Queue boundary preserved?
  • What if the original code was actually correct (for fixes), or the new feature is solving the wrong problem?
  • What if the change is correct but overshot — could a smaller change have worked?
  • What if a related guarantee exists upstream that the new code now violates downstream?
  • What if the feature is correct in isolation but breaks an assumption another part of the code relies on?

Read the full file on GitHub · 153 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. 2d ago Changed · +3 lines · +62 tokens per session daae5f79348f
  2. 6d ago Changed · +10 lines 827c5b99ce16
  3. 10d ago First seen · 140 lines · 66 tokens per session scan A 093128bc7d6b

Subscribe to this mod's changes

light-review-PostEdit is a skill published in the GitHub repository GabrielOnDelphi/Claude-Tools-for-Delphi (17 stars, last pushed 3d ago), licensed MPL-2.0. It adds 128 tokens to every session and 2,630 once invoked, about $0.0006 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.