agentleFS
Codename-11Codename-11/hermes-relay/skills/devops/hermes-relay-doctor/SKILL.md

hermes-relay-doctor

Skill432 starsChanged 4 months agoMITView on GitHub

Smoke-test the Hermes-Relay bridge stack — checks relay health, phone connection, bridge channel, accessibility service, and screenshot capture in one pass

  • Pipes a download into a shell

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the plugin CLI:

    line 29
  2. Very specific:

    If neither is available (plugin not enabled, or the hermes-relay shim was never installed), run the checks inline:

    line 36
  3. Very specific:

    All six checks call loopback (127.0.0.1) — no bearer token needed.

    line 48
  4. Very specific:

    If the hermes-relay shim is missing, refresh it (and the rest of the install) with the idempotent updater:

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hermes-Relay Doctor

Runs a sequential smoke-test of the full bridge stack and reports pass/fail with fix hints for each check. Use this before reaching for android_* tools when something feels off.

When to Use

  • User runs /hermes-relay-doctor.
  • User says the bridge isn't working, the phone isn't connecting, or a screenshot is failing.
  • You want to verify the stack is healthy before issuing android_* tool calls.
  • The android_ping() tool returns an error or phone_connected: false.

Procedure

Run the plugin CLI:

hermes relay doctor        # host CLI (plugin enabled in Hermes)
hermes-relay doctor        # shell shim (installed by install.sh → plugin.cli)

If neither is available (plugin not enabled, or the hermes-relay shim was never installed), run the checks inline:

PORT="${RELAY_PORT:-8767}"
curl -sf "http://127.0.0.1:$PORT/health"
curl -sf "http://127.0.0.1:$PORT/bridge/status"
curl -sf "http://127.0.0.1:$PORT/ping"
curl -sf "http://127.0.0.1:$PORT/current_app"
curl -sf "http://127.0.0.1:$PORT/screen"
curl -sf "http://127.0.0.1:$PORT/screenshot"

All six checks call loopback (127.0.0.1) — no bearer token needed.

Interpreting Results

CheckPassFail / Fix
/health{"status":"ok","version":"..."} (200)Relay not running — systemctl --user start hermes-relay or check journalctl --user -u hermes-relay -n 30
/bridge/status{"phone_connected":true,...} (200)Phone not connected — open Hermes-Relay app and scan a pairing QR (/hermes-relay-pair)
/ping{"phone_connected":true} (200)Same as above — phone disconnected mid-session; re-scan QR
/current_app{"package":"...","activity":"..."} (200)Accessibility service not connected — go to Android Settings → Accessibility → Hermes-Relay → enable
/screenJSON with nodes array (200)Same as above — also check the permission checklist in the Bridge screen
/screenshot{"token":"..."} (200)MediaProjection not granted — see "Screenshot gap" below

Screenshot gap (known issue)

/screenshot returns 500 {"error":"MediaProjection not granted — enable Bridge screenshots in the app"} when the accessibility service is running but the system MediaProjection consent dialog hasn't been accepted.

Fix:

  1. Open the Hermes-Relay app → Bridge screen.
  2. Toggle the Allow Agent Control switch on.
  3. Android shows a "Start recording?" system dialog — tap Start.
  4. Re-run /hermes-relay-doctor to confirm the screenshot check passes.

This is a per-boot requirement on Android — the MediaProjection grant is revoked on reboot.

Re-running after a fix

hermes relay doctor

If the hermes-relay shim is missing, refresh it (and the rest of the install) with the idempotent updater:

hermes-relay-update

Or re-run the full installer:

curl -fsSL https://raw.githubusercontent.com/Codename-11/hermes-relay/main/install.sh | bash

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.