RH: Scheduled Web Fiction Batch Generation Skill for Hermes Agent

Preface

When running Hermes Agent on a Tencent Cloud Lighthouse server, if you need to produce multiple web novels on a fixed schedule—saving them to disk and pushing execution status—relying solely on conversational generation makes it difficult to guarantee quantity, directory structure, and notification closed-loops. Manually piecing together prompts and writing separate scheduled scripts also entails high maintenance costs. The following introduces the SkillHub community Skill RH (Coordinates: @user_89435606/auto-novel-writer-1800, current version 1.0.1): it uses SKILL.md to define generation rules and employs a Python script to orchestrate Hermes calls, local saving, and ServerChan notifications.

What is this

RH is displayed as RH on SkillHub, with the internal slug auto-novel-writer-1800, sourced from the community, and published by user_89435606. SkillHub categorizes it under it-ops-security; the tags indicate requires_api_key=false (installing the Skill itself does not require configuring a third-party API Key).

Skill Positioning (see SKILL.md in the package): Adapted for Hermes Agent on Tencent Cloud Lighthouse servers, it automatically batch-generates web novels every day at 18:00—10 super short stories and 5 long stories. The writing style targets the tone of platforms like Zhihu, mini-programs, and Heiyan, emphasizing an unattended workflow for local inspection, file saving, and ServerChan notifications.

Core Functions

The following capabilities are derived from the SkillHub page description, the package’s SKILL.md, and the main.py implementation. Any discrepancies between them will be noted separately.

  1. Scheduling and Batch Scale
    main.py registers main() to execute daily at 18:00 via schedule; a single run generates 10 super short stories followed by 5 long stories. The default entry point calls main() directly for testing; for permanent production use, the entry point needs to be changed to call schedule_task().

  2. Themes and Styles

    • Super Short Stories: Thematic elements are randomized from Danmei (BL), Lili (GL), Fanfiction, and their combinations; styles include Mutilation (Angsty), Plot-driven, and Ambiguous/Fluff.
    • Long Stories: Publishing platforms are randomized from Zhihu, Mini-programs, and Heiyan Reading; themes include Urban Power Fantasy, Suspense/Detective, and Ancient Romance/Rebirth.
    • Generation prompts require a lead-in (introduction), body structure, and mark 【Paid Cliffhangers】 within the text.
  3. Model Invocation Method
    The script invokes Hermes via the terminal rather than embedding fixed SDK calls in the code:

hermes chat -q "<prompt>"
This corresponds to `subprocess.run(["hermes", "chat", "-q", prompt], ...)`. The running environment must have the `hermes` command installed and executable.
  1. Output and Directory
    The default root directory is /home/ubuntu/novel_output, containing subdirectories 长篇 (Long Stories), 超短篇 (Super Short Stories), and 历史过稿记录 (History of Passed Drafts). Each story generates a .txt and a .docx (depending on python-docx), with filenames including the date and the parsed 【Novel Name】.

  2. Notifications
    Optionally configure ServerChan SCKEY to send titles and descriptions of various stages to https://sctapi.ftqq.com/{SCKEY}.send. Notifications are skipped if not configured.

  3. Content Inspection
    SKILL.md mentions AI review and duplication checking; however, the current local_content_check in main.py is local placeholder logic that returns “Local inspection passed” and a fixed repetition rate string, without calling external review/duplication APIs. The self-evolution self_evolution() function scans historical files under 历史过稿记录 and writes a summary to evolution_prompt.txt locally.

  4. Security Orientation (Script Comments and Implementation)
    The implementation removes system operations related to shutting down the machine; save paths use the regular user directory rather than /root; and network outbound traffic is primarily limited to user-configured ServerChan.

The public SkillHub page currently only shows installation instructions without a long description; the package’s requirements.txt still lists hermes-agent-sdk, which is inconsistent with the CLI method actually used in main.py. During deployment, rely on the script’s behavior.

Installation and Activation

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, follow the official documentation for the full installation:

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

2. Install RH to the current Agent’s skills directory

During installation, you must use --dir to point to the skills path recognized by the Agent; otherwise, it defaults to ./skills/ which may not be loaded. Example from official installation instructions:

skillhub install auto-novel-writer-1800 --namespace user_89435606 --dir <skills directory>

Common paths (excerpted from SkillHub installation docs):

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

You can also let the Agent read https://skillhub.cn/install/skillhub.md based on the page prompt and complete:

Please install `@user_89435606/auto-novel-writer-1800` according to https://skillhub.cn/install/skillhub.md.

3. Python Dependencies and Runtime Environment

Enter the skill package directory (the installed @user_89435606/auto-novel-writer-1800) and install dependencies:

pip install -r requirements.txt

requirements.txt declares: python-docx, requests, schedule, numpy, and hermes-agent-sdk (which coexists with the current main.py CLI calls; unused items can be trimmed based on the environment).

Modify SCKEY in main.py; if the username is not ubuntu, change BASE_DIR to a writable path on your machine. Ensure hermes is in the PATH.

Typical Usage

One-off Test Run (Default)
The package’s if __name__ == "__main__" executes main() by default, suitable for verifying Hermes and directory permissions:

python3 main.py

Persistent Scheduling at 18:00
Change the entry point to call schedule_task() (comment out the direct main() call); the process needs to run for a long time:

if __name__ == "__main__":
    schedule_task()

Working with Agents
After loading SKILL.md as Skill instructions, the Agent should follow the theme, word count range, and platform tone descriptions contained therein; specific batching and scheduling are still executed by main.py on the server.

Generation Flow Summary: Initialize directory → ServerChan start notification → Loop call Hermes until the quantity of short/long stories is met → Write txt/docx → Local self-evolution summary → Completion notification.

Use Cases and Notes

Who it is for

  • Teams or individuals who have deployed Hermes Agent in a Tencent Cloud Lighthouse environment and need to batch produce and archive web novel drafts at a fixed time.
  • Ops-style writing workflows that want to receive stage notifications via ServerChan and manage long/super-short story artifacts uniformly in a local directory.

Limitations and Notes

  • Heavily dependent on the local hermes CLI; if Hermes is unavailable, the script will skip and retry topic combinations.
  • The review/duplication checking capabilities mentioned in SKILL.md are inconsistent with the current local_content_check implementation and cannot be considered a real duplication check service.
  • The default output path is tied to the example user ubuntu; other systems must modify BASE_DIR.
  • SkillHub Statistics (based on crawled data): Rating 100000, Downloads 830, Install Count 0; please confirm on the SkillHub page that the version is still v1.0.1 before use.
  • Generated content involves commercial rules such as platform submission and paid cliffhangers; manual compliance and copyright review are still required before publishing; the Skill provides no legal guarantee.

Conclusion

RH bundles Hermes conversational capabilities, scheduled dispatching, local file output, and optional ServerChan notifications into a single community Skill, suitable for a server-side “18:00 daily, 5+10 stories” web novel draft pipeline. Installation and coordinates are subject to SkillHub:

  • Skill Page: https://www.skillhub.cn/skills/user_89435606/auto-novel-writer-1800
  • API Entry (SkillHub Registration): https://api.skillhub.cn/user_89435606/auto-novel-writer-1800
羽毛球分组比赛记分
小程序二维码

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

Xiaoye