name: pi-processes description: Manage long-running commands in the background with the process tool. Use when a task needs a dev server, test watcher, build watcher, local API, or log tail to keep running while the conversation continues.
pi-processes
Use this skill when work needs a long-running command to stay alive while Pi continues with other steps.
Prefer this workflow
- Use the
processtool for long-running commands. - Avoid shell background patterns when the process tool fits.
- Give processes stable, clear names.
- Continue the task after starting a process instead of waiting on it.
- Inspect output or log files only when needed.
- Kill and clear processes when they are no longer useful.
Good fits
pnpm devnpm run serverpnpm test --watchtail -f <logfile>- local preview or build watchers
Typical flow
- Start the long-running command with a clear name.
- Continue the main task.
- Inspect
outputorlogsif something needs attention. - Use alert flags when success or failure should trigger a follow-up turn.
- Kill and clear the process when done.
Notes
- Users can inspect and manage running processes from
/ps. - Use
writewhen a process expects stdin input. - Use
outputfor a quick tail andlogswhen the full log files are more useful.