Skip to content

PM2 Process Manager CLI

Lets an agent list, start, stop, restart and inspect PM2-managed Node.js processes and logs.

Stars
58,084
Licence
Apache-2.0
Files
1 file

What it does

This skill teaches an AI agent to control PM2, a tool that keeps Node.js programs running in the background on a server or computer. Once installed, the agent can list running processes, check their metrics, start, stop, restart or delete them, read their logs, and save or generate startup settings. It works by calling the PM2 command-line tool and returns results in JSON so the agent can read them.

Great for

  • Developers who run Node.js services with PM2 and want an agent to check on or restart them
  • Ops-minded people who want quick log views and status checks without memorising PM2 commands

Skip it if

  • Machines where you do not want an agent changing running services, since start, stop, delete and startup commands can affect live systems
  • Non-Node.js setups or people who do not use PM2, because the skill only wraps PM2

Try asking

  • “Show me all PM2 processes and their current status”
  • “Restart the process called api-server and then show its last 50 log lines”
  • “Give me the PM2 version and the CPU and memory metrics for all processes”
Step-by-step guide: how to use PM2 Process Manager CLIInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.

    skills.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip skills.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip skills.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask for read-only actions such as list, describe, metrics or view first, and confirm before stop, restart or delete
  • Always ask the agent to use the --json flag so output is easy to parse

What's inside

  • SKILL.md

Redistributed unmodified from HKUDS/CLI-Anything under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.