Skip to content

自动化模板

本文档的完整中文翻译正在进行中。

概述

常见自动化任务的模板。

快速开始

bash
hermes help
hermes config
hermes skills

相关链接

获取帮助

如需帮助,请运行 hermes doctor 或访问 GitHub Issues


原文档内容:

Automation Templates

Copy-paste recipes for common automation patterns. Each template uses Hermes's built-in cron scheduler for time-based triggers and webhook platform for event-driven triggers.

Every template works with any model — not locked to a single provider.

Three Trigger Types

TriggerHowTool
ScheduleRuns on a cadence (hourly, nightly, weekly)cronjob tool or /cron slash command
GitHub EventFires on PR opens, pushes, issues, CI resultsWebhook platform (hermes webhook subscribe)
API CallExternal service POSTs JSON to your endpointWebhook platform (config.yaml routes or hermes webhook subscribe)

All three support delivery to Telegram, Discord, Slack, SMS, email, GitHub comments, or local files.


Development Workflow

Nightly Backlog Triage

Label, prioritize, and summarize new issues every night. Delivers a digest to your team channel.

Trigger: Schedule (nightly)

bash
hermes cron create "0 2 * * *" \
  "You are a project manager triaging the NousResearch/hermes-agent GitHub repo.

1. Run: gh issue list --repo NousResearch/hermes-agent --state open --json number,title,labels,author,createdAt --limit 30
2. Identify issues opened in the last 24 hours
3. For each new issue:
   - Suggest a priority label (P0-critical, P1-high, P2-medium, P3-low)
   - Suggest a category label (bug, feature, docs, security)
   - Write a one-line triage note
4. Summarize: total open issues, new today, breakdown by priority

Format as a clean digest. If no new issues, respond with [SILENT]." \
  --name "Nightly backlog triage" \
  --deliver telegram

Automatic PR Code Review

Review every pull request automatically when it's opened. Posts a review comment directly on the PR.

Trigger: GitHub webhook

Option A — Dynamic subscription (CLI):

bash
hermes webhook subscribe ...

*[完整翻译即将推出]*