Batch PPTX Formatter and Layout Repairer for Openclaw

An automated utility designed for bulk fixing PPTX font sizes, preventing text overflows, and safely detecting and removing multi-format slide page numbers.

liuwenqi123123
v1.0.0
Jun 20, 2026
0
411
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pptx-batch-fix

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 pptx-batch-fix 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 Batch PPTX Formatter and Layout Repairer?

The Batch PPTX Formatter and Layout Repairer is a powerful automation utility designed to resolve layout and formatting discrepancies across multiple presentation files simultaneously. By leveraging this tool, developers and office professionals can streamline slide design audits. It solves common layout issues such as text size inconsistencies and chaotic page-number formatting, allowing AI agents to perform batch maintenance safely and efficiently. Incorporating these Openclaw Skills into your office automation stack guarantees that corporate slide decks adhere to design standards without manual intervention.

Unlike destructive formatting tools, this skill operates under a strictly non-destructive philosophy, ensuring text content is never modified while only styling coordinates and font sizes are adjusted. It elegantly fixes text frames by enabling word-wrapping and resizing overflowing bounding boxes, saving hours of manual adjustments while retaining the hierarchical styling of larger headings.

Batch PPTX Formatter and Layout Repairer Use Cases

  • Bulk Font Standardization: Standardizing small fonts across hundreds of corporate slides to ensure readability during large presentations.
  • Slide Layout Overflow Correction: Automatically fixing text-wrapping issues and boundary overflows caused by font conversions or imports.
  • Multi-Format Page Number Removal: Safely removing page numbers in various formats (such as X/Y or slide number placeholders) without accidentally deleting important content markers or section headers.
  • Automated Quality Assurance: Performing a programmatic audit on presentations before final publishing to ensure they meet professional layouts.

How Batch PPTX Formatter and Layout Repairer Works

  1. Input and Goal Verification: The skill scans the workspace, gathers user requirements (such as target font size threshold, default is 16pt), and identifies targeted PPTX files.
  2. Font Auditing and Resizing: The fix_fonts.py script traverses each slide's shapes, identifies text runs below the threshold size, scales them to the target size, and activates native word wrapping.
  3. Page Number Scanning: When page number removal is triggered, detect_pagenum.py analyzes slide coordinates, layout placeholders, and format rules to tag actual page numbers.
  4. Targeted Extraction: The remove_pagenum.py script applies strict positional and regular expression rules to strip the identified page numbers without altering adjacent text like chapter markers.
  5. Validation and Output: The repaired files are outputted to a temporary directory for verification, protecting the original slide decks until the user approves the overwrite.

Batch PPTX Formatter and Layout Repairer Setup

First, verify that your python environment is correctly configured. The skill assumes a default python environment at C:/Users/admin/.workbuddy/binaries/python/envs/default/Scripts/python.exe.

Ensure that the required dependency python-pptx is installed. If it is missing, run the following setup command in your environment:

/c/Users/admin/.workbuddy/binaries/python/versions/3.13.12/python.exe -m pip install --target /c/Users/admin/WorkBuddy/{session}/.packages python-pptx

Once the dependency is available, you can seamlessly integrate this with your Openclaw Skills workflow to run standard scripts.

Batch PPTX Formatter and Layout Repairer Data Schema & Taxonomy

The skill relies on specific Python scripts organized within your agent's directory structure to manipulate presentation schemas. Below is a breakdown of the layout and detection rules:

Script Path Purpose Key Operations
scripts/fix_fonts.py Font & boundaries adjustment Adjusts run.font.size, enables word_wrap, and adjusts shape bounds
scripts/detect_pagenum.py Page number identification Detects coordinates and regular expressions for X/Y patterns
scripts/remove_pagenum.py Destructive removal of digits Removes matched text frame shapes and layout-level placeholders

Page Number Detection Matrix

  • X/Y Format: Matched via Regex pattern ^\\d{1,3}\\s*/\\s*\\d{1,4}$ and deleted.
  • Pure Digits (Bottom-Right): Matched when coordinate values meet left > slide_width * 0.55 and top > slide_height * 0.70.
  • Slide Number Placeholder: Identified by shape type placeholder_format.type == 13 and removed from layouts.

Batch PPTX Formatter and Layout Repairer Advanced Features

  • Context-Aware Safety Locks: Positional logic ensures that structural numbering like 'Chapter 01' or '02' at the top of slides is never accidentally removed.
  • Non-Destructive Workspaces: All processing occurs inside isolated staging environments, allowing you to preview changes before overriding production presentation files.
  • Hierarchy-Preserving Scaler: The font size utility only adjusts runs smaller than the designated threshold, keeping larger headings and design hierarchies intact.
  • Boundary Clipping Correction: Automatically recalculates layout dimensions (left + width & top + height) to prevent elements from overflowing outside presentation slide boundaries.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*