Generate Chinese User Manual for skill-example-generator

Preface

Self-written Agent Skills often consist of just a single SKILL.md file: trigger words, workflows, and parameters are all contained within. However, teams or users often require a structured, directly readable Chinese “User Guide.” Manually copying chapters from SKILL.md, supplementing tables, and writing examples involves repetitive labor and often leads to formatting inconsistencies.

Below is an introduction to the community Skill @user_211e8f0b/skill-example-generator on SkillHub (Page Title: A skill that provides Chinese usage examples for skills). It is designed for the general SKILL.md format, automatically parsing source files to generate structured Chinese documentation. It can also be triggered via natural language within Agent conversations.

What is this

One-line Positioning: Parses the target Skill’s SKILL.md to generate a Chinese user guide with fixed sections, defaulting to writing to examples/使用说明.md (Usage Guide.md) in the target directory.

  • Coordinates: @user_211e8f0b/skill-example-generator
  • SkillHub Version: 1.5.0 (community, published by user_211e8f0b)
  • Category: knowledge-management (SkillHub metadata)
  • API Key Required: No (requires_api_key=false)
  • Description (Official): Automatically parses SKILL.md to generate structured Chinese user guide documents.

The SKILL.md inside the package refers to this tool as the “Skill Chinese Usage Example Generator,” authored by Ma Libo, licensed under MIT, and targets platforms including Cursor, Claude Code, etc. This differs slightly from the external name on the SkillHub store page; the content of the installed package should be treated as authoritative.

Core Features

The following capabilities are derived from the SkillHub description and the instructions within the package’s SKILL.md. These represent documented behaviors, not an evaluation of the target Skill’s functionality.

  1. Parse SKILL.md: Reads frontmatter, section structure, trigger words, parameters, etc.; handles paths, encoding (UTF-8 / GBK), and broken YAML by degrading functionality or reporting errors according to boundary rules specified in the documentation.
  2. Generate Structured Chinese Documentation: Outputs sections according to a template, including Introduction, Trigger Methods, Function Descriptions, Parameter Tables, Usage Examples, FAQ, and Precautions.
  3. Executable Generator: Provides generate_readme.py (Python 3.11+, pure standard library), supporting single Skill generation, search by name, batch generation, and self-checks. The frontmatter of the output includes fields such as generator_version, source_skill_version, and source_skill_hash to facilitate reproduction and verification.
  4. In-Agent Execution: When the script cannot be run, follow the “Agent Execution Instructions” in the package to perform the equivalent workflow using Read / Glob / Write tools, and conduct quality self-checks (QualityReport).
  5. Multi-language Output (Optional): Supports language parameters such as zh / en / ja / ko. Without a translation service, the body text may retain Chinese with [原文] (Original Text) markers; the documentation explains the degradation strategy.

Explicitly does not do: Only generates user guides; does not modify the logic of the target Skill, nor does it guarantee the correctness of the target Skill’s behavior.

Installation and Activation

1. Install SkillHub CLI

If not already installed, check or install it according to the official installation instructions:

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

For complete steps, see SkillHub Installation and Priority Source Configuration.

2. Install this Skill

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

Cursor (skills directory is ~/.cursor/skills/):

skillhub install skill-example-generator --namespace user_211e8f0b --dir ~/.cursor/skills/

Claude Code:

skillhub install skill-example-generator --namespace user_211e8f0b --dir ~/.claude/skills/

Codex (common paths are ~/.codex/skills/ or .agents/skills/ under the project; depends on your current environment):

skillhub install skill-example-generator --namespace user_211e8f0b --dir ~/.codex/skills/

You can also ask the Agent in conversation to install @user_211e8f0b/skill-example-generator based on the SkillHub page prompts and https://skillhub.cn/install/skillhub.md.

After installation, refresh or restart the Agent according to your client’s requirements to enable the new Skill.

Typical Usage

Method 1: Trigger in Conversation

The main trigger words listed in the package include: “Generate example”, “Usage guide”, “User manual”, “Write documentation”, “Generate document”, “Create example document”.

Typical examples:

Generate a usage guide for ./skills/my-skill

Execution logic (Summary): Confirm target path → Read and validate SKILL.md → Extract metadata and sections → Generate examples/使用说明.md → Self-check and feedback quality report. The target directory must be readable and writable, and a valid SKILL.md (containing basic frontmatter) must exist.

Method 2: Command Line Call generate_readme.py

After entering the installation directory of this Skill, you can use the script inside the package (path depends on your local installation location, e.g., ~/.cursor/skills/@user_211e8f0b/skill-example-generator/):

# Generate usage guide for a skill at a specified path
python generate_readme.py ./skills/xlsx

# Search by name under skillsRoot and generate
python generate_readme.py xlsx --skills-root ./skills

# Batch generation (skip existing, isolate failures)
python generate_readme.py --batch --skills-root ./skills

# Self-check: Real regeneration of this repo's examples using the current generator
python generate_readme.py --self-check

The output file is [Target]/examples/使用说明.md. The package includes generation examples for several third-party Skills under _demos/ for format reference.

Use Cases and Notes

Who it is for

  • Skill authors who have just finished writing or revising a SKILL.md and need accompanying Chinese user documentation.
  • Those maintaining multiple Skills who want consistent section structures in user guides and reduced manual formatting.
  • Those who need to batch produce examples/ documentation using the same workflow in environments like Cursor / Claude Code.

Prerequisites

  1. A readable SKILL.md exists at the target path.
  2. Write permissions for the target directory (for creating examples/).
  3. Python 3.11+ is required for command-line usage.

Limitations and Pitfalls

  • Complex nested tables or non-standard Markdown may lose formatting; manual proofreading is recommended after generation.
  • Multi-language body text relies on external translation services; without a service, it degrades as documented. Do not mistakenly assume full localization has occurred.
  • --strict mainly constrains parameter type out-of-bounds errors and does not change translation degradation behavior.
  • Download counts and ratings in SkillHub store metadata fluctuate; refer to the page and CLI search results when writing (e.g., skillhub search skill-example-generator).

Conclusion

skill-example-generator streamlines the “from SKILL.md to Chinese User Guide” process into a repeatable workflow: either via conversational triggers or generate_readme.py. The output lands in the target Skill’s examples/ directory, facilitating distribution and version comparison.

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

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

Xiaoye