ansi-table

Render CSV, Parquet, JSON, or dataframe data as ANSI tables in the terminal.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MoonBoi9001/claude-code-cli-tools --skill ansi-table
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ansi-table
Source: https://github.com/MoonBoi9001/claude-code-cli-tools/tree/main/skills/ansi-table
Command: npx skills add https://github.com/MoonBoi9001/claude-code-cli-tools --skill ansi-table

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually formatting and coloring terminal tables from raw data sources is time‑consuming and error‑prone, especially when dealing with varying column widths and terminal sizes.

Core Features & Use Cases

  • Reads data from CSV, Parquet, JSON, or dataframes without hard‑coding values.
  • Generates a single‑command Bash execution that runs a python3 one‑liner to build the table.
  • Dynamically calculates terminal width and adjusts column sizes, wrapping content as needed.
  • Applies Unicode box‑drawing characters for clear borders and ANSI colors to highlight thresholds.
  • Supports multiple tables with consistent styling for comparative data views.

Quick Start

Ask Claude to display the file "metrics.csv" as a formatted table using the ansi-table skill.

Frequently Asked Questions about ansi-table

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

FAQPage Schema
How do I display CSV data as a formatted table in the terminal?

To display CSV data as a formatted table in the terminal, you can use a single Bash command executing a python3 one-liner. This reads your file and automatically applies Unicode box-drawing characters for clear borders without manual formatting.

How do I render JSON or dataframe outputs with dynamic column sizing?

Rendering JSON or dataframe outputs with dynamic column sizing involves calculating terminal width and adjusting column sizes automatically. The process wraps content as needed and applies ANSI colors to highlight specific data thresholds.

Can I print multiple tables with consistent styling for comparative data views?

You can print multiple tables with consistent styling for comparative data views. This allows you to generate several formatted tables from various dataframes or analysis results while maintaining uniform borders and ANSI color thresholds across all outputs.

Do I need pandas installed to visualize tabular data in the terminal?

You do not strictly need pandas installed to visualize tabular data in the terminal. The execution uses pandas when available, but automatically falls back to the built-in csv module otherwise to generate the formatted table.

What is the best way to format terminal tables without hard-coding column widths?

The best way to format terminal tables without hard-coding column widths is to dynamically calculate terminal width constraints. This method automatically adjusts column sizes and wraps content, eliminating the time-consuming and error-prone process of manual width configuration.

Why does my terminal table formatting break when dealing with varying terminal sizes?

Terminal table formatting breaks with varying terminal sizes when column widths are statically defined. Respecting terminal width constraints with dynamic column sizing and automatic content wrapping ensures tables render correctly across different terminal dimensions.