Cfn vps

From masharratt/claude-flow-novice · View interactive version

Cfn vps is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Run builds, tests and long jobs on the user's remote server (VPS) from a local Claude Code session over ssh. Use when asked to build/test/run something 'on the server' or 'on the VPS', to sync a project there after pushing, or to start, check or read a long remote job (a build, render or test run th

How to use this skill

Skill file

cfn-vps

Purpose

Drive a remote Linux server from the local session: one-shot commands in a project folder, a safe git pull, and background jobs that keep running when the connection drops.

Setup (once per machine)

Usage

VPS="$HOME/.claude/skills/cfn-vps/vps.sh"
"$VPS" check                                   # reachable? OS, load
"$VPS" sync legion-engine                      # git pull --ff-only on the server
"$VPS" run legion-engine -- cargo test -p sim_core
"$VPS" job legion-engine build -- cargo build --release
"$VPS" status build                            # running | done, exit N
"$VPS" log build 100                           # last 100 lines
"$VPS" jobs                                    # every job and its state

Exit codes

Workflow: build here, build there

  1. Commit and push locally (the server pulls from GitHub; it never receives local files).
  2. sync <project>. Exit 4 means someone edited the server copy: report the listed files to the user, do not discard them.
  3. Short commands (under ~2 minutes): run. Anything longer: job, then poll status and read log. Jobs survive ssh drops and laptop sleep; they do not survive a server reboot (status says lost).

Rules

Dependencies

Tests

tests/test-cfn-vps.sh (ssh stubbed; includes a scan that fails if any IP, tailnet name, key or password appears in this folder).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.