jcrabapple/hermes-skills/platform-config-audit
Claude Code and agent skill by jcrabapple/hermes-skills
- community
Checking that the SKILL.md file is still in the repository.
Audit and verify Telegram, Discord, Signal, and other messaging platform configurations for Hermes Agent
Install
npx vskill@latest install jcrabapple/hermes-skills/platform-config-auditSKILL.md
The same SKILL.md was published earlier as jcrabapple/hermes-skills/platform-config-audit.
Overview
Systematically verify that messaging platforms (Telegram, Discord, Signal) are properly configured with Hermes Agent. This audit checks configuration files, environment variables, systemd services, and tests actual connectivity.
When to Use This Skill
- After setting up a new messaging platform integration
- When messages aren't being sent/received as expected
- Before relying on a platform for critical notifications
- Periodic health checks of integrations
- Troubleshooting "platform not available" errors
Audit Checklist
Step 1: Check Hermes Configuration
Read the main config file to find platform settings:
- Look for
display.platforms.<platform>.enabled: true - Check
display.platforms.<platform>.extrasettings (Signal HTTP URL, account) - Check platform-specific sections (e.g.,
discord:,telegram:) - Look for home channel environment variables at bottom of file
Step 2: Check Environment Variables
Common variables to verify:
TELEGRAM_BOT_TOKEN,TELEGRAM_CHAT_ID,TELEGRAM_HOME_CHANNELDISCORD_BOT_TOKEN,DISCORD_HOME_CHANNELSIGNAL_HOME_CHANNEL
Step 3: List Available Messaging Targets
Use send_message(action="list") to see:
- Which platforms Hermes can actually see
- Available channels and DMs
- Home channel for each platform
Step 4: Platform-Specific Verification
Signal CLI
- Check if signal-cli is installed:
signal-cli --version - Verify daemon is running:
ps aux | grep -i 'signal-cli.*daemon' - Check systemd services:
systemctl --user status signal-daemon --no-pager - Test HTTP API:
curl -s http://127.0.0.1:8080/v1/accounts
Telegram
- Check for token files:
cat ~/.hermes/.telegram_token 2>/dev/null
Discord
- Check for token files:
cat ~/.hermes/.discord_token 2>/dev/null - Check thread tracking:
ls -la ~/.hermes/discord_threads.json
Step 5: Check Systemd Services (Signal)
Signal often uses systemd for the daemon and processors:
signal-daemon.service- Must be runningsignal-processor.service- Processes incoming messagessignal-responder.service- Auto-responder (optional)
Common Issue: Service files referencing .sh scripts when actual files are .py
Step 6: Verify Data Directories
- Signal data:
~/.local/share/signal-cli/ - Hermes scripts:
~/.hermes/scripts/
Removing a Platform (Teardown)
Platform removal spans six places. Miss one and you leave a ghost that keeps reconnecting.
- Back up first:
cp -a ~/.hermes/config.yaml ~/.hermes/.env <backup dir>/. - `config.yaml` — the platform can appear in four separate places; grep for it and remove
every hit: display.platforms.<p>, top-level <p>: (require_mention / allowed_channels), gateway.platforms.<p> (the adapter block: relay_url, cli_path, home_channel), and top-level platforms.<p> (enabled + home_channel). Use hermes config unset <dotted.path>: it routes a dotted path to config.yaml and a bare env-var name to .env, prints which file it rewrote, and preserves comments and key order through the ruamel round trip. Do not hand-splice the YAML. gateway.platforms.<p> is an ALIAS — the CLI warns "the top-level platforms.<p> block outranks gateway.platforms" and removes the top-level one. If a path errors with "Config key not set", find the real parent first (nearest column-0 key above it, e.g. the block may sit under gateway: rather than where the indentation suggests) instead of guessing.
- `~/.hermes/.env` — remove the
<PLATFORM>_*keys entirely (`hermes config unset
MATTERMOST_URL routes a bare name to .env). Do NOT merely comment them out: the values stay on disk in the comments, the CLI cannot remove them, and a commented-out key is invisible to every later inventory grep. For the comment lines, do the edit with a Python script via write_file + python3` (see secret-safe-file-editing), never through a masked read.
Order matters: strip the credentials too, not only the config key. An <p>: enabled: false entry is a GUARD, not a leftover. The gateway logs "Environment credentials no longer override an explicit disable. Remove the key or set platforms.<name>.enabled: true to turn it back on" — so deleting the config key while .env credentials remain turns the adapter back ON.
- Every profile that mirrors the config (
~/.hermes/profiles/<name>/config.yaml+.env).
Profiles are independent islands: a platform removed only from the default profile still reconnects from the voice gateway. Check ~/.hermes/profiles/*/. A HALF teardown is the common failure: one profile gets its .env creds stripped while another keeps live credentials AND enabled: true, and that one profile is the only one that flaps. Inventory all profiles in one pass (for f in config.yaml profiles/*/config.yaml; do grep -niE '<p>' "$f"; done) before editing anything.
Verify by PARSED VALUE, not by text diff. The ruamel round trip reflows long folded scalars (a two-line single-quoted string becomes one line), so a text diff reports changes that are not changes. Load backup and edited file with yaml.safe_load, compare flattened string values, and expect zero differences plus only the intended key gone.
- systemd user units —
systemctl --user stopthendisable, then move the unit files out of
~/.config/systemd/user/ and daemon-reload. Units generated by podman generate systemd use --rm, so the container disappears on stop; hand-written podman run units leave an exited container behind (podman rm -f). Also kill any tunnel/gateway-sidecar process (ngrok, cloudflared) — and note pkill -f "<pattern>" matches your own shell's command line, so it kills the terminal session; use a [c]har -style pattern.
- Runtime state —
~/.hermes/channel_directory.jsonkeepsplatforms.<p>entries until the
next gateway start; drop the keys so send_message doesn't advertise dead targets.
Keep podman volumes (podman volume ls) unless explicitly asked to purge — they hold the only copy of that platform's data. List their names in the report and let the user decide.
The final step is a gateway restart, and an inline restart command is refused from inside the gateway. terminal and execute_code hard-block gateway lifecycle commands when the caller is a supervised gateway process (cron.lifecycle_guard.contains_gateway_lifecycle_command); wrapping it in systemd-run --user does NOT help because the terminal guard also scans referenced scripts. Two ways through:
- Deferred systemd user timer (agent-side, use when the reply must land first). Write
~/.config/systemd/user/<name>.service + <name>.timer (OnActiveSec=30, Type=oneshot, ExecStart=/bin/systemctl --user restart hermes-gateway.service hermes-gateway-voice.service) with write_file, then systemctl --user daemon-reload && systemctl --user start <name>.timer. The start command passes the guard; systemd executes the restart in its own cgroup, outside the gateway's, so nothing SIGTERMs mid-flight. The 30s delay is what lets the current turn's reply reach the user before the restart drops it.
- Hand it to the user: `systemctl --user restart hermes-gateway.service
hermes-gateway-voice.service (/restart` in chat restarts the default profile only).
Until the restart, removed adapters keep retrying and spamming logs/gateway.log (e.g. Mattermost WS error: Cannot connect to host localhost:8065, Buzz: WebSocket disconnected ... HTTP 404). To verify what the gateway will load, run the config probe below in a fresh process. After the restart, confirm the live result with the startup block: awk 'substr($0,1,19) >= "<restart time>"' ~/.hermes/logs/gateway.log | grep -aE "✓ |running with".
Then hand the user systemctl --user restart hermes-gateway.service hermes-gateway-voice.service (/restart in chat restarts the default profile only) and confirm afterwards with grep "Gateway running with" ~/.hermes/logs/gateway.log | tail -1.
Common Issues & Fixes
Signal Processor Failing (Exit Code 217/USER)
Cause: Service file references check_signal_messages.sh but file is check_signal_messages.py
Fix:
Signal Responder Missing Script
Cause: run_auto_respond.sh doesn't exist
Fix:
Platform Not in send_message List
Cause: Platform not properly initialized or credentials missing
Fix: Check that the platform's token/credentials are in env vars or config files, then restart Hermes gateway.
Expected Results
Healthy Configuration
- All platforms appear in
send_message(action="list")output - Signal daemon:
active (running) - Signal processor:
activeor properly triggering on timer - Environment variables set (if used)
- Config file has platform sections
Unhealthy Indicators
- Platform missing from
send_messagelist - Signal services in
failedstate - Missing script files referenced in systemd services
- Empty or missing data directories
Example Output Format
Version History
v1.0 - Initial skill for multi-platform configuration auditing
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevops/platform-config-audit/SKILL.md
Popularity
- Repository stars
- 10
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jcrabapple/hermes-skills/platform-config-audit)