pretty-tables for Openclaw

A specialized skill for generating professional, perfectly-aligned, and styled tables within Microsoft Word documents using the docx library.

happytreees
v2.0.0
Mar 17, 2026
0
919
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pretty-tables

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pretty-tables using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is pretty-tables?

The pretty-tables skill provides a rigorous framework for creating high-quality, full-width tables in DOCX files. It addresses common cross-platform rendering issues between Microsoft Word and Google Docs by enforcing specific sizing and styling rules. By utilizing this Openclaw Skills extension, developers can automate the production of polished documents such as itineraries, project schedules, and data reports without worrying about broken layouts or inconsistent colors.

pretty-tables Use Cases

  • Generating professional travel itineraries with color-coded schedules.
  • Creating data-heavy reports that require consistent formatting across different document viewers.
  • Automating the production of invoices or project timelines in DOCX format.
  • Standardizing document layouts for team-wide administrative tasks.

How pretty-tables Works

  1. The skill calculates the total document width based on DXA (twips) units to ensure fixed layouts.
  2. It applies dual-width sizing at both the table and individual cell levels to guarantee cross-platform compatibility.
  3. Styles such as cell padding, borders, and specific shading types are applied to prevent common rendering bugs.
  4. The content is packed into a buffer and written to a .docx file using the filesystem.

pretty-tables Setup

To use this Openclaw Skills module, ensure you have the docx library installed in your project environment:

npm install docx

Configure your script to use DXA units for sizing, targeting 9360 DXA for standard US Letter documents with 1-inch margins.

pretty-tables Data Schema & Taxonomy

The skill organizes table data through a structured hierarchy of components:

Component Responsibility
Table Level Defines layout type (FIXED), total width, and individual column widths array.
TableRow Acts as a container for TableCell objects within the grid.
TableCell Stores content (Paragraphs), cell-specific width, margins, and shading metadata.
Formatting Constants Standardized DXA values (e.g., 9360 for full width) and Hex color palettes.

pretty-tables Advanced Features

  • Multi-platform rendering support (Microsoft Word and Google Docs).
  • Custom helper functions for rapid header and data row generation.
  • Precise layout control using TableLayoutType.FIXED and DXA-based arithmetic.
  • Specialized shading logic using ShadingType.CLEAR to avoid background color glitches.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*