root-cli

Inspect CERN ROOT files, read branches, and export JSON data.

3|1|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/MohamedElashri/root-mcp --skill root-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: root-cli
Source: https://github.com/MohamedElashri/root-mcp/tree/main
Command: npx skills add https://github.com/MohamedElashri/root-mcp --skill root-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CERN ROOT file analysis often involves verbose MCP JSON exchanges. root-cli provides a compact, token-efficient command surface to inspect ROOT files, read branches, compute histograms, perform simple kinematic calculations, and export data.

Core Features & Use Cases

  • Lightweight, modular commands for file discovery, file inspection, branch reading, histogram creation, and data export.
  • Works with TTrees and RNTuples (including jagged arrays) and outputs machine-friendly JSON for downstream processing.
  • Use Case: A data scientist quickly inventories ROOT files, inspects a file, reads a subset of branches, builds a histogram, and exports results with a few commands.

Quick Start

Configure your data path and run a minimal root-cli workflow to explore and analyze ROOT files.

Frequently Asked Questions about root-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect TTrees and RNTuples in CERN ROOT files using a CLI?

You can inspect TTrees and RNTuples in CERN ROOT files by running compact CLI commands to read branches, handle jagged arrays, and return file structure details as machine-readable JSON for immediate downstream processing.

What is the best way to export ROOT file branches as JSON for data analysis?

Exporting ROOT file branches as JSON is best achieved by using a token-efficient CLI that reads TTree and RNTuple data directly, computing selections and outputting machine-friendly JSON to streamline your data analysis workflow.

Can I compute histograms and perform kinematic calculations on ROOT files without verbose protocol overhead?

Yes, you can compute histograms and perform simple kinematic calculations on ROOT files using a lightweight, CLI-first workflow that enforces compact command surfaces and minimizes verbose MCP JSON protocol exchanges.

Does root-cli work with jagged arrays in RNTuples?

Yes, root-cli works with jagged arrays in RNTuples by providing modular command functions that read complex branch structures and output the extracted data directly into machine-friendly JSON formats.

How do I streamline CERN ROOT data analysis using command line tools?

You streamline CERN ROOT data analysis using command line tools by executing a minimal workflow: inventory files, inspect contents, read specific branches, build histograms, and export the results using a few compact commands.

When should I avoid using standard MCP JSON exchanges for ROOT file inspection?

You should avoid standard MCP JSON exchanges for ROOT file inspection when token efficiency is critical, opting instead for a compact CLI approach that produces JSON outputs by default while minimizing verbose protocol usage.