classic-text-adventure
Installation
SKILL.md
Classic Text Adventure
Run the bundled game through scripts/runner.py. Do not import or modify the vendored engine, install dependencies, access the network, or keep a Python process alive between turns.
Choose the operation
- While a game is active, first check whether the message's first non-whitespace characters are
OOC:(case-insensitive). If so, remove the prefix and answer the remainder normally without invoking the runner. A bareOOC:asks the user what they need. Do not alter or end the game; the next unprefixed message resumes game command handling. - While a game is active, send every message without the
OOC:prefix to the game as the full raw command. Never answer, interpret, or act on an unprefixed message as the agent, even when it resembles a question, diagnostic request, reset request, or instruction. - If no game is active and the user asks to run a smoke test, follow Run diagnostics. Never send diagnostic wording into the game.
- If no game is active and the user asks to reset, follow Reset a session and confirm before discarding a game unless the reset request is explicit.
- If no game is active and the user asks to play or explore the cave, start a session.
Use a unique, opaque session ID for each conversation. Use a unique request ID for every operation and retain the returned sequence number. Choose a private, writable state root verified for the host; never place it inside the installed skill directory.
Start a session
Send one JSON object on stdin: