setup-trtmc-environment

A procedure for preparing a TensorRT-Model-Connect checkout on an unfamiliar computer. TensorRT is NVIDIA software for running machine-learning models efficiently, and the procedure covers the supported container and GPU setup.

In plain words
What is it for?
Use it before building, testing, packaging, or validating runtime behavior from a fresh checkout. It helps choose the repository-supported Docker path and verify the resulting environment.
Why use it?
It prevents builds and tests from depending on old containers, machine-specific assumptions, or an unsupported environment. It also checks that the repository, container mount, GPU, and TensorRT installation work together.

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/nvidia/tensorrt-model-connect/setup-trtmc-environment
Any agent
npx skills add NVIDIA/TensorRT-Model-Connect --skill setup-trtmc-environment
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/TensorRT-Model-Connect

Made for: Claude Code, Codex.

Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00048 $0.00370
Opus 5 $0.00024 $0.00185
Sonnet 5 $0.00010 $0.00074
Haiku 4.5 $0.00005 $0.00037

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

Security

Grade A, and why

setup-trtmc-environment 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.

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.

plugins/trtmc-agent-skills/skills/setup-trtmc-environment/SKILL.md · 36 lines

What it actually says

Set Up The Environment

Start from the checkout, not from existing container names or machine-specific workspace conventions.

  1. Find the repository root with git rev-parse --show-toplevel.
  2. Read the current environment guide, Dockerfile, and matching scripts/docker_build_*.sh / scripts/docker_run_*.sh. Treat them as the source of truth; do not copy assumptions from another host.
  3. Inspect the host as needed (uname, docker info, nvidia-smi, free disk) and select a repo-supported path. If none matches, explain the gap and stop. Do not install drivers or reconfigure the container runtime without separate authorization.
  4. Build the selected repo image when it is missing or stale, using the repo's build path. Do not prebuild unrelated model-family reference profiles.
  5. Start a fresh container from that image with this checkout mounted read-write for development or read-only for deployment validation. Choose paths and names for this checkout; do not reuse, migrate, or remove unrelated containers.
  6. Verify the checkout mount, required GPU visibility, and TensorRT import, then run the requested build, test, packaging, or runtime command.

Keep model-specific dependencies on demand and follow each family's own lock and verification files. Report setup evidence separately from compilation, tests, model parity, performance, and production-deployment evidence.

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 · 36 lines · 48 tokens per session scan A 83273b27917d

Subscribe to this mod's changes

setup-trtmc-environment is a skill published in the GitHub repository NVIDIA/TensorRT-Model-Connect (188 stars, last pushed 3d ago), licensed Apache-2.0. It adds 48 tokens to every session and 370 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-08-30.

Related

Other skills, from other repositories

graphsignal-profiler

Set up the Graphsignal Profiler for inference workloads — vLLM, SGLang, PyTorch, and dstack services. Use when the user wants GPU profiling, tracing, or monitoring for inference, asks about graphsignal-run or graphsignal.watch(), or asks about CUPTI / Prometheus / OTLP setup.

graphsignal/graphsignal-profiler · 74 tokens

weights-and-biases

Track ML experiments with automatic logging, visualize training in real-time, optimize hyperparameters with sweeps, and manage model registry with W&B - collaborative MLOps platform.

Orchestra-Research/AI-Research-SKILLs · 39 tokens

huggingface-accelerate

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

Orchestra-Research/AI-Research-SKILLs · 69 tokens

mlflow

Track ML experiments, manage model registry with versioning, deploy models to production, and reproduce experiments with MLflow - framework-agnostic ML lifecycle platform.

Orchestra-Research/AI-Research-SKILLs · 33 tokens

huggingface-hub

Hugging Face Hub — model discovery, download, inference, and upload.

furkangonel/cowrangler · 22 tokens

ml-training

Machine learning model training authority — classifier and regressor training with scikit-learn and PyTorch, feature engineering, cross-validation, hyperparameter tuning, fine-tuning transformer models with HuggingFace, dataset splits, loss functions, learning rate schedules, and reproducible training runs.

LuuOW/meridian-mcp · 58 tokens