Porting Chemical Engineering Calculations to WeChat Mini Programs: Migrating HTML Calculation Pages

Introduction

In the field of process engineering and chemical engineering, many computational tools are implemented as single-page HTML applications: forms, constant tables, and formulas all run within the browser. When teams want to integrate these capabilities into the WeChat ecosystem, they often have to manually split pages, rewrite interactions, and align with the components and lifecycle of Mini Programs. This process is costly and prone to errors during formula migration. If you already have mature HTML calculation pages and prefer an Agent to perform the migration of “page structure + calculation logic” according to unified specifications rather than writing a Mini Program from scratch, you can use the community skill on SkillHub, Chemical Engineering Calculator to WeChat Mini Program (Coordinate @user_fb8bdb79/ray-html-miniprogram), to constrain the conversion workflow.

What is this

Chemical Engineering Calculator to WeChat Mini Program is a community skill under the SkillHub category dev-programming. The current version is 1.3.0, published by user_fb8bdb79 (displayed as author Rayzhang on the SkillHub page). The official description states that this skill should be enabled when you need to convert chemical engineering calculation HTML into WeChat Mini Program modules, turn existing HTML calculation tools into Mini Programs, extract calculation logic from HTML to create new Mini Program pages, or mobilize chemical/process engineering calculation tools.

The skill tag indicates requires_api_key=false, meaning it does not rely on additional API keys. The SkillHub page shows a rating of 100000 and 1166 downloads (statistics are subject to SkillHub).

Core Functions

According to the official description, the capability boundaries covered by the skill are as follows:

  1. HTML → Mini Program Module: Organizes HTML resources related to chemical engineering calculations into module structures usable within WeChat Mini Programs.
  2. Preserve/Extract Calculation Logic: Identifies and migrates calculation workflows from existing HTML to generate new Mini Program pages, rather than just creating a static shell.
  3. Mobilization Orientation: Oriented towards chemical and process engineering scenarios, the output aligns with the WeChat Mini Program runtime environment to facilitate the use of original calculation tools on mobile devices.

Specific implementation steps, directory conventions, and code templates are subject to the SKILL.md within the skill package; this article does not expand on internal instructions not listed item-by-item on the public page.

Installation and Activation

Install via SkillHub CLI

First, check if skillhub is already installed on your local machine:

command -v skillhub && skillhub --version

If it is not installed, you can follow the SkillHub installation documentation to perform a full installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing skills, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/, and the Agent may not be able to recognize it. The installation coordinate for Chemical Engineering Calculator to WeChat Mini Program is:

skillhub install user_fb8bdb79/ray-html-miniprogram --dir <your skills directory>

Common client skills paths (excerpted from SkillHub installation instructions):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

In Cursor, you can set --dir to ~/.cursor/skills/. After installation, refresh or restart according to the client’s requirements to enable the skill.

Install via Agent Conversation

The prompt provided by the SkillHub skill page is: Based on SkillHub Installation and Priority Source Configuration, install @user_fb8bdb79/ray-html-miniprogram. This is suitable for scenarios where you are already using clients like Cursor or Claude Code that support Skills, and you want the Agent to fetch and save the files locally.

Typical Usage

No independent demo repository is attached to the public materials; the reproducible usage aligns with the task description. Provide the Agent with the source and goal after enabling the skill:

  1. Provide the HTML file of the chemical calculation to be migrated (or explain its path and entry page).
  2. Explain the goal: a page or module in a WeChat Mini Program, and whether the original input fields, units, and formulas need to be preserved.
  3. If only partial logic needs to be extracted, clearly specify the calculation blocks to be written into the new Mini Program page to prevent the Agent from copying the DOM page-by-page.

Following these steps, the Agent will organize the Mini Program project fragments according to the specifications in the skill’s SKILL.md (page, logic, and resource division are subject to the skill package). After migration, you should independently verify in WeChat Developer Tools whether the numerical results match the original HTML version.

Scenarios and Notes

Who is it for

  • Teams or individual developers who already have browser-based chemical/process engineering calculation HTML and need to quickly integrate it into WeChat Mini Programs.
  • Those who want the Agent to uniformly handle “extracting logic from HTML + generating Mini Program pages” to reduce the repetitive labor of manually rewriting forms and formula chains.

Limitations and Notes

  • The skill source is community, and the upgrade and maintenance rhythm depends on the publisher; it is recommended to perform regression comparisons on your own samples before using it in a production environment.
  • Chemical calculations are sensitive to units, physical constants, and boundary conditions. The results on both the HTML and Mini Program ends should be verified case-by-case; you cannot rely solely on a single generation.
  • The SkillHub page shows an installation count of 0, which is counted separately from downloads; whether it has been written to the local skills directory is subject to your local skillhub install or the Agent installation result.
  • No API Key is declared as required on the official page; if the dependency changes in future versions, refer to the SkillHub skill page tags and SKILL.md.

Conclusion

Chemical Engineering Calculator to WeChat Mini Program converges “HTML Calculation Tool → WeChat Mini Program” into a repeatable Agent skill. It is suitable for reducing the workload of manual page splitting and logic rewriting when you have existing chemical calculation pages and need to enter the WeChat mobile ecosystem. Installation and coordinates are subject to SkillHub:

  • Skill Page: https://www.skillhub.cn/skills/user_fb8bdb79/ray-html-miniprogram
  • Installation Instructions: https://skillhub.cn/install/skillhub.md
  • Coordinate: @user_fb8bdb79/ray-html-miniprogram (v1.3.0)
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye