Data Processing Script Generator
Paste the following prompt into your AI chat to install this skill:
Please install @user_9cd20060/data-processing-script-generator according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem addressed
After exporting daily ERP data as CSV or Excel, manual copying, cleaning, mapping, and template reuse can fail because of inconsistent paths, encodings, column names, or formula refresh behavior. This skill targets fixed reporting workflows: it uses an existing Excel template with formatting, slicers, and pivot tables, then turns each day's exported data into a usable report file.
How it works
The workflow is to confirm inputs before generating code. It expects an Excel template and an ERP export sample, then confirms data source, cleaning rules, derived fields, append-or-overwrite behavior, mapping table, field mapping, fixed paths, file naming, and CSV encoding. It then generates a Python script that typically keeps path variables at the top, locates the day's export file by date, tries gb18030, gbk, and utf-8 encodings, loads reference mappings, cleans the data, computes derived fields, and writes into Excel using zip/XML manipulation where possible to preserve formatting, slicers, and pivot tables. Before handoff, it requires a test run and documents where the script lives, how to run it, which path variables to edit, and the expected folder and naming conventions.
Boundaries and cautions
This is best for daily reports with a stable template and repeatable processing rules, not for open-ended analysis where the report structure changes often. If pivot tables are used, enable refresh when the workbook opens. Avoid relying on formulas such as VLOOKUP that do not update automatically when the script writes values; computed values should be written directly. Paths and naming must be confirmed, because unclear conventions make maintenance harder.
Use Cases
- After daily ERP inventory CSV exports, generate inventory reminder reports from a fixed Excel template.
- Clean ERP order exports, join a supplier reference sheet, and write results into a formatted Excel workbook.
- For a daily warehouse report, have the script find the day's export file and try multiple CSV encodings.
- Generate a script that computes derived fields such as turnover days and avoids unrefreshed VLOOKUP formulas.
Best For
- Supply chain operations staff who need daily fixed-format inventory reminder reports from ERP exports.
- Operations analysts who need to map, clean, and write CSV data into template-based Excel reports.
- Data engineers who need testable Python scripts with editable path variables and repeatable logic.
- IT staff maintaining warehouse reports who need to avoid inconsistent pivot table and formula refresh.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Restores Lanhu designs to target framework code using schema JSON, design tokens, and image assets.
Automatically detects engineering or competition code, analyzes bugs, vulnerabilities, algorithm complexity, and edge cases, then produces risk-level findings with before/after fixes.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.