langdocx

Automate long-form document authoring and clone DOCX styles via Bun and Pandoc.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/BANG404/langdocx --skill langdocx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langdocx
Source: https://github.com/BANG404/langdocx/tree/main
Command: npx skills add https://github.com/BANG404/langdocx --skill langdocx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation of large, complex documents and enables precise replication of existing document formatting, saving significant time and ensuring consistency.

Core Features & Use Cases

  • Long-form Authoring: Automates the generation of hierarchical folder structures and Markdown content for extensive documents.
  • Style Cloning: Extracts and applies styles (headers, footers, fonts, indentation) from reference DOCX files to new documents.
  • Use Case: Generate a comprehensive technical manual by defining its structure, then automatically create all necessary folders and placeholder files, ensuring a consistent look and feel by cloning the style of your company's existing template.

Quick Start

Use the langdocx skill to initialize a new project structure based on the provided structure.json file.

Frequently Asked Questions about langdocx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clone styles from an existing Word document into a new DOCX file?

To clone styles from an existing Word document, this Skill extracts semantic styles like headers, footers, fonts, and indentation from a reference DOCX file and applies them to your newly generated documents. It uses Pandoc to ensure high-fidelity format replication.

Can I automatically generate a directory and folder structure for long technical writing?

Yes, you can automatically generate a directory and hierarchical folder structures for long technical writing. By defining a structure.json file, the Skill initializes the entire project directory and creates all necessary placeholder Markdown files automatically.

Does Pandoc work with Bun to merge multiple Markdown files into a single DOCX document?

Pandoc works with Bun to merge multiple Markdown files into a single DOCX document. The Skill leverages this technology stack to automate multi-file merging while maintaining consistent formatting throughout the long-form output.

What's the best way to automate technical writing document generation for large manuals?

The best way to automate technical writing document generation for large manuals is using a structure-driven approach. This Skill automates the authoring of hierarchical folder structures and Markdown content, then compiles them into a comprehensive DOCX file.

Do I need to install any dependencies to perform Word style cloning and document generation?

You do not need to manage internal Skill dependencies to perform Word style cloning and document generation. The Skill operates self-contained, handling the Bun and Pandoc processing logic internally to extract and apply document formats.

Why does my generated DOCX file not match the formatting of my reference Word document?

If your generated DOCX file does not match the formatting of your reference Word document, ensure the semantic style extraction correctly mapped the headers, footers, and indentation. The cloning process relies on accurately parsing the reference DOCX structure.