plugin-function

plugin-function is a skill for Claude Code, Codex from NVIDIA-NeMo/nemo-helix. It costs 76 tokens per session (3,236 once invoked), scanned A, original, Apache-2.0.

A guide to adding in-process functions to NeMo Helix plugins and exposing them as HTTP routes and CLI commands. It covers input schemas and streaming newline-delimited JSON responses.

In plain words
What is it for?
Use it when adding a plugin function, defining its input schema, mounting routes, or handling streamed responses from the CLI.
Why use it?
It removes the need to design separate command-line and HTTP interfaces for the same function. It also explains how the platform derives flags and routes from the function schema.

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 when adding a plugin function, defining its input schema, mounting routes, or handling streamed responses from the CLI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/plugin-function
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-function
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-function

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/plugin-function"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/plugin-function.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,236 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.00076 $0.03236
Opus 5.5 $0.00030 $0.01294
Sonnet 5.5 $0.00015 $0.00647
Haiku 4.5 $0.00008 $0.00324

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

Security

Grade A, and why

plugin-function 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-function/SKILL.md · 303 lines

How it starts

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

Plugin Functions (NemoFunction)

A NemoFunction is the third primitive on a plugin, alongside NemoResource and NemoJob. It's an in-process request handler — no scheduler, no backend dispatch — that the platform exposes as both a CLI subcommand and an HTTP route automatically.

nemo <plugin> <fn> [--spec '{...}' | --spec-file FILE] [--workspace W] [--request-id ID] [<spec-flag>...]

The command POSTs to the plugin service's auto-derived route on the platform selected by the global nemo --base-url / nemo --context flags and the active CLI context. There is no explain — a function's only schema is spec_schema, and --help is the introspection surface.

CLI introspection — auto-generated per-field flags

Every scalar leaf in spec_schema becomes a Typer flag automatically. Nested submodels recurse with dotted paths (--target.url, --target.timeout-seconds). For a function with spec_schema = GreetSpec(name: str):

$ nemo my-plugin greet --help
...
Function Spec:
  --name <NAME>  Name to greet.

Spec Source:
  --spec <SPEC>            Spec as a JSON string. [default: {}]
  --spec-file <SPEC_FILE>  Path to a YAML or JSON spec file (used as base; per-flag values override).

Submission:
  -w, --workspace <WORKSPACE>  Workspace path segment used in the submit URL.
  --request-id <REQUEST_ID>    Set the X-Request-ID header (echoed back in ctx.request_id).
...
Function Spec flags are generated from the GreetSpec Pydantic schema. Precedence: --spec-file (base) → --spec JSON (overlay) → per-flag values (top).

Precedence at runtime is --spec-file (base) → --spec JSON (overlay) → per-field flag (top), then validation against spec_schema happens once on the merged value. Lists, dicts, discriminated unions, and other types the walker can't render fall through to --spec / --spec-file. The plumbing lives in nemo_helix_plugin._spec_flags and is shared with the jobs CLI; if a leaf is missing from --help, check that the field type is str / int / float / bool (or Optional of one of those) and that its name doesn't collide with a static verb flag.

Read the full file on GitHub · 303 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 · 303 lines · 76 tokens per session scan A 44e714180e6d

Subscribe to this mod's changes

plugin-function is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 76 tokens to every session and 3,236 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-function compared with skills from other repositories

plugin-function next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plugin-functionNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0A76Claude Code, Codex
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
rust-gatewayBerriAI/litellmSkill65ktodaynoneA70Claude Code, Codex
vercel-composition-patternslangfuse/langfuseSkill38ktodaynoneA58Claude Code, Codex
open-sourcebrowser-use/browser-useSkill123ktodayMITA101Claude Code
stripe-projectsNousResearch/hermes-agentSkill269ktodayMITA15Claude Code, Codex
fastapi-patternsaffaan-m/ECCSkill317k4d agoMITA35Claude Code, Kiro