create-pm2-ecosystem

Generate PM2 ecosystem files and register services in ecosystems/index.cljs.

6|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/open-hax/opencode-skills --skill create-pm2-ecosystem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pm2-ecosystem
Source: https://github.com/open-hax/opencode-skills/tree/main/.opencode/skills/create-pm2-ecosystem
Command: npx skills add https://github.com/open-hax/opencode-skills --skill create-pm2-ecosystem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation and wiring of PM2 ecosystem configurations for new services in a multi-service workspace, reducing manual setup time and errors.

Core Features & Use Cases

  • Automated ecosystem file generation: Create service-specific PM2 ecosystem files and ensure consistent structure.
  • Index registration: Automatically update ecosystems/index.cljs to include new services.
  • Build & start readiness: Compile ecosystems to build artifacts and prepare PM2 for deployment.

Quick Start

Create a new ecosystems/<service-name>.cljs file with a clobber defapp block, register it in ecosystems/index.cljs, and run the build to generate ecosystem.config.

Frequently Asked Questions about create-pm2-ecosystem

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PM2 ecosystem file generation for a new service?

Automating PM2 ecosystem file generation creates service-specific configurations with a clobber defapp block and registers them in the index. It ensures consistent structure and reduces manual setup errors across multi-service workspaces.

What is PM2 ecosystem configuration and when do I need it for multi-service workspaces?

PM2 ecosystem configuration is a structured file defining process management for services. You need it in multi-service workspaces where each service contributes its own ecosystem file and requires centralized index registration and compilation.

How do I register a new service in the PM2 ecosystems index file?

Registering a new service in the PM2 ecosystems index requires updating ecosystems/index.cljs to include the new entry. Automated wiring tools can apply this registration alongside ecosystem file generation and compilation to maintain build readiness.

Does PM2 ecosystem automation work with defapp options and build artifacts?

Yes, PM2 ecosystem automation ensures defapp options are included during file generation. It coordinates with ecosystems/index.cljs and outputs the new ecosystem file, updated index, and compiled build artifacts for deployment readiness.

What are the limitations of automating PM2 ecosystem setup for new services?

Automating PM2 ecosystem setup is limited to multi-service workspaces requiring index registration and compilation. It specifically applies to configurations using clobber defapp blocks and outputs build artifacts, meaning it may not suit workspaces outside this structure.