api-gateway: Skill for Claude Code

.claude/skills/run-example-test/SKILL.md

run-example-test is a skill for Claude Code from membrane/api-gateway. It costs 50 tokens per session (1,148 once invoked), scanned A, original, Apache-2.0.

A helper for running one distribution example or tutorial integration test in the Membrane API Gateway project. An integration test checks that multiple parts work together.

In plain words
What is it for?
Use it to build the distribution and run a specified example or tutorial test by class name or path.
Why use it?
It avoids running the much longer full example suite when you only need to check one example.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is membrane/api-gateway's own configuration. It tells Claude Code how to work on api-gateway 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 api-gateway configures →

Reuse

Borrowing it

Nothing to install: this file belongs to membrane/api-gateway. 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/membrane/api-gateway/master/.claude/skills/run-example-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/membrane/api-gateway

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 run-example-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/membrane/api-gateway/run-example-test/github.svg)](https://agentmods.dev/skills/membrane/api-gateway/run-example-test)
Your own site
<a href="https://agentmods.dev/skills/membrane/api-gateway/run-example-test"><img src="https://agentmods.dev/badge/skills/membrane/api-gateway/run-example-test/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 run-example-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/membrane/api-gateway/run-example-test"><img src="https://agentmods.dev/badge/skills/membrane/api-gateway/run-example-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,148 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.00050 $0.01148
Opus 5.5 $0.00020 $0.00459
Sonnet 5.5 $0.00010 $0.00230
Haiku 4.5 $0.00005 $0.00115

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

Security

Grade A, and why

run-example-test 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (run-example-test.sh), 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.

.claude/skills/run-example-test/SKILL.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.

Run Example Test

Runs one example/tutorial integration test from the distribution module in ~2 seconds, bypassing the hardcoded failsafe suite that would otherwise run the entire example suite (~6 min, some tests need internet).

When to use

  • The user wants to run / verify / check a specific example or tutorial test, e.g. JwtVerificationExampleTest, InterceptorChainsTutorialTest, a *ExampleTest under com.predic8.membrane.examples.*, or a *TutorialTest under com.predic8.membrane.tutorials.*.

The distribution must be built first

The base classes (DistributionExtractingTestcase) unzip distribution/target/membrane-api-gateway-*.zip and start membrane from the unzipped distribution — not from the source tree. So the tests only ever see what was last built. Before running them the distribution must be built at the repo root with:

mvn clean install -DskipTests

The script does this for you (see below). -DskipTests still compiles tests but skips running them, which also dodges the German-locale annot test failure on this machine.

How to run

Invoke the helper script with the test class (simple name, fully-qualified name, or path all work):

.claude/skills/run-example-test/run-example-test.sh JwtVerificationExampleTest      # fast, ~2s
.claude/skills/run-example-test/run-example-test.sh -b JwtVerificationExampleTest   # rebuild dist first, then run

With no argument it runs the full example IT suite via failsafe (slow, some tests need internet) — and always rebuilds the distribution first, because the suite runs from the built distribution.

The script:

  1. Distribution build. For the full suite it always runs mvn clean install -DskipTests at the root. For a single test it builds the .zip only if it is missing, or if you pass -b.
  2. Resolves the class name to its FQN by finding the .java under distribution/src/test/java.
  3. Incrementally recompiles distribution test classes (offline) so edits to the test class are picked up.
  4. Runs just that class via a tiny JUnit Platform launcher (RunOne.java), with the working directory set to distribution/ (the tests resolve ./target).

Read the full file on GitHub · 101 lines

Files

What ships with it

2 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. 8d ago Changed ba36e81ba409
  2. 2mo ago First seen · 101 lines · 50 tokens per session scan A 616053ceae4d

Subscribe to this mod's changes

run-example-test is a skill published in the GitHub repository membrane/api-gateway (656 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 1,148 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

dmr

Write django-modern-rest (dmr) code with the recommended patterns, covering controllers, routers, typed DTOs with msgspec or pydantic, auth, throttling, error handling, OpenAPI, and tests. Use whenever a project depends on django-modern-rest, imports dmr, or asks for a typed Django REST API, and when reviewing dmr…

wemake-services/django-modern-rest · 80 tokens

horse-integration-tests

Guide for writing automated integration tests for Horse endpoints using DUnit/DUnitX and THTTPClient.

HashLoad/horse · 25 tokens

dmr-openapi-skeleton

Generate django-modern-rest transport-layer skeletons from OpenAPI 3.1+ specs. Use when asked to turn an OpenAPI file, URL, or pasted document into typed DTOs, controllers, routers, Django URL wiring, and minimal tests for this repository or similar projects built on dmr. Trigger on requests to scaffold APIs…

wemake-services/django-modern-rest · 97 tokens

dmr-from-django-ninja

Migrate an existing Django API from django-ninja/ninja-extra to django-modern-rest while preserving routes, request/response contracts, auth, throttling, and test coverage. Use when replacing NinjaExtraAPI/apicontroller/http handlers/ninja.Schema with dmr controllers/routers and typed DTOs.

wemake-services/django-modern-rest · 68 tokens

dmr-from-drf

Migrate an existing Django API from Django REST Framework to django-modern-rest while preserving routes, request/response contracts, auth, permissions, throttling, pagination, and test coverage. Use when replacing APIView/ViewSet/GenericAPIView and DRF serializers/routers with dmr controllers/routers and typed DTOs.

wemake-services/django-modern-rest · 69 tokens

api-testing-patterns

Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.

proffesor-for-testing/agentic-qe · 34 tokens