Official Document Formatter (doc-format-gw) for Openclaw

An automated Python tool designed to format Word documents according to official public document standards.

batduke
v1.0.0
Mar 13, 2026
1
1.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install doc-format-gw

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-gw 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 Official Document Formatter (doc-format-gw)?

The doc-format-gw skill is a specialized automation utility for Openclaw Skills that transforms standard Word documents into professionally formatted official documents. It handles complex styling requirements like hierarchical title levels, specific font faces, line spacing, and margin adjustments automatically, ensuring compliance with standard document specifications without manual intervention.

This skill is particularly valuable for developers and administrators who need to ensure that their digital outputs meet strict organizational or governmental layout standards. By leveraging Openclaw Skills, users can bypass the tedious process of manual formatting and achieve consistent, professional results with a single command.

Official Document Formatter (doc-format-gw) Use Cases

  • Formatting internal reports into official public document styles before submission.
  • Standardizing multi-level headings and body text across multiple Word files.
  • Preparing documents with specific margin and page numbering requirements.
  • Automating the layout of tables and text alignment in corporate or government settings.

How Official Document Formatter (doc-format-gw) Works

  1. The user identifies a target Word document (.docx) that requires formatting.
  2. The skill analyzes the document structure to identify title hierarchies from level one through level four.
  3. It applies pre-defined formatting rules for fonts, sizes, and paragraph alignment to the body text.
  4. Page settings including specific margins and page numbering are applied based on official standards.
  5. The skill generates a new, formatted output file ready for distribution or printing.

Official Document Formatter (doc-format-gw) Setup

To use this tool, ensure you have Python 3 and the required dependencies installed. You can install the necessary library using pip:

pip install python-docx

You can then run the formatter via the CLI:

python3 ~/.npm-global/lib/node_modules/openclaw/skills/doc-format-gw/format_gw.py <input.docx> <output.docx>

Official Document Formatter (doc-format-gw) Data Schema & Taxonomy

The skill operates on Word documents and follows a strict taxonomy for document elements as outlined below:

Element Formatting Applied
Titles Levels 1-4 identified and styled
Body Text Font, size, and line spacing adjustments
Page Layout Margin settings and page numbering
Tables Standardized cell formatting and alignment

Official Document Formatter (doc-format-gw) Advanced Features

  • Automatic identification of hierarchical document structures (Level 1 to Level 4).
  • Seamless integration into Openclaw Skills workflows for multi-step document processing.
  • Support for custom formatting rules via external reference files.
  • Programmatic access via Python for bulk processing of document batches.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*