{
  "schemaVersion": "1.0",
  "item": {
    "slug": "pm2",
    "name": "PM2 Process Manager",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/asteinberger/pm2",
    "canonicalUrl": "https://clawhub.ai/asteinberger/pm2",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/pm2",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pm2",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/pm2"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/pm2",
    "agentPageUrl": "https://openagent3.xyz/skills/pm2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pm2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pm2/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "PM2 Process Manager",
        "body": "Production process manager for Node.js with built-in load balancer."
      },
      {
        "title": "Install",
        "body": "npm install -g pm2"
      },
      {
        "title": "Quick Start",
        "body": "# Start an app\npm2 start app.js\npm2 start npm --name \"my-app\" -- start\npm2 start \"npm run start\" --name my-app\n\n# With specific port/env\npm2 start npm --name \"my-app\" -- start -- --port 3000\nPORT=3000 pm2 start npm --name \"my-app\" -- start"
      },
      {
        "title": "Common Commands",
        "body": "# List processes\npm2 list\npm2 ls\n\n# Logs\npm2 logs              # All logs\npm2 logs my-app       # Specific app\npm2 logs --lines 100  # Last 100 lines\n\n# Control\npm2 restart my-app\npm2 stop my-app\npm2 delete my-app\npm2 reload my-app     # Zero-downtime reload\n\n# Info\npm2 show my-app\npm2 monit             # Real-time monitor"
      },
      {
        "title": "Auto-Start on Boot",
        "body": "# Save current process list\npm2 save\n\n# Generate startup script (run the output command with sudo)\npm2 startup\n\n# Example output - run this:\n# sudo env PATH=$PATH:/opt/homebrew/bin pm2 startup launchd -u username --hp /Users/username"
      },
      {
        "title": "Next.js / Production Builds",
        "body": "# Build first\nnpm run build\n\n# Start production server\npm2 start npm --name \"my-app\" -- start\n\n# Or with ecosystem file\npm2 start ecosystem.config.js"
      },
      {
        "title": "Ecosystem File (ecosystem.config.js)",
        "body": "module.exports = {\n  apps: [{\n    name: 'my-app',\n    script: 'npm',\n    args: 'start',\n    cwd: '/path/to/app',\n    env: {\n      NODE_ENV: 'production',\n      PORT: 3000\n    }\n  }]\n}"
      },
      {
        "title": "Useful Flags",
        "body": "FlagDescription--nameProcess name--watchRestart on file changes-i maxCluster mode (all CPUs)--max-memory-restart 200MAuto-restart on memory limit--cron \"0 * * * *\"Scheduled restart"
      },
      {
        "title": "Cleanup",
        "body": "pm2 delete all        # Remove all processes\npm2 kill              # Kill PM2 daemon\npm2 unstartup         # Remove startup script"
      }
    ],
    "body": "PM2 Process Manager\n\nProduction process manager for Node.js with built-in load balancer.\n\nInstall\nnpm install -g pm2\n\nQuick Start\n# Start an app\npm2 start app.js\npm2 start npm --name \"my-app\" -- start\npm2 start \"npm run start\" --name my-app\n\n# With specific port/env\npm2 start npm --name \"my-app\" -- start -- --port 3000\nPORT=3000 pm2 start npm --name \"my-app\" -- start\n\nCommon Commands\n# List processes\npm2 list\npm2 ls\n\n# Logs\npm2 logs              # All logs\npm2 logs my-app       # Specific app\npm2 logs --lines 100  # Last 100 lines\n\n# Control\npm2 restart my-app\npm2 stop my-app\npm2 delete my-app\npm2 reload my-app     # Zero-downtime reload\n\n# Info\npm2 show my-app\npm2 monit             # Real-time monitor\n\nAuto-Start on Boot\n# Save current process list\npm2 save\n\n# Generate startup script (run the output command with sudo)\npm2 startup\n\n# Example output - run this:\n# sudo env PATH=$PATH:/opt/homebrew/bin pm2 startup launchd -u username --hp /Users/username\n\nNext.js / Production Builds\n# Build first\nnpm run build\n\n# Start production server\npm2 start npm --name \"my-app\" -- start\n\n# Or with ecosystem file\npm2 start ecosystem.config.js\n\nEcosystem File (ecosystem.config.js)\nmodule.exports = {\n  apps: [{\n    name: 'my-app',\n    script: 'npm',\n    args: 'start',\n    cwd: '/path/to/app',\n    env: {\n      NODE_ENV: 'production',\n      PORT: 3000\n    }\n  }]\n}\n\nUseful Flags\nFlag\tDescription\n--name\tProcess name\n--watch\tRestart on file changes\n-i max\tCluster mode (all CPUs)\n--max-memory-restart 200M\tAuto-restart on memory limit\n--cron \"0 * * * *\"\tScheduled restart\nCleanup\npm2 delete all        # Remove all processes\npm2 kill              # Kill PM2 daemon\npm2 unstartup         # Remove startup script"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/asteinberger/pm2",
    "publisherUrl": "https://clawhub.ai/asteinberger/pm2",
    "owner": "asteinberger",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/pm2",
    "downloadUrl": "https://openagent3.xyz/downloads/pm2",
    "agentUrl": "https://openagent3.xyz/skills/pm2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pm2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pm2/agent.md"
  }
}