trulens-notebook-execution

trulens-notebook-execution is a skill for Claude Code, Codex from truera/trulens. It costs 21 tokens per session (2,370 once invoked), scanned A, original, MIT.

A set of instructions for running Jupyter notebooks, which are interactive documents that combine code, notes, and results, for TruLens demonstrations and quickstarts. TruLens is a tool used in these examples.

In plain words
What is it for?
Use it to execute TruLens example or quickstart notebooks, display progress, and test them from start to finish.
Why use it?
It avoids running notebook code in ways that lose the notebook’s shared state or fail to capture its outputs. It also covers cases where an API key is needed.

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 execute TruLens example or quickstart notebooks, display progress, and test them from start to finish.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/truera/trulens/trulens-notebook-execution
About the project

TruLens is an open-source system for tracing and evaluating LLM applications and AI agents. It records each step's inputs, outputs, latency, tokens, and cost, then uses evaluations to find failures and compare application versions.

truera/trulens · 3,536 stars · on GitHub · trulens.org

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 truera/trulens --skill trulens-notebook-execution
Clone the repo
git clone --depth 1 https://github.com/truera/trulens

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 trulens-notebook-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/truera/trulens/trulens-notebook-execution/github.svg)](https://agentmods.dev/skills/truera/trulens/trulens-notebook-execution)
Your own site
<a href="https://agentmods.dev/skills/truera/trulens/trulens-notebook-execution"><img src="https://agentmods.dev/badge/skills/truera/trulens/trulens-notebook-execution/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 trulens-notebook-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/truera/trulens/trulens-notebook-execution"><img src="https://agentmods.dev/badge/skills/truera/trulens/trulens-notebook-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,370 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.00021 $0.02370
Opus 5 $0.00010 $0.01185
Sonnet 5 $0.00004 $0.00474
Haiku 4.5 $0.00002 $0.00237

Measured 9d ago against content hash aff80571f9a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

trulens-notebook-execution 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 9d 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.

src/core/trulens/.agents/skills/trulens-notebook-execution/SKILL.md · 364 lines

How it starts

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

TruLens Notebook Execution

Execute Jupyter notebooks, display progress to the user, and handle API key requirements.

When to Use This Skill

Use this skill when:

  • Running TruLens quickstart or example notebooks
  • Demonstrating TruLens functionality via notebooks
  • Testing notebook examples end-to-end
  • User asks to "run the notebook" or "execute the notebook"

Execution Method

Always use jupyter nbconvert --execute to run notebooks. This:

  • Maintains state across cells (variables persist)
  • Captures all output properly
  • Handles async operations correctly
  • Works with OTEL tracing

DO NOT try to run notebooks by:

  • Extracting cells and running them individually in bash
  • Using python -c with heredocs
  • Running as a standalone Python script (loses notebook context)

Basic Execution Command

jupyter nbconvert --to notebook --execute --inplace <notebook_path>

Execution with Timeout (for long-running notebooks)

jupyter nbconvert --to notebook --execute --inplace \
  --ExecutePreprocessor.timeout=600 \
  <notebook_path>

Execution with Output to stdout

jupyter nbconvert --to notebook --execute --stdout <notebook_path>

Displaying Progress to User

When running a notebook, display section headers as each cell executes - NOT generic "BASH_OUTPUT" messages.

Step 1: Parse the Notebook Structure First

Before executing, read the notebook JSON to build a map of:

  • Markdown headers (## Section Name)
  • Which code cells belong to which section
import json

with open("notebook.ipynb") as f:
    nb = json.load(f)

sections = []
current_section = "Setup"

for i, cell in enumerate(nb["cells"]):
    if cell["cell_type"] == "markdown":
        source = "".join(cell["source"])
        # Extract header
        for line in source.split("\n"):
            if line.startswith("## "):
                current_section = line.replace("## ", "").strip()
    sections.append((i, current_section))

Read the full file on GitHub · 364 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. 9d ago First seen · 364 lines · 21 tokens per session scan A aff80571f9a5

Subscribe to this mod's changes

trulens-notebook-execution is a skill published in the GitHub repository truera/trulens (3,536 stars, last pushed 4d ago), licensed MIT. It adds 21 tokens to every session and 2,370 once invoked, about $0.0001 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

phoenix-cli-development

Design and implementation guide for the Phoenix CLI (px). Covers the noun-verb command structure, dual-audience design (humans and coding agents), Commander.js patterns, configuration resolution, output formats, exit codes, and conventions for adding or modifying commands. Triggers when working on phoenix-cli commands…

Arize-ai/phoenix · 105 tokens

annotate-spans

Write effective, consistent annotations on LLM/agent spans and traces, and coach the user on annotation practice. Load this whenever you are about to record structured feedback with the ui.spans.annotate operation (via executebrowseraction), or when the user asks how to annotate, label, score, or review spans/traces…

Arize-ai/phoenix · 120 tokens

playground

Author, edit, or iterate on prompts in the Phoenix prompt playground, including running experiments over a dataset. Load before any playground ui. operation call, including single-shot prompt rewrites.

Arize-ai/phoenix · 42 tokens

phoenix-graphql

Write efficient GraphQL queries against the Phoenix API. Load this skill in two cases: (1) before composing any non-trivial GraphQL query yourself for data analysis (via the phoenix-gql bash command) — it contains schema entrypoints and patterns that eliminate the need for introspection; (2) when the user asks for…

Arize-ai/phoenix · 102 tokens

datasets

Understand what a Phoenix dataset is and reason well about its examples, outputs, splits, and how it feeds evaluators and experiments. Load this whenever a dataset is in view or the user asks what a dataset is, how splits work, what an output "means", or how datasets relate to experiments and evals. This skill governs…

Arize-ai/phoenix · 78 tokens

debug-trace

Diagnose failure modes by systematically investigating traces. Trigger when the user explicitly asks for cross-trace diagnosis: "what's going wrong?", "were there errors?", "debug this", "where is my agent struggling?". Do NOT trigger on: (1) advice questions ("what should I do?"), (2) statistical questions ("what's…

Arize-ai/phoenix · 113 tokens