hermes-qq

Original🇨🇳 Chinese
Translated
2 scriptsChecked / no sensitive code detected

This skill is used when users want to add QQ platform support to the official main branch of Hermes Agent, or explicitly mention requests like "add QQ channel to hermes main", "install QQ support as a skill to Hermes", or "enable the official version of Hermes to support QQ and file sending". This skill will update the current repository to a version that supports QQ Bot, QQ file sending, QQ platform configuration, and toolset integration.

8installs
Added on

NPX Install

npx skill4agent add chujianyun/skills hermes-qq

SKILL.md Content (Chinese)

View Translation Comparison →

Hermes QQ Installer

This skill is used to update the official
main
code of Hermes Agent to a version that supports the QQ platform.
Applicable scenarios:
  • The current repository is
    hermes-agent
  • Users want to add QQ channel to the official
    main
    code
  • Need to support QQ text, image, audio, video, and regular file sending simultaneously
Inapplicable scenarios:
  • The current repository is not
    hermes-agent
  • Users only want to analyze the principle of QQ adapter without modifying code
  • The repository is already a branch with built-in QQ support and does not need patching again

Workflow

  1. First confirm that the target repository is
    hermes-agent
    and there are no conflicting local changes in the working tree.
  2. Run
    scripts/install_hermes_qq.py
    , which will patch the current working directory by default.
  3. If the repository has a
    venv
    , prioritize executing:
    source venv/bin/activate && python -m pytest tests/gateway/test_platform_base.py tests/gateway/test_extract_local_files.py tests/gateway/test_send_image_file.py tests/cron/test_scheduler.py tests/gateway/test_background_command.py tests/gateway/test_internal_event_bypass_pairing.py -q -n 0
  4. If there is no existing environment, set up the test environment according to the repository conventions first, then execute the same set of targeted tests.

Execution Methods

When the current directory is the target
hermes-agent
repository:
bash
python /Users/liuwangyang/Documents/coding/our/skills-wuming/skills/hermes-qq/scripts/install_hermes_qq.py
When specifying the target repository:
bash
python /Users/liuwangyang/Documents/coding/our/skills-wuming/skills/hermes-qq/scripts/install_hermes_qq.py /path/to/hermes-agent

Resources

  • assets/qq.py
    Complete implementation of QQ adapter, which will be copied to
    gateway/platforms/qq.py
  • references/verification.md
    Verification commands recommended to execute after installation
If the script prompts that a certain patch anchor does not exist, it means the target repository has deviated too much from the official
main
branch. In this case, do not patch blindly. First read references/verification.md, then manually review the differences before patching.