Skip to content
Back to skills

Pause

ASecurity

Save session context for handoff to a future session

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added June 8, 2026
ai-agentsbashnodegit

Works with

  • claude code

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add Sh3rd3n/megazord --skill pause --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pause?

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

Security grade badge for Pause
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sh3rd3n-pause/badge)](https://www.skillsdirectory.com/skills/sh3rd3n-pause)

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
---
name: pause
description: Save session context for handoff to a future session
disable-model-invocation: false
---

# /mz:pause

Save current session context including progress, decisions, and modified files for seamless handoff to a future Claude Code session.

Reference `@skills/init/design-system.md` for all visual output formatting.

## Step 1: Display Banner

```
╔═══════════════════════════════════════════════╗
║  ⚡ MEGAZORD ► PAUSE                          ║
╚═══════════════════════════════════════════════╝
```

## Step 2: Load Context

Read `.planning/STATE.md` for current position and session continuity.

If STATE.md does not exist or `.planning/` directory is missing, display:

```
╔═══════════════════════════════════════════════╗
║  ✗ No Megazord project found                  ║
╠═══════════════════════════════════════════════╣
║  Run /mz:init to set up your project first.   ║
╚═══════════════════════════════════════════════╝
```

Then exit.

Read the current position data to build the pause description. Extract:
- Current phase number and name
- Current plan number
- Current status

## Step 3: Stash Modified Files

Build a description string: `"Phase {N}, Plan {M}, {status}"`

Run via Bash to stash any modified files:

```bash
node {plugin_path}/bin/megazord.mjs tools stash pause --description "Phase {N}, Plan {M}, {status}"
```

Where `{plugin_path}` is the absolute path to the Megazord plugin directory (the root of this repository where `package.json` lives).

Parse the JSON result which contains:
- `success`: boolean
- `stashRef`: string or null (the git stash reference if files were stashed)
- `message`: human-readable message

If `success` is false, display a warning but continue with the pause (stash failure should not block state updates).

## Step 4: Update STATE.md

Run via Bash to update session continuity:

```bash
node {plugin_path}/bin/megazord.mjs tools state update-session --stopped-at "Phase {N}, Plan {M}, {status}" --stash-ref "{ref_or_None}" --last-error "None"
```

Also update the status to "Paused" via:

```bash
node {plugin_path}/bin/megazord.mjs tools state update-position --status "Paused"
```

## Step 5: Display Confirmation

Display the pause confirmation in an action box:

```
╔═══════════════════════════════════════════════════════╗
║  Session Paused                                       ║
╠═══════════════════════════════════════════════════════╣
║  Phase: {phase} of {totalPhases} -- {phaseName}       ║
║  Plan:  {plan} of {totalPlans} -- {status}            ║
║  Stash: {stashRef} ({N} modified files)               ║
║  State: .planning/STATE.md updated                    ║
╚═══════════════════════════════════════════════════════╝
```

If no files were stashed, show `Stash: No modified files` instead.

End with:

```
To resume: `/mz:resume`
```

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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