plugins/agentic-behavior/skills/restart/SKILL.md
Restart the Claude Code session by gracefully exiting so the launcher loop restarts it. Use when you need to pick up config changes, plugin updates, or env var changes. Requires a launcher script (e.g., run-agent.sh) that restarts Claude after exit.
npx skillsauth add nsheaps/ai-mktpl restartInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill enables Claude to restart its own session by performing a graceful exit (SIGINT), relying on the launcher script to restart the process.
Restart is simply an exit with the expectation that a launcher script will restart Claude:
/exit (no uncommitted changes, no unpushed commits)run-agent.sh) detects the exit and starts a new Claude sessionwhile true loop)Use the exit script -- restart is just exit with launcher support:
${CLAUDE_PLUGIN_ROOT}/bin/exit.sh
Before restarting, you may want to save state so the new session can resume:
.claude/tmp/continuation-prompt.md.claude/scratch/tasks.md with current progressThe launcher script or SessionStart hook can then read the continuation prompt on startup.
| Aspect | /exit | /restart |
| ------------------ | --------------- | ------------------------ |
| Intent | End the session | Restart with fresh state |
| Mechanism | SIGINT | SIGINT (same) |
| Launcher behavior | Session ends | Launcher restarts Claude |
| State preservation | Not expected | Save continuation prompt |
| Git validation | Required | Required |
/exit -- graceful session exit without restartrestart skill in the project repo -- may contain project-specific restart procedurestools
Reference material for Claude Code internals — the on-disk layout under ~/.claude and project-scope .claude, the plugin cache, session-env propagation, and the full hook lifecycle. Auto-recall when working on Claude-Code-related tasks: writing or debugging hooks, authoring plugins, inspecting session state, troubleshooting why an env var is or isn't visible to a Bash tool call, or when paths under ~/.claude or ~/.claude/plugins/ come up.
development
Manage GitHub App installation tokens in Claude Code sessions. Use when tokens expire, auth errors occur in long-running sessions, or when setting up GitHub App credentials for agent teams. <example>my github token expired</example> <example>refresh the github app token</example> <example>check token status</example> <example>set up github app authentication for this session</example>
tools
Auto-detect project formatting tools and configure edit-utils settings
tools
Use this skill when the user asks about 1Password, secrets management, retrieving credentials, using op CLI, service accounts, secret references, vault operations, or any task involving the 1Password CLI (op). Also use when needing to inject secrets into environment variables, read passwords or API keys from 1Password, or manage 1Password items from the command line.