aesculap-hermes

Use when a user asks an agent to install, configure, validate, operate, or troubleshoot Aesculap, the safety-gated self-healing daemon for Hermes Agent. Covers environment discovery, explicit permission-tier selection, provider setup without exposing keys, confirmation of notification target and language, disclosure of fix mode, systemd installation, and end-to-end verification.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "aesculap-hermes" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4bc16882eae07e3596979ec1196cfe4548cecd1d9704b3f7aa0b0035ea79c931. Verify the upstream source and version against https://skillhub.cn/skills/user_9e10d3ea/aesculap-hermes before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use when a user asks an agent to install, configure, validate, operate, or troubleshoot Aesculap, the safety-gated self-healing daemon for Hermes Agent. Covers environment discovery, explicit permission-tier selection, provider setup without exposing keys, confirmation of notification target and language, disclosure of fix mode, systemd installation, and end-to-end verification.

0 Downloads

Introduction source: third_party · user_9e10d3ea · 1.0.1 Reference

SkillPi interpretation

Tasks
Use when a user asks an agent to install, configure, validate, operate, or troubleshoot Aesculap, the safety-gated self-healing daemon for Hermes Agent. Guides environment discovery, explicit permission-tier selection, provider setup without exposing keys, notification target and language confirmation, explicit fix-mode disclosure, systemd installation, and end-to-end verification.
Audience
Use this skill when the user asks to: install Aesculap beside a Hermes deployment; configure probes, providers, permission boundaries, or notifications; choose between permission tiers A/B/C; run Aesculap in observe or fix mode; install or troubleshoot the systemd service; inspect status, audit records, or pending escalations; verify whether human-intervention notifications actually arrive. Do not use it as a generic server-monitoring guide, a replacement for backups, or authorization to edit identity files, credentials, billing settings, or unrelated applications.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: aesculap-hermes
description: Use when a user asks an agent to install, configure, validate, operate, or troubleshoot Aesculap, the safety-gated self-healing daemon for Hermes Agent. Guides environment discovery, explicit permission-tier selection, provider setup without exposing keys, notification target and language confirmation, explicit fix-mode disclosure, systemd installation, and end-to-end verification.
version: 0.1.0
author: banxia-O
license: MIT
metadata:
  hermes:
    tags: [hermes, self-healing, reliability, systemd, monitoring, incident-response]
    related_skills: [hermes-agent]

Aesculap for Hermes Agent

Overview

Aesculap is a resident health-monitoring and recovery daemon for Hermes Agent. It detects persistent failures, asks an LLM to diagnose and propose a route, then lets deterministic code decide whether any action is allowed. Safe, bounded repairs may run automatically; risky, ambiguous, repeated, or unsupported cases escalate to a coding agent or a human.

This skill is the installation and operations entrypoint. Read AGENT.md for the complete agent-facing manual, README.md for the product overview, and Aesculap_PRD.md when auditing design decisions.

Core invariant: the LLM proposes; code gates decide. Never describe Aesculap as unrestricted autonomous repair.

When to Use

Use this skill when the user asks to:

  • install Aesculap beside a Hermes deployment;
  • configure probes, providers, permission boundaries, or notifications;
  • choose between permission tiers A/B/C;
  • run Aesculap in observe or fix mode;
  • install or troubleshoot the systemd service;
  • inspect status, audit records, or pending escalations;
  • verify whether human-intervention notifications actually arrive.

Do not use it as a generic server-monitoring guide, a replacement for backups, or authorization to edit identity files, credentials, billing settings, or unrelated applications.

Operating Contract

Before writing files or starting a service, explain and obtain explicit answers for every consequential decision below.

Decision Required behavior
Writable scope Present A/B/C with risks. Recommend A. Never silently choose C.
Identity files Show detected candidates and let the user confirm the immutable list.
Triage provider/model Detect configured providers by key presence only; never read or print key values.
Coding-agent escalation Report whether Claude Code, Codex, or another supported tool is actually available.
Notification target Run hermes send --list; let the user choose a real destination; send a test message.
Notification language Ask: “Aesculap needs human intervention. Which language should it use to notify you: English or Simplified Chinese?” Persist the answer as notify.language.
Service scope Ask whether systemd should use user or system scope. Prefer user scope unless system scope is necessary.
Activation mode New installs default to fix so protection is active immediately. State this before service start. Switch to observe only when the user explicitly wants a dry run or temporary safety downgrade.

Never infer notification language from logs, stack traces, server locale, model output, or an occasional message. Supported values are en and zh-CN; legacy configurations without the field default to en.

Installation Workflow

1. Read-only preflight

Run these checks without changing the system:

python3 --version
git -C <project-root> rev-parse --is-inside-work-tree
hermes --version
hermes gateway status
hermes send --list
command -v systemctl || true
command -v claude || true
command -v codex || true

Also inspect:

  • whether Hermes writes logs to a file that Aesculap can watch;
  • whether the protected project is a git repository;
  • whether ~/.hermes or the active profile contains identity files such as SOUL.md, MEMORY.md, USER.md, persona, or identity documents;
  • which provider environment variables exist, checking only presence;
  • available disk space and Python ≥ 3.11.

Completion criterion: report every prerequisite as pass, missing, or intentionally disabled. Do not begin installation while file logging or the intended rollback repository is unresolved.

2. Ask for the safety boundary

Present the tiers in plain language:

  • A — project tree only: safest and recommended for most users.
  • B — Hermes configuration plus project tree: only for a dedicated Hermes host and only after identity/credential exclusions are confirmed.
  • C — whole host: highest risk. Use only after explicit user selection and confirmation that the machine is dedicated and contains no unrelated important data.

Aesculap still hard-blocks identity files, credentials, its own directory, read-only files, sensitive system paths, destructive commands, force pushes, deletion, and billing/payment operations. A larger tier never removes those hard tripwires.

Completion criterion: record the user’s explicit tier and immutable identity-file choices. If the user is uncertain, stop at A.

3. Prepare an isolated Python environment

From the repository or SkillHub-installed directory:

python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install -e .

Install only the provider extras actually selected:

.venv/bin/pip install -e '.[openai]'
# or
.venv/bin/pip install -e '.[anthropic]'
# or both only when both are genuinely needed

Never paste API keys into chat or config.yaml. The configuration stores environment-variable names such as OPENAI_API_KEY, not secret values. Tell the user which approved environment file or service environment to edit, then verify only that the variable exists.

Completion criterion: .venv/bin/aesculap --version exits successfully and no credential value appears in shell history, logs, config, or chat.

4. Resolve notification delivery before running the wizard

List actual Hermes destinations:

hermes send --list

Ask the user which destination should receive human-intervention alerts. Build a command template from a real target, for example:

notify:
  command_template: "hermes send --to telegram {message}"

Targets may be a platform home channel or an explicit platform/chat/thread destination. Use the exact syntax shown by hermes send --help on the installed Hermes version. Test the target before relying on it:

hermes send --to <target> "Aesculap notification test"

If no destination is available, leave notify.command_template empty and state clearly that escalations will be audited but not delivered. Never retain an obsolete notification subcommand copied from an older Hermes release.

Then ask the language question and retain the explicit answer:

  • English → notify.language: en
  • 简体中文 → notify.language: zh-CN

The selected language controls the human-readable triage diagnosis and final notification shell. Machine-consumed action strings, JSON keys, enum values, and audit fields remain stable English or structured objects.

Completion criterion: either a real test message arrived at the user-selected destination, or delivery is explicitly marked disabled; the chosen language is documented.

5. Run the interactive installer

.venv/bin/aesculap install ./config.yaml

Use the answers already confirmed with the user. Do not reinterpret them during the CLI wizard. When asked for the notification template, paste the verified template or leave it blank. When asked for notification language, enter en or zh-CN exactly.

After generation, inspect the configuration without printing secret values:

.venv/bin/aesculap config ./config.yaml

Confirm at minimum:

  • scope.tier matches the user’s choice;
  • project and Hermes paths are correct;
  • identity files are protected;
  • provider and model names are intended;
  • notify.command_template is either tested or empty;
  • notify.language matches the explicit answer;
  • mode is fix unless the user deliberately requested observe;
  • no API key value is stored in YAML.

Completion criterion: config validation exits 0 and every consequential field matches a user-confirmed decision.

6. Establish a health baseline before service start

New configurations default to fix; this avoids a monitoring-only install being forgotten. Before starting the resident service, state plainly that bounded repairs may run within the selected tier, then inspect the baseline:

.venv/bin/aesculap probe ./config.yaml
.venv/bin/aesculap status ./config.yaml

A failing probe is not automatically an installer failure. Determine whether it reflects a real Hermes issue, an incorrect path, or a probe that should be disabled. Do not start the service merely to make the output green.

If the user explicitly wants a dry run or a temporary safety downgrade, switch modes before service start:

.venv/bin/aesculap mode observe ./config.yaml

Completion criterion: every enabled probe has an explained result, the active mode is stated to the user, and fix remains enabled unless the user deliberately selected observe.

7. Install systemd with a dry run first

Render the unit before writing it:

.venv/bin/aesculap install-systemd ./config.yaml --scope user
# or, only if explicitly selected:
.venv/bin/aesculap install-systemd ./config.yaml --scope system

Review the executable path, working directory, config path, service user, and hardening directives. Then install only after approval:

.venv/bin/aesculap install-systemd ./config.yaml --scope user --write

Use the enable/start command printed by the installer. For user services that must survive logout, check whether linger is required before enabling it.

Completion criterion: systemd reports the unit active, the process uses the intended .venv, and logs show one clean startup rather than a restart loop.

8. Verify end to end

Run:

.venv/bin/aesculap config ./config.yaml
.venv/bin/aesculap probe ./config.yaml
.venv/bin/aesculap status ./config.yaml
systemctl --user status aesculap.service --no-pager

Adapt the final command for system scope. Inspect recent audit entries and service logs. Trigger only a harmless, reversible test condition or use a test fixture; do not break a production agent merely to prove recovery.

Verify separately:

  1. Aesculap detects and audits the test event.
  2. In default fix mode, every attempted repair remains inside the selected tier and deterministic gate; if the user selected observe, no repair runs.
  3. A human escalation reaches the configured target.
  4. The title, diagnosis, headings, and guidance use the chosen language.
  5. Technical evidence may remain in its original language but credentials are redacted.
  6. Repeated equivalent events respect deduplication/cooldown.

If the user temporarily selected observe, restore the normal active mode once the dry run is complete unless they explicitly choose to remain observation-only:

.venv/bin/aesculap mode fix ./config.yaml

Completion criterion: detection, audit, delivery, language, redaction, safety-gate behavior, and service health are all verified with real output; the final mode is stated explicitly.

Routine Operations

.venv/bin/aesculap status ./config.yaml
.venv/bin/aesculap mode observe ./config.yaml
.venv/bin/aesculap mode fix ./config.yaml
.venv/bin/aesculap disable ./config.yaml
.venv/bin/aesculap enable ./config.yaml
.venv/bin/aesculap stop

Use observe immediately when a diagnosis or repair route appears suspicious. disable is the master stop for Aesculap behavior; stopping the systemd service additionally stops the daemon process.

When a notification requests a credential, tell the user which environment variable and file need attention. Never request, echo, transmit, or log the credential itself.

Common Pitfalls

  1. Accepting an obsolete notification command. Current Hermes uses hermes send; verify with live --help and --list. An untested template means notification delivery is not configured.
  2. Guessing the user’s language. Always ask during installation. Logs and locale are evidence about software, not the person receiving alerts.
  3. Localizing machine actions. actions are parsed downstream. Keep strings in English or use structured action objects; localize only human-facing diagnosis and notification copy.
  4. Leaving a new install in observation-only mode by accident. New installs default to fix so protection is active. Use observe deliberately for a dry run or incident downgrade, and record whether/when it should return to fix.
  5. Treating tier C as unrestricted root. Hard tripwires and protected paths still apply. C is not permission to edit identity, credentials, billing, or Aesculap itself.
  6. Running without git rollback. Resolve the intended rollback repository before enabling repairs.
  7. Claiming success from config validation alone. A complete install requires service health, probe results, a real notification test, and language verification.
  8. Mixing project source with production dirty changes. Use an isolated worktree for development and preserve the deployed checkout until changes are reviewed and deliberately rolled out.

Verification Checklist

  • [ ] Python ≥ 3.11 and isolated .venv are in use
  • [ ] Hermes file logging and project git rollback are available
  • [ ] Permission tier and identity-file protections were explicitly confirmed
  • [ ] Provider choice was detected without reading or printing secrets
  • [ ] hermes send --list was checked on the live installation
  • [ ] Notification target was tested or explicitly disabled
  • [ ] Notification language was explicitly selected and persisted
  • [ ] config, probe, and status commands were exercised
  • [ ] Initial mode is fix, unless the user deliberately selected observe
  • [ ] User was told that starting the service in fix permits bounded repairs within the selected tier
  • [ ] systemd unit was reviewed before --write
  • [ ] Audit, notification delivery, localization, and redaction were verified end to end
  • [ ] Any deliberate use of observe includes a recorded decision about whether/when to restore fix
  • [ ] Final report states scope tier, mode, service status, notification target/language, and unresolved probe failures

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value82/100

Highlights

  • Aesculap 提供 Hermes Agent 的完整自愈守护进程安装与运维能力,解决明确的运维痛点
  • 功能闭环完整,涵盖环境发现、安全边界选择、配置生成、systemd 部署和端到端验证
Trigger Precision92/100

Highlights

  • 触发词精准覆盖安装、配置、验证、运维等核心场景,边界清晰
  • 明确排除无关功能,避免误触发
Structure and Standards95/100

Highlights

  • 8 步安装流程结构清晰,每步有明确完成标准
  • frontmatter 完整,包含端到端命令示例和验证清单
Execution Reliability85/100

Areas to improve

  • 关键依赖失败处理缺失 Reported severity: Minor

    未说明 Python <3.11 或 git 不可用时的降级或替代方案

    Recommendation: 在预检阶段增加对不满足最低要求的明确处理指引,如建议使用容器或提示用户升级

  • 配置文件冲突策略未定义 Reported severity: Minor

    未说明当 config.yaml 已存在时是覆盖、合并还是报错

    Recommendation: 在 installer 步骤中明确配置文件存在时的处理逻辑,建议默认报错并要求用户显式指定 --force 或 --merge

Highlights

  • 安全设计严谨:LLM 仅提议,代码门控决策,硬编码保护敏感路径
  • 不可逆操作均有确认机制,如 systemd 写入前 review、模式切换显式声明
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.