N8n cli from launchd

From 8Dvibes/n8n-cli · View interactive version

N8n cli from launchd is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Convert macOS launchd plists into equivalent n8n workflows. Reads LaunchAgents and LaunchDaemons. macOS sibling to /n8n-cli-from-cron. Use when migrating off launchd onto n8n for observability.

How to use this skill

Skill file

/n8n-cli-from-launchd — macOS launchd plists → n8n Workflows

macOS uses launchd, not cron, for scheduled tasks. This skill reads launchd property list (plist) files and converts each scheduled job into an equivalent n8n workflow.

Procedure

  1. Discover launchd jobs:
  1. Parse each plist:
  1. Translate the schedule to n8n's Schedule Trigger:
  1. Detect command intent (same logic as /n8n-cli-from-cron):
  1. Translate environment variables:

"⚠️ Found likely secrets in plist env vars: API_KEY, GRAND_CENTRAL_API_KEY, ... — these should be moved to n8n credentials, not workflow params"

  1. Add observability:
  1. Generate one workflow per launchd job:
  1. Import (only after approval):
  1. Suggest decommissioning the launchd jobs:

1. Verify each n8n workflow runs correctly (manual trigger first, then activate)

2. Run both the launchd version AND the n8n version in parallel for at least 1 day

3. Compare outputs to confirm parity

4. Then unload the launchd job: launchctl unload ~/Library/LaunchAgents/<label>.plist

5. Move the plist to ~/.launchd-archive/ instead of deleting (recoverable)

Output format

Tips

Companion: hybrid mode

For complex launchd jobs (multi-stage shell pipelines, jobs that read launchd-specific signals), the right answer might be: keep them in launchd, but have n8n monitor them via a heartbeat workflow that checks launchctl print output. Surface this option for jobs that don't translate cleanly.

Example end-to-end

User asks: "migrate all my AI Build Lab automations from launchd to n8n"

  1. Scan ~/Library/LaunchAgents/com.aibuildlab.*.plist
  2. Parse each one
  3. For each:
  1. Build workflow JSONs
  2. Show summary table, get approval
  3. Bulk import as inactive workflows
  4. Walk user through verification + decommission flow
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.