pm2-process-management
Skill: PM2 Process Management
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Skill: PM2 Process Management
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Never run Docker containers as root. Enforce USER directive in Dockerfiles and user: in compose files. Database images are the only exception.
Handle packages migrating between pnpm workspaces. Clean stale root copies, update workspace configs, fix broken workspace:* references.
Recover lost source files from pi session history when files were deleted but never committed to git.
Improve the Hormuz clock model through new signal classes, schema changes, uncertainty modeling, and better rendering or branch logic
Revise fork-tax protocols so they assume concurrent agents by default in shared workspaces, forbid destructive repo-wide cleanup of unrelated dirt, and require path-scoped staging plus explicit blocker recording.
Persist the full working state into git (commit + tag + push + manifest artifacts) as a deterministic handoff snapshot. Use when the user requests Π / fork tax / full dump.
| name | pm2-process-management |
| description | Skill: PM2 Process Management |
Start, stop, restart, and manage PM2 processes using the ecosystem-based configuration system.
ecosystems/create-pm2-clj-config skill)This workspace uses an ecosystem-based approach to process management:
ecosystems/*.cljs using clobber.macro DSLnpx shadow-cljs release clobber compiles to .clobber/index.cjspm2 start ecosystem.config.cjs runs the compiled configclobber.macro/defappecosystems/
├── index.cljs # Main entry - requires all ecosystem files
├── ecosystem.cljs # Duck/OpenCode processes
└── cephalon.cljs # Cephalon "always-running mind" process
.clobber/
└── index.cjs # Compiled PM2 config (generated)
ecosystem.config.cjs # PM2 entry point (requires .clobber/index.cjs)
ecosystem.config.cjs)npx shadow-cljs release clobber
This compiles ecosystems/*.cljs → .clobber/index.cjs
pm2 start ecosystem.config.cjs
# For development services
pm2 start ecosystem.config.cjs
# Check what's running
pm2 list
# Stop specific process by name
pm2 stop <app-name>
# Stop all processes
pm2 stop all
# Delete from PM2 (fully remove)
pm2 delete <app-name>
# Restart specific process
pm2 restart <app-name>
# Restart all
pm2 restart all
# Graceful reload (zero-downtime)
pm2 reload <app-name>
# View logs for specific app
pm2 logs <app-name>
# View all logs with real-time updates
pm2 monit
# View last 100 lines
pm2 logs <app-name> --lines 100
# List all processes
pm2 list
# or
pm2 status
# Show detailed metrics
pm2 describe <app-name>
# 1. Compile ecosystems
npx shadow-cljs release clobber
# 2. Start all processes
pm2 start ecosystem.config.cjs
# 3. Monitor
pm2 monit
# 4. Restart specific process after changes
pm2 restart <app-name>
# 5. Stop all when done
pm2 delete all
pm2 list # Quick status
pm2 logs --lines 50 --nostream # Recent logs
pm2 describe <app-name> # Details + metrics
# Check for errors
pm2 logs --lines 100 | grep -i error
# Restart with verbose logging
pm2 restart <app-name> --verbose
# Check process environment
pm2 env <app-name>
Current ecosystem includes:
devel/opencode - OpenCode development serverduck-ui - UI service (Clojure)cephalon - "Always-running mind" with vector memoryNote: duck-io and duck-brain were removed as the source repositories don't exist yet. These can be added when cephalon-clj-discord-io and cephalon-clj-brain are implemented.
The following formats are deprecated:
ecosystem.pm2.edn → Use ecosystems/*.cljspm2-clj CLI → Use npx shadow-cljs release clobberecosystem.config.* source files → Use ecosystem.config.cjs (generated)npx shadow-cljs release clobber before startingclobber.macro/defapppm2 list to see currently running processes and their namespm2 monit provides real-time monitoring dashboard.clobber/index.cjs to see compiled outputcreate-pm2-clj-config - Create new ecosystem configuration filesrender-pm2-clj-config - Validate configs without startingworkspace-navigation - Locate ecosystem files