Chemical Engineering HTML to WeChat Mini Program Converter
Paste the following prompt into your AI chat to install this skill:
Please install @user_fb8bdb79/ray-html-miniprogram using https://skillhub.cn/install/skillhub.md
About this skill
Problem
Chemical-engineering calculation pages often mix formulas, coefficients, options, and frontend logic in a single HTML file. Porting them to WeChat Mini Programs can introduce parameter drift, mismatched enum options, scattered UI styles, calculation code stuck in Page, and subpackage size issues.
Workflow
The skill follows a project-style conversion:
- Read the HTML source and extract JavaScript calculation functions, inputs, defaults, physical constants, and enums such as head type or fluid type;
- Move calculation logic into
utils/modules, preserving iteration-heavy routines like Colebrook-White and volume-table generation; - Create Mini Program pages, register
app.json, add home-page entries, and apply a unified purple-gradient theme,36rpxinputs, and highlighted result cards; - Check pressure-drop and tank-volume edge cases, including Reynolds-number branching, local losses, and segment-area calculations;
- Validate parameter parity, invalid-input handling, empty-result states, subpackage size, and version records.
Boundary
It enforces one-to-one conversion and does not add parameters or features missing from the HTML source. If the source depends on browser files, complex charts, or special permissions, confirm Mini Program feasibility first. For network, login, or permission flows, use minimal permissions and provide failure reasons plus recovery paths.
Use Cases
- Convert an existing tank-volume HTML page into a Mini Program module while preserving head types and volume tables.
- Extract Colebrook-White pressure-drop logic into utils, register the page, and keep calculation parity.
- Split multiple calculation pages into subpackages with preload rules to stay under the 2 MB main-package limit.
- Fix mismatched options and small inputs by re-checking HTML parameters, UI checklist, and home-page entries.
Best For
- Frontend engineers maintaining chemical-calculation tools who need to migrate existing HTML tools into WeChat Mini Program modules.
- Mini Program developers who need to unify calculation-page UI, input feedback, and visible error states.
- Engineers porting pressure-drop or tank-volume tools who need to verify enum parameters and formula logic.
- Developers managing subpackage size who need to split low-frequency calculation modules and configure preloading.
Related Skills
Track multiple GitHub projects, check releases and changelogs, and generate structured update summaries with impact analysis.
Upload local files to Qiniu Object Storage with server-side auto-delete days and public or private permanent URLs, ideal for temporary files and replacing Base64 storage.
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.