Skip to content
Back to skills

Deploy

ASecurity

Build Keryx and redeploy it to the user's Hermes host (rsync to /opt/keryx, rebuild the keryx container, verify /api/health). Use when the user says "redeploy", "deploy", or "merge and redeploy" after the merge is done.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsbashdockergitapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add rafreid/keryx --skill deploy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deploy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deploy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rafreid-deploy/badge)](https://www.skillsdirectory.com/skills/rafreid-deploy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deploy
description: Build Keryx and redeploy it to the user's Hermes host (rsync to /opt/keryx, rebuild the keryx container, verify /api/health). Use when the user says "redeploy", "deploy", or "merge and redeploy" after the merge is done.
---

# Deploy

Production is the Hermes host `root@192.168.1.100`. Keryx lives flat in `/opt/keryx` and is built by
the Hermes compose project in `/opt/hermes` (`docker compose up -d --build keryx`).

## Preconditions

- Be on `main` with the merged changes pulled (`git pull --ff-only`). Deploying a branch is wrong
  unless the user explicitly asks for it.
- `.claude/skills/check/check.sh` passed, or at least `npm run build` just ran, because the
  container copies `backend/static`.

## Run

```bash
.claude/skills/deploy/deploy.sh
```

The script:

1. Reads the expected version from `backend/app.py`.
2. Builds the front end.
3. Rsyncs `backend/` to `/opt/keryx` (deleting removed files, excluding `.venv`, caches, tests, logs).
4. Rebuilds and restarts the `keryx` service.
5. Polls `/api/health` on the host until it answers, then checks the reported version matches.

Override `KERYX_HOST`, `KERYX_REMOTE_DIR` or `KERYX_COMPOSE_DIR` in the environment if the host
layout changes. The script never touches Hermes' data directory.

## Report

State the version reported by health, and whether it is a parity rebuild (no app change since the
last deploy) or a real update. If health never answers, show the container logs:

```bash
ssh root@192.168.1.100 'docker logs --tail 50 keryx'
```

Files in this skill

  • SKILL.md1.5 KB
  • deploy.sh1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.