Doc Format Fixer for Openclaw

A professional document layout and formatting correction agent that automatically standardizes file spacing, margins, and layouts without modifying any textual content.

smallkeyboy
v1.0.0
May 25, 2026
0
786
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install doc-format-fixer

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 doc-format-fixer 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 Doc Format Fixer?

Doc Format Fixer is an intelligent agent designed for professionals who demand perfect document layouts but cannot risk changes to their copy. Operating within the Openclaw Skills framework, this tool focuses entirely on visual structure, typography, and page setups. It guarantees absolute textual integrity—never modifying, deleting, or adding words, phrasing, or even typos in the source file. It is the ultimate asset for processing official documents, academic submissions, and corporate layouts.

By leveraging targeted Python scripts, the agent quickly corrects DOCX, Markdown, and plain text formats. It aligns your documentation directly with precise standards such as Chinese government document formats (gb-t9704) or academic theses (thesis-cn). For custom layouts, you can easily define parameters to control everything from page margins and font heights to line spacing and indentation. Incorporating Openclaw Skills into your automated pipelines allows you to clean document designs rapidly and safely.

Doc Format Fixer Use Cases

  • Aligning official letters and administrative files with strict layout guidelines like gb-t9704.
  • Standardizing university graduation thesis layouts to match specific cn-thesis margin and font requirements.
  • Cleaning up Markdown and txt files by stripping trailing whitespaces, formatting lists, and merging redundant empty lines.
  • Adjusting overflowed tables, widow headings, and misconfigured header or footer elements in complex DOCX documents.
  • Batch-processing formatting tasks in developer workspaces using Openclaw Skills layouts.

How Doc Format Fixer Works

  1. Receive Source & Standard: The user submits the document alongside a formatting rule, preset name, style guide screenshot, or rules file. If no rule is found, the agent pauses.
  2. Analyze Formatting Deviations: The agent scans the document to find differences in margin sizes, font faces, line spacing, and paragraph properties.
  3. Execute Correction Scripts: The agent launches specialized correction scripts (fix_format.py or fix_markdown.py) depending on the file format.
  4. Apply Fine-Tuning Adjustments: For unhandled elements like headers, footers, or page number offsets, the agent manually adjusts the XML style nodes in DOCX.
  5. Deliver Output & Log: The corrected document is returned alongside a clear checklist showcasing all changes made.

Doc Format Fixer Setup

To integrate this skill from the Openclaw Skills ecosystem, configure your workspace and invoke the specialized scripts directly through your CLI:

# Standardize a DOCX file using a pre-defined layout rule
python3 scripts/fix_format.py input.docx output.docx gb-t9704

# Adjust Markdown indentation and spacing properties
python3 scripts/fix_markdown.py input.md output.md

Doc Format Fixer Data Schema & Taxonomy

The skill relies on specific folder mappings to configure layout definitions and script execution pathing:

Location File Name Type Purpose
scripts/ fix_format.py Python Script Corrects DOCX files via python-docx style structures.
scripts/ fix_markdown.py Python Script Regular-expression based script to fix spacing and headings in Markdown.
references/ format-rules.md Markdown Reference Rulebooks, checklists, and specifications for standard alignments.
Script Config PRESETS Dictionary Python-based dictionary containing precise margins, spacing, and fonts for templates.

This robust schema within Openclaw Skills ensures developers can scale document layouts easily.

Doc Format Fixer Advanced Features

  • Zero Word Alteration Safety: Assures total content security where even spelling errors are preserved to ensure layout edits are strictly non-destructive.
  • Customizable Layout Presets: Allows users to extend the PRESETS dictionary inside scripts to support their own internal corporate style sheets.
  • Sophisticated Page Overflow Controls: Identifies and fixes heading widows, out-of-margin tables, and misaligned starting page numbers.
  • Multi-Agent Script Compatibility: Designed to integrate smoothly with other Openclaw Skills for end-to-end publishing workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*