tmustier

economist-tui

2
0
# Install this skill:
npx skills add tmustier/economist-tui

Or install specific skill: npx add-skill https://github.com/tmustier/economist-tui

# Description

Terminal UI + CLI to browse Economist headlines, search articles, and read full content in the terminal. Requires one-time browser login for full articles.

# SKILL.md


name: economist-tui
description: Terminal UI + CLI to browse Economist headlines, search articles, and read full content in the terminal. Requires one-time browser login for full articles.


Economist TUI

Terminal app to browse and read The Economist.

Commands

# Interactive browse (TUI, type to search, ←/→ page, b back, c columns)
economist browse [section]

# Run background daemon for faster reads
economist serve

economist serve --status
economist serve --stop

# Headlines (default section: leaders)
economist headlines [section] [-n count] [-s search] [--json|--plain]

# Read full article
economist read [url|-] [--raw] [--wrap N] [--columns 1|2]

# Login (one-time, opens browser)
economist login

# List sections
economist sections

Available Sections

leaders, briefing, finance, us, britain, europe, middle-east, asia, china, americas, business, tech, science, culture, graphic, world-this-week

Global Flags

--version, --debug, --no-color

Examples

# Get 5 finance headlines
economist headlines finance -n 5

# Search for China coverage (fuzzy tokens)
economist headlines finance -s "china"

# JSON output
economist headlines finance --json

# Read article (markdown output)
economist read "https://www.economist.com/..." --raw

# Pretty terminal rendering
economist read "https://www.economist.com/..." --wrap 100

# Two-column article body
economist read "https://www.economist.com/..." --columns 2

# Debug HTML dump
economist --debug read "https://www.economist.com/..."

# Read URL from stdin
echo "https://www.economist.com/..." | economist read -

Auth Flow

  1. Run economist login (opens browser)
  2. Log in to Economist account
  3. Browser closes automatically when login detected
  4. Cookies saved to ~/.config/economist-tui/

Agent Usage

# Get headlines as JSON (for parsing)
economist headlines finance --json

# Get first headline URL
economist headlines finance --json | jq -r '.[0].url'

# Read first headline
economist headlines finance --json | jq -r '.[0].url' | xargs economist read --raw

# Plain output (title<TAB>url)
economist headlines finance --plain

Note: browse requires a TTY and won't work in agent context. Use headlines --json instead.

Notes

  • Headlines via RSS: title, one-line description, date, URL (~300 items per section, ~10 months history)
  • Full articles require login (headless browser with saved session cookies)
  • Articles cached for 1 hour under ~/.config/economist-tui/cache
  • Articles render as markdown with glamour formatting

# README.md

Economist TUI

Responsive Terminal UI and CLI to browse and read The Economist with your subscription. Unofficial.
- economist browse starts the TUI with current headlines (requires login with economist login)
- economist demo starts the TUI with pre-loaded archived articles

Screenshots (from demo mode)

Leaders Article

Note: historical Economist articles have no subtitles; added in economist demo for illustration and convenience

Install

Homebrew (macOS)

brew install tmustier/tap/economist-tui

From source

git clone https://github.com/tmustier/economist-tui
cd economist-tui

# Build local binary
make
./economist --version

# Install to ~/bin (macOS codesign included)
make install

Prereqs: Go 1.25+, Chrome/Chromium (for login and article fetching).

Quick start

# Login (one-time, for full articles)
economist login

# Demo mode (no login required)
economist demo

# Interactive Terminal UI
economist browse
economist browse finance

# Non-interactive
economist headlines leaders --json
economist read "https://www.economist.com/finance-and-economics/2026/01/19/article-slug" --raw

Commands

  • login — open browser to authenticate
  • browse [section] — interactive TUI (defaults to Leaders)
  • Enter read article, b back, type to search
  • c toggle columns on/off, Esc clear, q quit
  • demo — interactive TUI with demo content (no login required)
  • headlines [section] — list headlines
  • -n/--number, -s/--search, --json, --plain
  • read [url|-] — read full article (--raw, --wrap, --columns)
  • sections — list sections

Global flags: --version, --debug, --no-color

Configuration

Config + cookies: ~/.config/economist-tui/
Cache: ~/.config/economist-tui/cache (1h TTL)

Notes

  • RSS provides ~300 items per section (~10 months)
  • Full articles require an active Economist subscription

License

MIT

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.