Converting Web Pages to MHTML Archive: Bundling Online Pages into a Single File with Agent Skill

Preface

When conducting research, maintaining compliance records, or reading offline, it is often necessary to completely save a page from a specific URL. The browser’s native “Save As” feature sometimes only generates an HTML file and a resource folder, which is inconvenient for transferring between machines or sharing as a package. MHTML (.mht / .mhtml) packages the page and embedded resources into a single file, facilitating archiving and transfer.

If you are already working in environments like Cursor or Claude Code where Agents are driven by natural language, you can install a specialized Skill for “URL to MHTML” conversion. This allows the model to follow a unified process when it detects archiving intent, rather than having to look up commands ad-hoc every time. The following introduces the Webpage to MHTML Archive (coordinate @user_2a67a6dc/html-to-mhtml) on SkillHub.

What is this

Webpage to MHTML Archive is a community-sourced (community) Agent Skill, currently at version 1.0.1. It is maintained by the publisher user_2a67a6dc and categorized as data-analysis on SkillHub. The tags indicate requires_api_key=false, meaning no additional API Key configuration is required after installation.

In a nutshell: when a user wants to save a webpage as MHTML or create an offline single-file archive, this Skill guides the Agent to complete the conversion. Trigger scenarios in the official description include Chinese phrases such as “html转mhtml”, “网页保存为mhtml”, “网页存档”, “离线保存网页”, “把网址转成mhtml”, “下载网页为单文件”, as well as English keywords like mhtml, mht, webpage archive, and save webpage offline.

Core Functions

Based on the public description on SkillHub, the capabilities of this Skill can be summarized as follows:

  1. Intent Recognition: When the aforementioned Chinese or English keywords (or similar phrasing) appear, the Agent should select this Skill rather than providing a generic “you can use your browser to save it” response.
  2. Webpage to MHTML Archiving: Targets the goal of converting an “online page to a single MHTML file.” Specific implementation steps are written in the SKILL.md file included after installation, and are executed by the Agent according to Skill specifications.

No independent REST interfaces or additional configuration filenames are listed on the public page; functional descriptions are subject to the documentation within the Skill package.

Installation and Activation

The installation process follows the general SkillHub instructions found at skillhub.cn/install/skillhub.md. First, perform an environment check, then install the skill into the current Agent’s skills directory.

1. Check SkillHub CLI

command -v skillhub && skillhub --version

If it is not installed, you can install it using the official script (full package or CLI only):

# Full installation (CLI + default Skills, recommended)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

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

2. Install this Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/, which the Agent may not be able to load.

skillhub install @user_2a67a6dc/html-to-mhtml --dir <your skills directory>

Common paths (subject to SkillHub documentation):

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

You can also send the following sentence to the AI in your conversation to have it follow the installation documentation:

Please install `@user_2a67a6dc/html-to-mhtml` based on https://skillhub.cn/install/skillhub.md.

After installation, if the Agent does not immediately recognize the new Skill, please restart or refresh the skills directory according to the instructions for your specific client.

Typical Usage

The design of this Skill is “User states need → Agent reads Skill and executes.” The following phrasings are consistent with the official introduction and can be used directly in conversation:

Save this URL as mhtml: https://example.com/docs/page
Archive webpage, save webpage offline, download as single mht file.
Convert html to mhtml, turn the current page into an mhtml archive.

For English scenarios, you can use phrases like: save this webpage offline as mhtml or webpage archive to a single mht file.

Once installed and activated via the steps above, the Agent should load @user_2a67a6dc/html-to-mhtml when it matches the intent. Specific commands, dependent tools, and output paths are subject to the SKILL.md inside the package; the public SkillHub page does not provide script examples for line-by-line copying, so implementation details are not speculated here.

Applicable Scenarios and Notes

Who it is for

  • People who need to repeatedly perform “Given URL → Single MHTML file” tasks within Agent workflows.
  • Those who wish to unify archiving behavior using fixed trigger words to reduce the cost of explaining formats verbally each time.

Precautions

  • MHTML compatibility with dynamic sites, pages requiring strong login, or complex front-end rendering depends on the actual conversion method; the Skill’s public page does not promise to cover all site types. In case of failure, refer to the guidelines within the Skill or the information returned by the Agent.
  • requires_api_key=false only indicates that the Skill itself does not require configuring a store API Key; if SKILL.md relies on a local browser or CLI tool, the environment requirements for those must still be met on the local machine.
  • SkillHub Statistics (as of page display): Rating 100000, Downloads 1040, Installations 5; data will change as the store updates. Please refer to the SkillHub Skill Page for the latest information.

Conclusion

Webpage to MHTML Archive consolidates common phrases like “save webpage,” “offline single file,” and “MHTML/MHT” into a reusable Agent capability. It is suitable for on-demand installation in environments already using SkillHub. Official Entry: https://www.skillhub.cn/skills/user_2a67a6dc/html-to-mhtml; API Coordinate Page: https://api.skillhub.cn/user_2a67a6dc/html-to-mhtml.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye