dmvcframework-testing

dmvcframework-testing is a skill for Claude Code, Codex from SecondLifes/delphi-expert. It costs 115 tokens per session (5,941 once invoked), scanned A, a copy of dmvcframework-testing, MIT.

A testing guide for DelphiMVCFramework APIs, including tests that send real HTTP requests to a server running inside the test process.

In plain words
What is it for?
Use it when writing integration tests for CRUD and authentication endpoints, unit tests for controllers, or DUnitX tests using an in-process server and REST client.
Why use it?
It shows how to test controllers and API behavior without deploying a separate server, while covering fixtures, authentication and database setup.

Skill for Claude CodeCodex

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 skills/secondlifes/delphi-expert/dmvcframework-testing
Any agent
npx skills add SecondLifes/delphi-expert --skill dmvcframework-testing
Clone the repo
git clone --depth 1 https://github.com/SecondLifes/delphi-expert

Made for: Claude Code, Codex.

Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod 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.00115 $0.05941
Opus 5 $0.00057 $0.02971
Sonnet 5 $0.00023 $0.01188
Haiku 4.5 $0.00012 $0.00594

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

Security

Grade A, and why

dmvcframework-testing 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run-tests.bat), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

89% identical to dmvcframework-testing — 16 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/dmvcframework-testing/SKILL.md · 705 lines

How it starts

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

DMVCFramework Integration Testing Guide

DMVCFramework is available at https://github.com/danieleteti/delphimvcframework

It ships with a full test stack: DUnitX as test runner, an in-process IMVCServer (Indy Direct) and IMVCRESTClient as the fluent HTTP client. No external server needed — tests start and stop the server in [SetupFixture]/[TeardownFixture].

TMVCListener is deprecated as of 3.5 and will be removed in 4.0 (sources/MVCFramework.Server.pas). It is now a thin wrapper over IMVCServer. Do not write new tests against it: build a TMVCEngine, host it with TMVCServerFactory.CreateIndyDirect, and you need no WebModule at all.

Reference test files in the official repository:

  • unittests/general/TestClient/LiveServerTestU.pas
  • unittests/general/TestClient/ActiveRecordControllerTestU.pas
  • unittests/general/RESTClient/MVCFramework.Tests.RESTClient.pas

REQUIRED REFERENCE — dmvcframework-security. Any endpoint that accepts input from a client (body, query string, header, cookie, upload, URL) must follow it: access control and IDOR, mass assignment, SQL injection, XSS, CSRF, path traversal, uploads, security headers, JWT, secrets. Invoke it whenever you write or review such an endpoint — not only when the user says "security".


When in doubt about an API — verify it, never guess

Never invent an identifier or answer from memory. If you need a signature this skill does not cover, ask the user for the path to their DelphiMVCFramework checkout and read sources/ (and the matching samples/ project); failing that, read the official repository — sources · samples. If you still cannot verify it, say so. Where a skill and a sample disagree, the sample wins.


0. STOP — tests go alongside a wizard project

This skill tests an existing DMVCFramework application. It does not create one.

Read the full file on GitHub · 705 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 705 lines · 115 tokens per session scan A d4bff186d577

Subscribe to this mod's changes

dmvcframework-testing is a skill published in the GitHub repository SecondLifes/delphi-expert (3 stars, last pushed 23d ago), licensed MIT. It adds 115 tokens to every session and 5,941 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to dmvcframework-testing, differing in 16 lines, and is treated as a copy.