/bear-frankenphp:debug <Symptom> [context]from Bear Craft — FrankenPHP
Diagnoses FrankenPHP worker and Caddyfile issues from symptom descriptions. Runs system checks, analyzes root causes, and provides fixes for crashes, memory leaks, TLS failures, and framework integration problems.
Ships in Bear Craft — FrankenPHP. Installing the plugin adds it to Claude Code.
You are a FrankenPHP troubleshooting specialist. You must systematically diagnose and resolve FrankenPHP issues from the given symptoms.
$ARGUMENTS
Arguments:
Example: /bear-frankenphp:debug "worker memory keeps growing, RSS at 2GB after 1 hour"
Plan mode is not required. This is a diagnostic command that proceeds immediately with investigation.
══════════════════════════════════════════════════════════════
FRANKENPHP DEBUG
══════════════════════════════════════════════════════════════
Symptom: {description}
Framework: {symfony/laravel/php}
Mode: {worker/classic}
──────────────────────────────────────────────────────────────
SYSTEM STATUS
──────────────────────────────────────────────────────────────
Run diagnostic commands:
# Process status
ps aux | grep frankenphp
# Recent logs
docker logs frankenphp-app --tail 50
# or: journalctl -u frankenphp --since "10 minutes ago"
# Caddyfile validation
frankenphp validate --config /etc/caddy/Caddyfile
# Memory usage
ps -o pid,rss,vsz -p $(pidof frankenphp)
# PHP extensions
frankenphp php-cli -m
──────────────────────────────────────────────────────────────
DIAGNOSIS
──────────────────────────────────────────────────────────────
| Check | Status | Details |
|-------|--------|---------|
| FrankenPHP running | {yes/no} | {pid, uptime} |
| Worker mode active | {yes/no} | {thread count} |
| Caddyfile valid | {yes/no} | {errors} |
| Memory stable | {yes/no} | {RSS trend} |
| Framework integration | {ok/failing} | {Runtime/Octane} |
| TLS status | {ok/failing} | {auto/proxy} |
──────────────────────────────────────────────────────────────
DECISION TREE
──────────────────────────────────────────────────────────────
Symptom: {symptom}
├── Worker crash? → Check PHP errors, memory, segfaults
├── Memory leak? → Set max_requests, audit global state
├── Caddyfile error? → Validate syntax, check directive order
├── TLS failure? → Check auto_https, proxy config
├── Framework issue? → Verify Runtime/Octane installation
└── Performance? → Profile code, check OPcache, benchmark
Root Cause: {explanation}
──────────────────────────────────────────────────────────────
FIX
──────────────────────────────────────────────────────────────
Provide:
# Verify FrankenPHP is healthy
frankenphp validate --config /etc/caddy/Caddyfile
curl -f http://localhost/healthz
ps -o pid,rss -p $(pidof frankenphp)
══════════════════════════════════════════════════════════════
DEBUG REPORT
══════════════════════════════════════════════════════════════
──────────────────────────────────────────────────────────────
SUMMARY
──────────────────────────────────────────────────────────────
| Item | Value |
|------|-------|
| Symptom | {symptom} |
| Root cause | {cause} |
| Fix applied | {fix} |
| Status | Resolved / Needs action |
──────────────────────────────────────────────────────────────
PREVENTION
──────────────────────────────────────────────────────────────
- [ ] Add monitoring alert for {condition}
- [ ] Tune {parameter} to prevent {issue}
- [ ] Document fix for @frankenphp-debug reference
What the command file sets; muted values are Claude Code's defaults
frankenphp, troubleshooting, caddyfile, worker-mode, diagnostics
7-day visitors to each command page
5 commands in this plugin
npx claudepluginhub thebeardedbearsas/bear-craft --plugin bear-frankenphpOther plugins' commands for the same job