Doc Template

    by Redy Chou

    1

    Extracts formatting from Office templates to generate perfectly styled Word, Excel, and PPT documents.

    $2.98

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Doc Template

    Example session with this skill installed

    Extract the format from technical_spec_v1.docx and save it as the 'standard-spec' template. Then write a new spec for 'Project Alpha' using this format.

    • Read your context and instructions
    • Compiled the doc template

    I have analyzed technical_spec_v1.docx and extracted the formatting rules. I've saved the specification to templates/standard-spec.md and stored the original file as a base layer.

    Template Specification: standard-spec

    CategoryExtracted PropertyDetails
    Document TypeWord (.docx)
    Page SetupMarginsTop/Bottom: 2.54cm, Left/Right: 3.18cm
    Header/FooterContentContains Company Logo (top-right), Page X of Y (bottom-center)
    TypographyBody TextCalibri, 11pt, 1.15 line spacing, 6pt paragraph after
    HeadingsLevel 1-3Blue Accent 1, Bold, Hierarchical numbering (1.1, 1.1.1)
    TablesStylingGrid Table 4 - Accent 1, Header row banding enabled
    Fixed ItemsSignature BlockLocated at end of document: Prepared/Reviewed/Approved

    I have successfully generated Project_Alpha_Spec.docx by cloning the template and populating it with your project details while maintaining all extracted styles.

    Next steps

    1. Open Project_Alpha_Spec.docx to verify the "Project Alpha" title placement.
    2. Review templates/standard-spec.md to see if any "Unreadable" items need manual definition.
    3. Type "Export to PDF" if you need a non-editable version of the new document.
    Word (.docx

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Manual document formatting wastes hours of developer and analyst time. This skill automates the extraction of styles, layouts, and structures from existing Word, Excel, and PowerPoint files to generate perfectly formatted new documents. It eliminates the need to manually recreate headers, footers, or complex numbering rules by using the original file as a physical substrate.

    What it does

    • Format extraction reads styles, font hierarchies, margins, and numbering rules directly from provided template files.
    • Template versioning saves extracted specifications into reusable Markdown definition files for long-term consistency.
    • Automated document generation creates new .docx, .xlsx, or .pptx files by cloning the original template to preserve embedded assets like logos and macros.
    • Style enforcement applies specific heading levels, line spacing, and table themes according to the saved specification.
    • Compliance checking runs a final verification against the spec to ensure no placeholder text remains and numbering is sequential.

    How it works

    1. Submit a template file such as a corporate report or technical spec and trigger the extraction process.
    2. Review the generated Markdown spec which details exactly what the skill detected (fonts, colors, margins).
    3. Store the template in a local directory to serve as the master "base layer" for all future documents of that type.
    4. Generate new content by providing raw data or text and specifying the template name to use for the output.

    Frameworks & tools

    The skill utilizes python-docx for Word structure analysis, python-pptx for slide layouts and placeholders, and openpyxl for Excel cell styles, formulas, and print settings.

    Why this beats prompting it yourself

    Generic prompts often fail to replicate specific corporate branding, such as exact RGB values or complex multi-level list numbering (e.g., "1.1.1" vs "一、"). This skill uses programmatic inspection to pull true values from the file metadata, ensuring the output is a byte-perfect structural match rather than an approximation.

    Use cases

    • Generating technical requirement documents that must follow a specific internal layout.
    • Automating monthly reporting decks where the slide masters and logos must remain identical.
    • Producing formatted data exports in Excel with pre-defined formulas and frozen panes.

    Known limitations

    Cannot "read" formatting from flat images or PDFs. Some highly customized proprietary macros or third-party add-in elements may be marked as unreadable in the specification.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    Permissions

    No special permissions declared or detected

    Listed9 days ago

    What's inside

    Frequently Asked Questions

    The skill works with standard Microsoft Office files (.docx, .xlsx, .pptx) and uses a two-step process: it first extracts the "DNA" of your formatting into a Markdown spec, then uses the original file as a physical substrate to ensure logos, macros, and styles are perfectly cloned.

    Doc Template is compatible with any AI agent or platform that supports Python-based skill integration and has file system access to read and write Office documents. It is designed to work seamlessly within autonomous workflows where structured data needs to be converted into professional-grade assets.

    Yes, because the skill uses the original file as a 'base layer,' it preserves non-visual elements like embedded VBA macros, complex Excel formulas, and frozen panes that typical AI text generation would ignore. This makes it ideal for automating existing business processes without losing functionality.

    You will receive the core logic modules powered by python-docx, python-pptx, and openpyxl, along with documentation on how to trigger the extraction and generation workflows. The package also includes a sample template and its corresponding Markdown specification to help you get started immediately.

    No, the skill performs programmatic inspection of the file metadata to pull exact RGB values, font hierarchies, and margin sizes. Unlike standard prompting which relies on the AI's 'best guess' of a style, this skill uses direct file analysis to ensure byte-perfect structural consistency.

    The skill is designed to handle standard Office XML structures; however, it cannot extract formatting from flat images or PDFs. If a document uses highly proprietary third-party add-ins, the skill will flag these elements as 'unreadable' in the generated specification rather than failing the entire process.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.