middleware-testing-patterns

middleware-testing-patterns is a skill for Claude Code from summarybotng/summarybot-ng. It costs 47 tokens per session (7,045 once invoked), scanned A, original, MIT.

A set of testing patterns for middleware, the software layer that routes and transforms messages between systems. It covers message brokers, enterprise service buses, and integration flows.

In plain words
What is it for?
Use it to test routing, transformations, dead-letter queues, message ordering, protocol conversion, retries, and compensation flows.
Why use it?
Failures in routing, message conversion, retries, ordering, or error handling can be hard to see across several connected systems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to test routing, transformations, dead-letter queues, message ordering, protocol conversion, retries, and compensation flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/summarybotng/summarybot-ng/middleware-testing-patterns
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 summarybotng/summarybot-ng --skill middleware-testing-patterns
Clone the repo
git clone --depth 1 https://github.com/summarybotng/summarybot-ng

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 middleware-testing-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/middleware-testing-patterns/github.svg)](https://agentmods.dev/skills/summarybotng/summarybot-ng/middleware-testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/summarybotng/summarybot-ng/middleware-testing-patterns"><img src="https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/middleware-testing-patterns/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 middleware-testing-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/summarybotng/summarybot-ng/middleware-testing-patterns"><img src="https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/middleware-testing-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,045 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.
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.00047 $0.07045
Opus 5 $0.00023 $0.03522
Sonnet 5 $0.00009 $0.01409
Haiku 4.5 $0.00005 $0.00705

Measured 5d ago against content hash 520babdfa84e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

middleware-testing-patterns 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 5d 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/middleware-testing-patterns/SKILL.md · 799 lines

How it starts

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

Middleware Testing Patterns

<default_to_action> When testing enterprise middleware, ESBs, or message-driven systems:

  1. VALIDATE message routing logic (content-based, header-based, recipient list)
  2. TEST message transformations end-to-end (input format -> output format)
  3. VERIFY dead letter queue handling (poison messages, retry exhaustion)
  4. ASSERT message ordering and sequencing with correlation IDs
  5. EXERCISE error handling and compensation patterns
  6. TEST protocol mediation (SOAP-to-REST, sync-to-async)
  7. VALIDATE EIP patterns (splitter, aggregator, content enricher, normalizer)

Quick Pattern Selection:

  • Message routing issues -> Content-based router tests
  • Transformation failures -> Schema-in/schema-out validation
  • Lost messages -> DLQ and retry pattern tests
  • Protocol bridging -> Mediation round-trip tests
  • Complex flows -> Correlation ID tracing tests

Critical Success Factors:

  • Middleware is invisible when it works; test the invisible
  • Always validate both the happy path AND the error channel (DLQ)
  • Correlation IDs are your lifeline for tracing multi-hop messages </default_to_action>

Quick Reference Card

When to Use

  • Testing ESB message flows (IBM IIB/ACE, MuleSoft, WSO2)
  • Validating message transformations (XSLT, JSON-to-XML, flat-file parsing)
  • Testing message broker routing (MQ, Kafka, RabbitMQ)
  • Verifying dead letter queue behavior
  • Testing protocol mediation (SOAP/REST bridging)
  • Validating Enterprise Integration Patterns (EIP)

Testing Levels

Level Purpose Dependencies Speed
Unit Transform Single mapping correctness None Fast
Route Logic Routing decision accuracy Mocked endpoints Fast
Integration End-to-end message flow Broker + endpoints Medium
DLQ/Error Error handling and recovery Full middleware stack Slower

Critical Test Scenarios

Scenario Must Test Example
Routing Correct destination selection Order type A -> Queue A, type B -> Queue B
Transformation Schema compliance after mapping XML -> JSON field mapping accuracy
DLQ Poison message handling Malformed XML lands in DLQ, not lost
Ordering Sequence preservation Messages 1-2-3 arrive in order
Correlation Multi-hop tracing Request-reply matched by correlation ID
Retry Transient failure recovery 3 retries with backoff, then DLQ
Mediation Protocol bridging fidelity SOAP request produces correct REST call

Read the full file on GitHub · 799 lines

Files

What ships with it

3 files 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. 5d ago First seen · 799 lines · 47 tokens per session scan A 520babdfa84e

Subscribe to this mod's changes

middleware-testing-patterns is a skill published in the GitHub repository summarybotng/summarybot-ng (2 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 7,045 once invoked, about $0.0002 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-09-03.