Preface

When working on legal automation, two common issues often arise: First, legal text copied from WeChat Official Accounts or the China Judgments Online website often contains promotional information and residual formatting artifacts, leading to messy structures when pasted into Markdown. Second, when splitting articles or clauses, hierarchical levels may mismatch, and numbering or citation formats can become inconsistent. The following introduces the legal-text-format Skill published by a community author on SkillHub (Coordinates: @user_55833ee9/legal-text-format, Version 1.2.1), which is designed to handle this specific stage. It focuses solely on formatting and cleaning; it does not handle content fetching.

What is this

Published by user_55833ee9, sourced from the community, categorized under office-efficiency, and tagged with requires_api_key=false, meaning no API Key is required.

In one sentence: It converts legal text (legal statutes or legal cases) into a standardized Markdown format while removing promotional clutter and redundant information.

It solves the organizational problem of “after obtaining text but before delivery,” not the problem of content acquisition.

Core Functions

According to the official description, the capabilities consist of two main parts plus an archiving mechanism:

  1. Text Transformation: Converts legal text (legal statutes or legal cases) into a standardized Markdown format.
  2. Content Cleanup: Removes promotional information and redundancies.
  3. Self-contained Archiving: Features a built-in archive mechanism where all results are stored self-contained within the skill directory, facilitating post-processing review and traceability.

Explicitly excluded capabilities: It does not include content fetching. The source of the text (e.g., WeChat articles) should be handled by other Skills. The official description specifically names wechat-article-fetch as a collaborator, and the AI will automatically determine the skill collaboration sequence.

Installation and Activation

The available documentation does not provide specific installation commands, directory structures, or configuration fields, so this article will not speculate on them. For installation, please refer to the official page:

https://www.skillhub.cn/skills/user_55833ee9/legal-text-format

Official URL:

https://api.skillhub.cn/user_55833ee9/legal-text-format

The only configuration-related information confirmed in the materials is twofold: the source is the community (published by the community, not maintained by the official team), and the tag is requires_api_key=false, indicating no additional API Key is needed for use.

Typical Usage

The official description provides three types of trigger scenarios:

  1. Processing legal statutes, such as the Civil Code, Criminal Law, etc.;
  2. Organizing legal cases, such as Supreme People’s Court typical cases, judgment documents, etc.;
  3. Formatting legal documents from pasted text.

A typical workflow chain is: first use wechat-article-fetch to retrieve legal articles from WeChat Official Accounts, then pass the resulting text to this Skill for formatting and cleaning, outputting a self-contained archived Markdown file. In this entire chain, this Skill only handles the latter half.

Suitable Scenarios and Notes

Suitable for: Scenarios where legal text is already in hand and needs unified Markdown structuring and impurity cleanup, especially for batch organizing statutes and cases.

Notes:

  • Since it is a community Skill, it is recommended to spot-check outputs before formal production use to ensure the article hierarchy complies with your own documentation standards.
  • It only performs formatting and cleanup; it does not perform factual verification. Whether statutes are currently valid needs to be verified separately.
  • Processes requiring API Keys are not applicable (though this Skill does not require an API Key).
  • Changes in Version 1.2.1 relative to previous versions are not explained in the materials; it is recommended to check the update log before upgrading.
  • It does not fetch content; if the upstream fetching stage fails, this Skill will have no input to process.

Conclusion

The value of this Skill lies in standardizing the stage of “Formatting + Cleaning + Self-contained Archiving,” saving you from writing your own regex and chunking logic. It has a clear division of labor with fetching Skills and can be connected right after the fetching stage.

Official URL: https://api.skillhub.cn/user_55833ee9/legal-text-format