Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
igorwarzocha avatar

Background Process

  • 2 installs
  • 7 repo stars
  • Updated February 3, 2026
  • igorwarzocha/opencode-background-process

Housekeeping guidance for launching background processes cleanly: avoiding stale processes and port conflicts, verifying startup, and choosing signals.

About

A housekeeping guide for using background-process tools, covering keeping the process list clean, verifying startup, using meaningful IDs, and choosing the right kill signal. A developer uses it before launching a dev server or long-running background process to avoid stale processes and port conflicts.

  • Housekeeping to avoid stale processes and port conflicts
  • Guides startup verification, meaningful IDs, and signal choice

Background Process by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,839 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/igorwarzocha/opencode-background-process --skill background-process

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars7
Last updatedFebruary 3, 2026
Repositoryigorwarzocha/opencode-background-process

What it does

Housekeeping guidance for launching background processes cleanly: avoiding stale processes and port conflicts, verifying startup, and choosing signals.

Files

SKILL.mdMarkdownGitHub ↗

Background Process Best Practices

<housekeeping>

Keep the Process List Clean

  • Kill processes when done - don't leave stale servers running
  • Use background_process_cleanup periodically to remove exited processes
  • Before launching, check background_process_list to avoid duplicates
  • Use remove: true when killing to clean up in one step

Verify Startup

After launching, wait before reading output - servers need time to start: 1. Launch the process 2. Sleep at least 30 seconds (use bash sleep or just wait before next action) 3. background_process_read to confirm startup 4. If output is empty or incomplete, wait longer and re-read

Look for: "listening on", "ready", "started" - or errors like port conflicts

Use Meaningful IDs

When running multiple processes, set custom id for clarity:

  • id: "frontend" and id: "backend" instead of vite-1, node-2
  • Makes kill/read commands unambiguous

</housekeeping>

<signals>

When to Use Each Signal

SignalUse When
SIGTERM (default)Normal shutdown - gives process time to cleanup
SIGINTSimulate Ctrl+C - some processes handle this differently
SIGKILLProcess won't die with SIGTERM - force kill

</signals>

<gotchas>

  • Processes persist for the session - they don't auto-cleanup on conversation end
  • Output buffer is limited (500 lines default) - increase maxOutputLines for verbose builds
  • stderr is prefixed with [stderr] in output - helps distinguish errors

</gotchas>

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.