/hermitd-laravel-forge:forge-serversfrom hermitd-laravel-forge
Lists, inspects, and reboots Laravel Forge servers with a surface-then-approve workflow for reboots. Also supports creating monitors via preview-execute pattern.
Ships in hermitd-laravel-forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
List and inspect servers in the Forge estate, or reboot a server with approval.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php servers
Output: {"servers":[...]}, each entry with id, name, and ip_address.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php server <server>
<server> can be a server name, IP address, or numeric ID. An unmatched or ambiguous name returns status no_match or ambiguous with choices to pick from.
Step 1 — Preview (read-only, no action taken):
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php preview-reboot <server>
Resolves <server> to the canonical record and prints {"server":{"id","name","ip_address"}}. No mutation.
Step 2: Relay to operator. Show the canonical target.
Step 3: Execute.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php server-reboot <server>
A wrong reboot causes an outage. Never auto-confirm. Never skip the preview step.
Monitors have no curated command — they use the generic write path, which is how every SDK write other than deploy and server-reboot works.
List what exists:
echo '[<server-id>]' | php ${CLAUDE_PLUGIN_ROOT}/php/forge.php call monitors
Step 1 — Preview. Captures the exact HTTP request without sending it and stores it as a single-use plan:
echo '[<server-id>, {"type":"cpu_load","operator":"gte","threshold":90,"notify":"[email protected]"}]' \
| php ${CLAUDE_PLUGIN_ROOT}/php/forge.php preview createMonitor
Prints plan_id, expires_at, verb and path (POST /orgs/<org>/servers/<id>/monitors), the body payload, and the canonical server. A status of denied means policy blocks the method: relay its reason and lift entries to the operator, who alone can edit .env.
Step 2: Relay. Show the canonical server and payload.
Step 3: Execute.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php execute <plan-id>
It prints {"result": ...}, or OK when the write returns nothing. Plans are single use and expire 15 minutes after the preview. If approval arrives later, the plan is gone and execute returns {"status":"refused","reason":"missing"} (or expired, mismatch): re-run the preview and relay the new one. Do not treat that as an error to work around: it is the mechanism refusing to fire something the operator did not just look at.
Payload fields, for reference only — there is no client-side validation, so a bad payload comes back as a Forge 422 with per-field errors: type is one of cpu_load, disk, free_memory, used_memory; operator is gte or lte; threshold is a number; minutes is optional; notify is an email address.
Every SDK method is reachable through call (reads) and preview/execute (writes), minus two shipped deny tiers: secrets (anything returning credential material) and destructive (anything whose captured HTTP verb is DELETE). To see the effective state:
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php policy
It prints reachable (installed endpoint methods), each shipped tier's state (denied or lifted), the .env lifts in env_lifts, project_deny, and any warnings.
Only the operator can widen this, by editing .env — which the agent cannot do:
FORGE_POLICY_ALLOW_TIERS=destructive lifts a whole tierFORGE_POLICY_ALLOW=deleteMonitor lifts named methods onlyA project may also list denials in .hermit/forge-policy.json ({"deny": ["firewallRule*"]}). Honour them — but never describe them to the operator as a security boundary, because this hermit is allowed to edit that file. It is a note, not a wall.
${CLAUDE_PLUGIN_ROOT} is substituted in installed mode. In --plugin-dir dev mode, use the absolute path./hermitd-laravel-forge:forge-logs./hermitd-laravel-forge:forge-sites.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
forge, server-management, reboot, monitors, approval-workflow
6 skills in this plugin
/forge-deployDeploy a site on Laravel Forge. Always surface-then-approve (preview-deploy first, then deploy with native approval). Watches via the hermit /watch registry and writes a deploy-incident on failure. Triggers on "deploy", "trigger deployment", "deploy site", "run deployment", "check deployment status"./forge-failed-deploysRoutine check: scans the Forge estate for sites whose latest deployment is in a failure state. Runs daily via its own routine; findings are routed through the proposal pipeline as Evidence Source: scheduled-check/forge-failed-deploys./forge-logsRead site deployment logs, server logs, site application/nginx logs, background process logs, and specific deployment logs from Laravel Forge. Includes a triage mode that bundles recent logs with deployment history for rapid incident analysis. Triggers on "show logs", "read logs", "deployment log", "server log", "what happened to the deployment", "triage failing site"./forge-sitesList and inspect sites on Laravel Forge servers. Triggers on "list sites", "show site", "site detail", "what sites are on server X"./hatchOne-time Laravel Forge hermit setup. Installs the Forge PHP SDK, verifies credentials, and wires the estate scan into config.json. Run once per project after /hermitd:hatch.npx claudepluginhub gtapps/hermitd --plugin hermitd-laravel-forgeOther plugins' skills for the same job