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

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

light-review-RedGreen is a skill for Claude Code from GabrielOnDelphi/Claude-Tools-for-Delphi. It costs 0 tokens per session (1,526 once invoked), scanned A, original, MPL-2.0.

A test-first workflow for Delphi changes using DUnitX, a Delphi testing framework. TDD, or test-driven development, means writing a test before the code that makes it pass.

In plain words
What is it for?
It helps add Delphi behavior and fix Delphi bugs by writing and confirming a failing DUnitX test first, then changing the code until the test passes. Compilation is handled through a light-compiler agent.
Why use it?
It makes a new behavior or bug fix start with a test that demonstrably fails for the right reason. The later passing test helps prevent the same bug from returning.

Skill for Claude Code

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

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-RedGreen/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-RedGreen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gabrielondelphi/claude-tools-for-delphi/light-review-redgreen"><img src="https://agentmods.dev/badge/skills/gabrielondelphi/claude-tools-for-delphi/light-review-redgreen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,526 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.00000 $0.01526
Opus 5 $0.00000 $0.00763
Sonnet 5 $0.00000 $0.00305
Haiku 4.5 $0.00000 $0.00153

Measured 7d ago against content hash 0dc1a2e01fd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

light-review-RedGreen 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 7d 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-RedGreen/SKILL.md · 73 lines

How it starts

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

/light-review-RedGreen — Test first, then make it pass

This skill enforces one discipline: a failing test that fails on its own assertion exists and is confirmed RED before any production code is written. Then you make it green. Nothing else.

Why it matters: a test written after the code is tautological — it confirms the code does what the code does, not what the requirement says. Red-first is the only cheap proof the test can actually fail.

Two entry modes

  • New behavior — the test encodes the requirement the new code must satisfy. It is red because the behavior does not exist yet.
  • Bug fix — the test reproduces the bug: it asserts the correct result and therefore fails against today's buggy code. Green then means the bug is fixed AND a regression test guards it forever. This is the highest-value use — never fix a bug without it, unless the bug is genuinely untestable (see "When not to use").

The loop (one behavior at a time)

  1. Locate the test project (usually UnitTesting\Tests.dproj) and the unit under test. If the project has no test project, do NOT guess a layout — ask the user whether to create one (template: c:\AI\Claude Code\TEMPLATE FOLDER\UnitTesting (TEMPLATE)\) and wait.
  2. Write ONE failing [Test] for this behavior. It MUST:
    • use a real assertion (Assert.AreEqual, Assert.IsTrue, Assert.WillRaise, …) — never Assert.Pass as the sole assertion, never zero Assert.* calls;
    • assert behavior (a returned value, a raised exception, a state change), not "the type exists" or "the function is callable";
    • have a name that states what is verified.
  3. Confirm RED — and for the RIGHT reason. Compile the test .dproj via the light-compiler agent (see Compiling), then launch the test EXE yourself and read the DUnitX counts. The test must fail on its assertion (DUnitX reports a failure — e.g. "Expected 5 but got 0") — NOT fail to compile, and NOT error out for an unrelated reason. A compile error or an unexpected exception means the test is wrong; fix the test before writing any product code.
  4. Green — implement the smallest change that makes it pass. Reuse LightSaber before writing new code — a LightCore.* / LightVcl.* / LightFmx.* unit may already do it; uses that unit instead of hand-rolling, and say you checked. Then compile via the agent, launch the EXE, and confirm the test now passes and nothing else went red.
  5. Refactor only if needed, then re-run the EXE to confirm it is still green.
  6. Stop — do not commit. Leave the change for the user to review and commit; git is theirs to trigger.

Read the full file on GitHub · 73 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. 7d ago Changed · +10 lines 0dc1a2e01fd4
  2. 11d ago First seen · 63 lines · 0 tokens per session scan A 17276958d5a2

Subscribe to this mod's changes

light-review-RedGreen is a skill published in the GitHub repository GabrielOnDelphi/Claude-Tools-for-Delphi (18 stars, last pushed 4d ago), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 1,526 tokens. 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.