Editor Session Quit
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install unity-mcp-editor-session-quitWhat this does: Save and quit an editor that a CLI session started (`unity-mcp-cli exec`, `open --headless`). Needs the session lease nonce; an editor the user opened is never closed. Used by `unity-mcp-cli close`.
Manual setup by platform
Claude Code
~/.claude/skills/unity-mcp-editor-session-quit/SKILL.md
Instructions
Editor Session / Quit
Save and quit an editor that a CLI session started.
Inputs
nonce— thenonceof the project's session lease (.ai-game-dev/session.json), which the CLI also passed to the editor asAIGD_SESSION_NONCE.
Behavior
Refuses unless this editor was started by a CLI session (AIGD_SESSION_OWNER=cli) with the same nonce. Otherwise answers right away, then saves changed scenes that have a file and changed assets and exits — as the idle shutdown does. Unlike the OS polite-quit signal it also reaches a headless (-batchmode) editor. Prefer unity-mcp-cli close --owned-only over calling it directly.
How to Call
unity-mcp-cli run-system-tool editor-session-quit --input '{
"nonce": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-system-tool editor-session-quit --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-system-tool editor-session-quit --input-file - <<'EOF' {"param": "value"} EOF
Troubleshooting
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Input
| Name | Type | Required | Description |
|---|---|---|---|
nonce | string | Yes | The nonce of the project's CLI session lease (.ai-game-dev/session.json). |
Input JSON Schema
{
"type": "object",
"properties": {
"nonce": {
"type": "string"
}
},
"required": [
"nonce"
]
}
Output
Output JSON Schema
{
"type": "object",
"properties": {
"result": {
"type": "string"
}
},
"required": [
"result"
]
}
Security
Reviews (0)
Related skills
Browse all →More from Unity MCP
View source →More Build skills
Browse category →Frequently asked questions about editor-session-quit
What does the editor-session-quit skill do?
Save and quit an editor that a CLI session started (`unity-mcp-cli exec`, `open --headless`). Needs the session lease nonce; an editor the user opened is never closed. Used by `unity-mcp-cli close`. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the editor-session-quit skill?
Run `npx @skills-hub-ai/cli install unity-mcp-editor-session-quit` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/unity-mcp-editor-session-quit/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does editor-session-quit work with?
editor-session-quit runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the editor-session-quit skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use editor-session-quit after installing it?
In Claude Code, type `/unity-mcp-editor-session-quit` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the editor-session-quit skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/unity-mcp-editor-session-quit)<a href="https://skills-hub.ai/skills/unity-mcp-editor-session-quit"><img src="https://skills-hub.ai/api/badges/skill/unity-mcp-editor-session-quit" alt="Install on Skills Hub"></a>More options in the badge docs.