- Home
- Skills
- Workflow Automation
- Doc Template
Doc Template
by Redy Chou
Extracts formatting from Office templates to generate perfectly styled Word, Excel, and PPT documents.
$2.98
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
| Category | Extracted Property | Details |
|---|---|---|
| Document Type | Word (.docx) | |
| Page Setup | Margins | Top/Bottom: 2.54cm, Left/Right: 3.18cm |
| Header/Footer | Content | Contains Company Logo (top-right), Page X of Y (bottom-center) |
| Typography | Body Text | Calibri, 11pt, 1.15 line spacing, 6pt paragraph after |
| Headings | Level 1-3 | Blue Accent 1, Bold, Hierarchical numbering (1.1, 1.1.1) |
| Tables | Styling | Grid Table 4 - Accent 1, Header row banding enabled |
| Fixed Items | Signature Block | Located 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
- Open
Project_Alpha_Spec.docxto verify the "Project Alpha" title placement. - Review
templates/standard-spec.mdto see if any "Unreadable" items need manual definition. - Type "Export to PDF" if you need a non-editable version of the new document.
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.pptxfiles 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
- Submit a template file such as a corporate report or technical spec and trigger the extraction process.
- Review the generated Markdown spec which details exactly what the skill detected (fonts, colors, margins).
- Store the template in a local directory to serve as the master "base layer" for all future documents of that type.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.