json-render-table
Installation
SKILL.md
JSON Render Table
Overview
Render generic structured data into compact table images using json-render-cli components (Column, Row, Container, Text, Badge).
Use this skill for non-ticket table use cases.
Workflow
- Ensure
json-renderis available. If missing, runnpm i -g json-render-cli; if Chromium is missing, runnpx playwright install chromium. - Define target columns and row schema for the current dataset.
- Generate message JSON in memory from the table template.
- Pass config via process substitution (
-c <(...)) to avoid temporary config files. - Set
screenshot.fullPage=truewhen row count or line wrapping is variable. - Tune viewport width/height to the current content footprint before final render, and avoid oversized fixed
--size. - Render PNG and return output path (or Base64 only when explicitly requested).
- Theme mode is configured with
theme.mode; usesystemby default, or forcelight/darkwhen needed.