Otree

Use this skill when the user wants to explore or navigate structured data (JSON, YAML, TOML) interactively in the terminal — inspect large config files, API responses, or nested documents as a collapsible tree.

javimosch 0d0fe71 1.1 KB Updated

File contents

otree Plugin

Interactive TUI to view JSON, YAML, and TOML as a navigable tree. Faster than scrolling raw text for deeply nested documents.

Installation

cargo install otree
# or
brew install otree

Download binaries from GitHub Releases.

Basic Usage

# Open a file
otree config.json

# Pipe structured data
curl -s https://api.example.com/data | otree

# YAML or TOML
otree docker-compose.yml
otree Cargo.toml

Key Bindings

  • j/k or ↓/↑ — Move cursor
  • h/l or ←/→ — Collapse/expand node
  • Enter — Toggle expand/collapse
  • / — Search
  • q — Quit

Usage Examples

  • "Show me this JSON response as a tree"
  • "Navigate the nested keys in package.json"
  • "Inspect this YAML config interactively"

SuperCLI

sc otree _ _ config.json
sc plugins learn otree

javimosch/supercli/tree/main/plugins/otree/skills/quickstart commit 0d0fe717f0

Frequently asked questions

npx skillmds@latest add javimosch/otree