create-pm2-clj-config
Create new pm2-clj ecosystem configuration files from scratch or templates for PM2 process management
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create new pm2-clj ecosystem configuration files from scratch or templates for PM2 process management
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
This skill guides agents and developers through the Kanban workflow defined in `orgs/riatzukiza/promethean/docs/agile/process.md`.
Protocol to stop apology loops and focus on verified fixes.
Protocol to break out of repetitive, failing edit loops by forcing analysis over action.
Resolves Clojure namespace-path mismatches and classpath errors with definitive path conversion
Auto-fix Clojure delimiters and validate syntax with OpenCode tools.
Protocol to recover from Clojure/Script syntax errors, specifically bracket mismatches and EOF errors.
| name | create-pm2-clj-config |
| description | Create new pm2-clj ecosystem configuration files from scratch or templates for PM2 process management |
Create new pm2-clj ecosystem configuration files from scratch or templates.
pm2-process-management skill)ecosystem.config.* to pm2-clj (use migration workflow)Identify where the new config should live:
system/daemons/<group>/<name>/ecosystem.pm2.cljorgs/<org>/<repo>/ecosystem.pm2.cljorgs/<org>/<repo>/packages/<pkg>/ecosystem.pm2.cljCreate the EDN structure following pm2-clj conventions:
Basic template:
{:apps
[{:name "<process-name>"
:script "<script-name>"
:args "<arguments>"
:cwd "<working-directory>"
:interpreter "node"
:env {:NODE_ENV "development"
:PORT 3000}
:env_production {:NODE_ENV "production"
:PORT 3000}
:max_restarts 5
:restart_delay 2000
:autorestart true}]}
Multi-app template:
{:apps
[{:name "app-1"
:script "node"
:cwd "/path/to/app1"
:env {:PORT 3000}}
{:name "app-2"
:script "pnpm"
:args "dev"
:cwd "/path/to/app2"
:env {:PORT 3001}}]}
Add appropriate fields based on process type:
:watch - true/false for file watching:instances - cluster mode instances count:exec_mode - "fork" or "cluster":log_file, :error_file, :out_file - log paths:interpreter_args - Node.js flags:node_args - Alternative for Node.js flags:max_memory_restart - Memory limit before restartRun render to validate:
clobber render <new-config-path>/ecosystem.pm2.clj | jq '.'
Test the configuration:
clobber start <new-config-path>/ecosystem.pm2.clj
pm2 list
pm2 logs <process-name>
*.pm2.clj extension for all pm2-clj configs:env, :env_production):cwd to the actual working directory:interpreter for Node.js, leave empty for scripts like pnpmecosystem.pm2.clj file at appropriate location{:apps
[{:name "new-daemon"
:script "./dist/index.js"
:cwd "/home/err/devel/system/daemons/new-group/new-daemon"
:interpreter "node"
:env {:NODE_ENV "production"}
:max_restarts 5
:restart_delay 2000
:autorestart true}]}
{:apps
[{:name "api-service"
:script "node"
:args "./dist/index.js"
:cwd "/home/err/devel/orgs/riatzukiza/promethean/packages/api-service"
:interpreter "node"
:env {:PORT 8080
:NODE_ENV "development"}
:env_production {:PORT 8080
:NODE_ENV "production"}
:log_file "./logs/api-combined.log"
:error_file "./logs/api-error.log"
:out_file "./logs/api-out.log"}]}
{:apps
[{:name "dev-ui"
:script "vite"
:args "--port 3000 --host 0.0.0.0"
:cwd "/path/to/ui"
:interpreter "node"
:watch false
:env {:NODE_ENV "development"}}]}
pm2-process-management skill to start/stop the new processrender-pm2-clj-config skill to validate before startingworkspace-navigation skill to find existing examplesCheck the Skill Graph for the full workflow.