nvidia/nemo-relay-instrument-context-isolation
Use this skill when concurrent requests, async tasks, threads, workers, goroutines, or agents need independent NeMo Relay scope stacks and correct ancestry propagation.
npx skills add https://github.com/NVIDIA/skills --skill nemo-relay-instrument-context-isolation
Use this skill when an application runs concurrent requests, worker pools, async
tasks, goroutines, or multiple agents in the same process.
Treat scope-stack ownership as part of the request boundary.
Each independent request, agent, or workflow needs its own scope stack. Do not
share one mutable stack across unrelated concurrent work unless you want shared
ancestry and shared scope-local middleware.
beneath it.
visibility for scope-local middleware and subscribers.
Agent, Function, Tool, Llm,Retriever, Embedder, Reranker, Guardrail, Evaluator, Custom, and
Unknown.
input and output payloadswhen the scope represents a request, task, or meaningful result boundary.
for behavior that should not outlive a request or agent run.
state transitions that are not full spans.
get_scope_stack() andcontextvars, or explicitly propagate when work leaves the current execution
context
create_scope_stack(),current_scope_stack(), and set_thread_scope_stack(...) when an integration
needs explicit stack ownership
NewScopeStack() and ScopeStack.Run(...) for goroutine-safeusage
path with createScopeStack() and setThreadScopeStack(...)
worker boundaries
nemo-relay-instrument-callsnemo-relay-plugin-observabilitynemo-relay-debug-runtime-integrationTake nvidia/nemo-relay-instrument-context-isolation from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.