/hermitd-laravel-forge:forge-logsfrom hermitd-laravel-forge
Reads Laravel Forge deployment logs, server logs, site application/nginx logs, and background process logs. Includes a triage mode that bundles recent logs with deployment history for rapid incident analysis.
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.
Read deployment and server logs from Forge. Every log command prints {"log":"..."}, or {"status":"none","reason":...} when there is nothing to read (no_deployments, no_log, no_process).
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php logs <server> <site>
Fetches the most recent deployment and returns its full log.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php deploy-log <server> <site> <deploy-id>
Use deploy-history first to find the deployment ID.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php server-log <server> <key>
Common keys: php, mysql, cron, daemon, nginx-error, nginx-access. Nginx keys are hyphenated; nginx_error (underscored) returns a 404. The PHP-FPM log key is dot-version notation matching the server's installed PHP (php-8.3, not php); passing the literal php key auto-resolves it against the server's php_version. mysql/cron/daemon may 404 outright on servers with a custom, non-Forge-provisioned install of that service (no Forge-tracked log path), so a 404 there isn't necessarily a wrong key. A 404 prints no_log with the resolved key as log_name. Key list depends on the server's installed services.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php site-log <server> <site> <type>
<type> is one of application (the Laravel app log), nginx-access, nginx-error. Application and access logs leak PII and tokens more readily than deploy logs — the Secret hygiene rules below apply with extra force.
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php background-process-log <server> <process-id>
The log path for apps that run as a Forge Background Process instead of PHP-FPM (Node apps, queue workers, custom daemons). server-log does not cover these. Find the process ID first:
echo '[<server-id>]' | php ${CLAUDE_PLUGIN_ROOT}/php/forge.php call backgroundProcesses
When the operator says something like "what's wrong with myapp.com" or "triage the failing site", bundle context automatically:
php ${CLAUDE_PLUGIN_ROOT}/php/forge.php site <server> <site> — confirm the site is reachable and check status fields.php ${CLAUDE_PLUGIN_ROOT}/php/forge.php deploy-history <server> <site> — surface up to 20 recent deployments and their statuses.php ${CLAUDE_PLUGIN_ROOT}/php/forge.php logs <server> <site> — fetch the latest deployment log.Deployment and server logs may contain env dumps, database credentials, and API keys. Apply these rules to every log-reading flow:
compiled/ or raw/ — scrub any credential values to [REDACTED] before persistence.<server> and <site> accept name, hostname, or numeric ID.forge-deploy, the deploy-incident artifact (written by forge-deploy when its watch Monitor sees a failed terminal status) already contains the scrubbed log tail — check compiled/deploy-incident-<site>-<date>.md before re-fetching.commandOutput, scheduledJobOutput, siteScheduledJobOutput, serverEventOutput) are reachable via call <method> with JSON args on stdin; their content comes back under result.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
forge-logs, deployment-logs, server-logs, incident-triage, laravel-forge
npx claudepluginhub gtapps/hermitd --plugin hermitd-laravel-forge6 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-serversOther plugins' skills for the same job