PM2 Init Skill

SkillDatabases & data

Auto-analyze project and generate PM2 process manager configuration for dev services (frontend, backend, database).

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the PM2 Init Skill skill

What this skill tells your AI

The instructions your AI receives, as published by luohaothu/everything-codex in skills/pm2/SKILL.md and read by ahel’s review.

Auto-analyze project and generate PM2 service configuration.

Usage

/pm2 init              # Scan project and generate config
/pm2 start             # Start all services
/pm2 stop              # Stop all services
/pm2 status            # View service status

Service Detection

TypeDetectionDefault Port
Vitevite.config.*5173
Next.jsnext.config.*3000
Nuxtnuxt.config.*3000
Express/Nodeserver/backend/api + package.json3000
FastAPI/Flaskrequirements.txt / pyproject.toml8000
Gogo.mod / main.go8080

Generated Files

project/
├── ecosystem.config.cjs     # PM2 config
└── {backend}/start.cjs      # Python wrapper (if applicable)

PM2 Commands

pm2 start ecosystem.config.cjs   # First time
pm2 start all                    # After first time
pm2 stop all / pm2 restart all
pm2 logs / pm2 status / pm2 monit
pm2 save                         # Save process list
pm2 resurrect                    # Restore saved list

Key Rules

  1. Config file must use .cjs extension
  2. Node.js: specify bin path directly + interpreter
  3. Python: use Node.js wrapper script
  4. Port detection: user specified > .env > config > default

Signals

GitHub stars
24
Forks
5
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
pm2
Source
github.com/luohaothu/everything-codex
PM2 Init Skill: Skill · ahel