Skip to content
Back to skills

Pm Stop

ASecurity

Stop the PM orchestration loop and optionally shut down workers. Use when: user runs /pm:stop, wants to 'stop the PM', 'shut down workers', or 'halt orchestration'.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
ai-agentsbashgit

Works with

  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add hunterg325/claude-code-pm --skill pm-stop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pm Stop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pm Stop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hunterg325-pm-stop/badge)](https://www.skillsdirectory.com/skills/hunterg325-pm-stop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Stop the PM orchestration loop and optionally shut down workers. Use when: user runs /pm:stop, wants to 'stop the PM', 'shut down workers', or 'halt orchestration'."
allowed-tools:
  - Read
  - Write
  - Bash
  - mcp__claude-peers__send_message
  - mcp__claude-peers__list_peers
---

# /pm:stop — Graceful Shutdown

## Shutdown Sequence

1. Read `.claude/pm-state.json` for active state
2. For each active worker:
   - Send `abort` message via claude-peers: `{ "type": "abort", "task_id": "{id}", "reason": "PM shutting down" }`
   - Log the abort
3. For each active VO agent:
   - Send abort message
4. Wait up to 30 seconds for workers to acknowledge (responses arrive as <channel> events)
5. Update pm-state.json:
   - Move active workers to a `shutdown_pending` state
   - Record shutdown timestamp
6. Report summary:
   - Workers notified: N
   - Workers acknowledged: N
   - Tasks that were in progress (may need re-queue on next /pm:start)

## Optional Cleanup

Ask user: "Would you like to clean up orphaned worktrees? This removes worktrees for tasks that haven't been merged."

If yes:
- Run `git worktree list`
- Cross-reference with merged branches
- Remove unmerged worktrees with confirmation for each

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.