Automated summary
Halts an active game session, updates game state, and cleans up temporary files.
Strengths
- Provides a clean shutdown of a running game.
- Saves a partial game log for later analysis.
- Cleans up state files and locks to prevent corruption.
Limitations
- Assumes a specific directory structure for game files.
- May not handle concurrent games well if multiple are active.
- Relies on the presence of a game-state.json file with a gameActive flag.
Use when you need to manually stop a game that is running or glitching.
Do not use if you want to pause and resume a game later, as it marks the game as permanently stopped.
Security analysis
CautionThe skill uses bash commands to clean up game state files, including rm -rf on a subdirectory. All paths are constructed from a game name, preventing escape outside the games/ directory. No network access, no exfiltration, and no code injection risk. However, the destructive nature of rm warrants caution.
- •Uses Bash to delete files and recursively remove directories under a game-specific path. While scoped, this is a powerful operation.
Examples
Please stop the game called 'my-rpg' immediately.I need to halt the current game session. Clean it up properly.name: stop-game description: Emergency halt of active game session. Use when user wants to stop a running game, halt playtest, cancel game simulation, or clean up game state. argument-hint: [game-name] allowed-tools: Read, Write, Bash, Glob disable-model-invocation: true
Stop Game - Emergency Halt
Emergency halt an active game session and clean up state files.
Arguments
$0(optional): Game name to stop. If omitted, finds the active game.
Implementation Steps
1. Find Active Game
let gameName = "$0";
if (!gameName) {
// Find active game by checking for active game-state files
const stateFiles = await Glob("games/*/state/game-state.json");
for (const stateFile of stateFiles) {
const state = JSON.parse(await Read(stateFile));
if (state.gameActive) {
gameName = stateFile.split('/')[1];
break;
}
}
if (!gameName) {
console.log("No active games found");
return;
}
}
2. Read Current State
const statePath = `games/${gameName}/state/game-state.json`;
const gameState = JSON.parse(await Read(statePath));
if (!gameState.gameActive) {
console.log(`Game ${gameName} is not active`);
return;
}
3. Mark Game as Stopped
gameState.gameActive = false;
gameState.gameStatus = "stopped";
gameState.stoppedAt = new Date().toISOString();
gameState.stoppedReason = "Manual stop by user";
await Write(statePath, JSON.stringify(gameState, null, 2));
4. Write Partial Log
Save incomplete game log for analysis:
const logTimestamp = new Date().toISOString().replace(/[:.]/g, '-');
const partialLog = {
fileType: "game-log",
status: "stopped",
game: gameName,
gameId: gameState.gameId,
stoppedAt: gameState.stoppedAt,
completedTurns: gameState.turnNumber,
finalState: gameState
};
await Write(
`games/${gameName}/logs/game-stopped-${logTimestamp}.json`,
JSON.stringify(partialLog, null, 2)
);
5. Clean Up State Files
rm -f games/${gameName}/state/turn-signal.json
rm -f games/${gameName}/state/player-actions/*.json
rm -rf games/${gameName}/state/.locks/*
6. Report to User
Display:
- Game name and ID
- Turn number when stopped
- Final player states
- Location of partial log
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/stop-game-mma3jrhc/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/stop-game-mma3jrhc' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/stop-game-mma3jrhc/download' --output '.skill-downloads/stop-game-mma3jrhc/SKILL.md.part' && mv '.skill-downloads/stop-game-mma3jrhc/SKILL.md.part' '.skill-downloads/stop-game-mma3jrhc/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Write, Bash, Glob
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/stop-game-mma3jrhc/SKILL.md' && test -s '.skill-downloads/stop-game-mma3jrhc/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/stop-game' && cp -R '.skill-downloads/stop-game-mma3jrhc' '.claude/skills/stop-game'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/stop-game-mma3jrhc'openskills read 'stop-game-mma3jrhc'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/stop-game-mma3jrhc/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.