tencent-docs-sheet-generation

Generate Excel workbooks from scratch using openpyxl scripts with formula recalculation validation.

68|25|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/rojim666/SztuCode --skill tencent-docs-sheet-generation-rojim666
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tencent-docs-sheet-generation
Source: https://github.com/rojim666/SztuCode/tree/main/py-runtime/src/sztu_code/core/prompts/workbuddy/skills/_builtin-plugins/sheetagent/skills/excel-generation
Command: npx skills add https://github.com/rojim666/SztuCode --skill tencent-docs-sheet-generation-rojim666

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, and includes scripts (resource) and references (resource) components.

What problem does it solve? Creating a well-structured Excel workbook from scratch—proper sheet layout, formulas, styling, conditional formatting, and error-free calculations—normally requires significant manual spreadsheet work. This Skill automates the entire pipeline: it infers the workbook title and output path, extracts content from reference attachments, applies proven design principles, writes an openpyxl build script, and validates that every formula computes without errors before delivery. ## Core Features & Use Cases - From-scratch XLSX generation: Builds complete workbooks with openpyxl when no source .xlsx/.csv file exists, covering record, plan, progress, statistics, form/print, dashboard, calendar, and calculation-model scenarios. - Reference-aware content: Accepts local PDF/DOCX/PPTX attachments (extracted to markdown via extract.py) and online Tencent Docs links as content or style references. - Formula validation via recalc: Recalculates the workbook with LibreOffice or a pure-Python fallback engine and reports formula errors (#REF!, #DIV/0!, etc.) so they can be fixed before delivery. - Use Case: Ask for a project budget tracker based on an attached PDF brief; the Skill extracts the reference data, designs detail and summary sheets with linked formulas and conditional formatting, generates the xlsx, and verifies zero formula errors. ## Quick Start Ask the agent to create an Excel workbook from scratch, for example: "Create a quarterly sales summary workbook with a detail sheet and a dashboard based on this attached PDF."

Frequently Asked Questions about tencent-docs-sheet-generation

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

FAQPage Schema
How do I generate an Excel file from scratch with Python?▼

Write an openpyxl script that creates worksheets, sets headers, writes data and Excel formula strings, applies styles and conditional formatting, then saves the xlsx. This Skill automates that flow and validates formulas afterward with a recalculation step.

How to create an Excel workbook from a PDF or Word document?▼

Provide the PDF, DOCX, or PPTX file as a reference attachment. The Skill runs extract.py to convert it into markdown plus image thumbnails, then uses that content to design and populate the workbook.

Why do openpyxl formulas show blank values in Excel previews?▼

openpyxl writes formulas as strings without cached values, so previewers and pandas read them as empty. The recalc.py script recalculates the workbook with LibreOffice or a pure-Python engine to fill in cached values before delivery.

Can I use an existing xlsx or csv file as input?▼

No. This Skill only handles from-scratch generation when no source .xlsx, .xls, or .csv file is provided. If you supply an existing spreadsheet, the request is routed to an editing workflow instead.

What happens when formula errors like #DIV/0! are found?▼

The recalc step reports error types and cell locations as JSON. The build script is then corrected—adding empty/zero denominator protection or fixing cell references—and regenerated until recalculation reports zero errors.