naiemk/vibed-infra/infra-update-agent

Claude Code and agent skill by naiemk/vibed-infra

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Machine-level serial Docker update queue for vibed-infra apps. Use when multiple products share one VPS and must not pull images in parallel; includes immediate GHCR pulls via GitHub Actions OIDC (no extra GitHub secrets).

Install

npx vskill@latest install naiemk/vibed-infra/infra-update-agent

SKILL.md

The same SKILL.md was published earlier as naiemk/vibed-infra/infra-update-agent.

Serial update agent

Why

Five apps with auto-update cron would each docker pull at once and overload the box. The update-agent is installed once; apps only enqueue jobs. The agent runs update-*.sh, which is digest-gated: pull if the registry digest changed, restart only if the running container is stale.

Layout

~/services/vibed-infra/update-agent/
queue/ processing/ done/ failed/
registry/{app}/{role}.json # image + installDir (written at wget install)
tokens/{app} # optional local curl; CI uses OIDC
agent.sh
enqueue.sh
webhook_server.py # 0.0.0.0:19200 — do not open this port publicly
lib/github_oidc.py
.env # WEBHOOK_PORT=19200

Override the directory with VIBED_UPDATE_AGENT (wins over VIBED_HOME).

Pull paths

git push main
→ reusable GHCR workflow builds/pushes :main
→ notify-vps-pull.py mints OIDC JWT (aud = webhook URL)
→ POST https://{host}/_vibed/hooks/ghcr (fallback http://{publicIp}/…)
→ nginx → webhook_server (verify GitHub JWKS)
→ enqueue matching registry entries (owner must appear in image name)
→ agent.sh → update-{role}.sh → docker pull + restart if digest changed
  • Immediate: default-branch image push. Caller job needs id-token: write. No GitHub Packages webhook and no VIBED_WEBHOOK_SECRET.
  • Cron backup: *_AUTO_UPDATE=1 enqueues on an interval; agent cron */5 drains the queue if notify was missed.
  • Manual: bash ~/services/vibed-infra/update-agent/enqueue.sh /path/to/api-install

Gateway HTTP (00-default.conf) and each HTTPS site proxy /_vibed/hooks/ to host.docker.internal:19200. Keep 19200 off the public firewall; only 80/443.

Product CI

yaml
jobs:
images:
uses: naiemk/vibed-infra/.github/workflows/docker-build-reusable.yml@main
permissions:
contents: read
packages: write
id-token: write
with:
dockerfile: app/api/Dockerfile
image: ghcr.io/${{ github.repository_owner }}/my-api

URLs come from gateway.publicIp + gateway.sites[].host already in config (dist/packageconfig.yaml webhook.url / fallbackUrl). Disable notify with notify: false.

For Playwright e2e, temp DB, and CI-only harnesses on the product side, see `infra-e2e-cicd`.

Local curl can send X-Vibed-Secret from tokens/{app} (compiled hash). Optional WEBHOOK_SECRET still works as an override.

Tests

  • npm test — openssl-signed JWT (same verifier) + enqueue under VIBED_UPDATE_AGENT
  • npm run test:oidc / CI job oidc-webhook-e2e — real GitHub OIDC mint against a local webhook

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/naiemk/vibed-infra/infra-update-agent/badge)](https://verified-skill.com/skills/naiemk/vibed-infra/infra-update-agent)

Something wrong with this skill or its page? Tell us.