plugin-testing

plugin-testing is a skill for Claude Code, Codex from NVIDIA-NeMo/nemo-helix. It costs 82 tokens per session (1,836 once invoked), scanned A, original, Apache-2.0.

A testing workflow for NeMo Helix plugins without a running platform. It uses mocked services, which are test replacements for real platform components, to test FastAPI routes and job code.

In plain words
What is it for?
Use it to test entity create, read, update, and delete routes, mock the entity client, test NemoJob run methods, configure test settings, and check FastAPI error handling.
Why use it?
It lets contributors test plugin behavior locally and reliably. It also helps avoid common dependency-override mistakes that can make route tests call unavailable real services.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to test entity create, read, update, and delete routes, mock the entity client, test NemoJob run methods, configure test settings, and check FastAPI error handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/plugin-testing
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 NVIDIA-NeMo/nemo-helix --skill plugin-testing
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

Made for: Claude Code, Codex.

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 plugin-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/plugin-testing/github.svg)](https://agentmods.dev/skills/nvidia-nemo/nemo-helix/plugin-testing)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/plugin-testing"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/plugin-testing/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 plugin-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/plugin-testing"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/plugin-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,836 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.00082 $0.01836
Opus 5.5 $0.00033 $0.00734
Sonnet 5.5 $0.00016 $0.00367
Haiku 4.5 $0.00008 $0.00184

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

Security

Grade A, and why

plugin-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 yesterday.

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.

packages/nemo_helix_plugin/src/nemo_helix_plugin/.agents/skills/plugin-testing/SKILL.md · 212 lines

How it starts

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

Testing NeMo Helix Plugins

All plugin surfaces can be tested without a running platform. The platform injects real implementations at runtime; tests replace them with mocks via dependency_overrides.

Service Route Tests

Setup: _make_app helper

from fastapi import FastAPI
from fastapi.testclient import TestClient
from unittest.mock import AsyncMock
from nemo_helix_plugin.entity_client import get_entity_client
from nemo_my_plugin.service import MyService

def _make_app(mock_client: AsyncMock) -> FastAPI:
    service = MyService()
    app = FastAPI()
    for spec in service.get_routers():
        app.include_router(spec.router, prefix=spec.prefix)
    app.dependency_overrides[get_entity_client] = lambda: mock_client
    return app

Critical: Override get_entity_client from nemo_helix_plugin.entity_client, not a local stub. The routes use Depends(get_entity_client) — overriding a different function object has no effect and tests will raise NotImplementedError.

Entity helper

from datetime import datetime, timezone
from unittest.mock import MagicMock
from nemo_helix_plugin.entity_client import NemoPaginationInfo

NOW = datetime.now(timezone.utc)

def _make_widget(name: str = "w1", workspace: str = "default") -> Widget:
    """Build a fake persisted entity with store-populated private attrs."""
    w = Widget(name=name, workspace=workspace, colour="red")
    w._id = f"id-{name}"
    w._created_at = NOW
    return w

def _make_list_response(items: list) -> MagicMock:
    resp = MagicMock()
    resp.data = items
    resp.pagination = NemoPaginationInfo(
        page=1, page_size=20, current_page_size=len(items),
        total_pages=1, total_results=len(items),
    )
    return resp

Route tests (all 5 CRUD operations)

from nemo_helix_plugin.entity_client import NemoEntityConflictError, NemoEntityNotFoundError

def test_create_201():
    mock = AsyncMock()
    mock.create.return_value = _make_widget("w1")
    client = TestClient(_make_app(mock))
    resp = client.post("/v2/workspaces/default/widgets", json={"name": "w1", "colour": "red"})
    assert resp.status_code == 201
    assert resp.json()["name"] == "w1"

def test_create_409_conflict():
    mock = AsyncMock()
    mock.create.side_effect = NemoEntityConflictError("already exists")
    client = TestClient(_make_app(mock))
    resp = client.post("/v2/workspaces/default/widgets", json={"name": "dup", "colour": "red"})
    assert resp.status_code == 409

def test_list_200():
    mock = AsyncMock()
    mock.list.return_value = _make_list_response([_make_widget("w1"), _make_widget("w2")])
    client = TestClient(_make_app(mock))
    resp = client.get("/v2/workspaces/default/widgets")
    assert resp.status_code == 200
    assert len(resp.json()["data"]) == 2

def test_get_200():
    mock = AsyncMock()
    mock.get.return_value = _make_widget("w1")
    client = TestClient(_make_app(mock))
    resp = client.get("/v2/workspaces/default/widgets/w1")
    assert resp.status_code == 200

def test_get_404():
    mock = AsyncMock()
    mock.get.side_effect = NemoEntityNotFoundError("not found")
    client = TestClient(_make_app(mock))
    resp = client.get("/v2/workspaces/default/widgets/missing")
    assert resp.status_code == 404

def test_patch_409_version_conflict():
    mock = AsyncMock()
    mock.get.return_value = _make_widget("w1")
    mock.update.side_effect = NemoEntityConflictError("version mismatch")
    client = TestClient(_make_app(mock))
    resp = client.patch("/v2/workspaces/default/widgets/w1", json={"colour": "blue"})
    assert resp.status_code == 409

def test_delete_204():
    mock = AsyncMock()
    client = TestClient(_make_app(mock))
    resp = client.delete("/v2/workspaces/default/widgets/w1")
    assert resp.status_code == 204

def test_delete_404():
    mock = AsyncMock()
    mock.delete.side_effect = NemoEntityNotFoundError("not found")
    client = TestClient(_make_app(mock))
    resp = client.delete("/v2/workspaces/default/widgets/missing")
    assert resp.status_code == 404

Read the full file on GitHub · 212 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. yesterday First seen · 212 lines · 82 tokens per session scan A a52b1a52d031

Subscribe to this mod's changes

plugin-testing is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 82 tokens to every session and 1,836 once invoked, about $0.0003 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-12-05.

Related

plugin-testing compared with skills from other repositories

plugin-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plugin-testingNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0A82Claude Code, Codex
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
testingTeam-Commonly/commonlySkill1.4ktodayApache-2.0A31Claude Code, Codex
architecture-patternsyonatangross/orchestkitSkill317todayMITA37Claude Code
rust-gatewayBerriAI/litellmSkill65ktodaynoneA70Claude Code, Codex
vercel-composition-patternslangfuse/langfuseSkill38ktodaynoneA58Claude Code, Codex
open-sourcebrowser-use/browser-useSkill123ktodayMITA101Claude Code