
Slay the Spire 2 Game Controller
Lets an agent play Slay the Spire 2 by reading game state and sending combat, map, reward, and menu commands
- Repository
- HKUDS/CLI-Anything
- Stars
- 58,084
- Licence
- Apache-2.0
- Files
- 1 file
What it does
This skill teaches an AI agent to control the real Slay the Spire 2 game through a command-line tool. Once installed, the agent can read the current game screen (combat, map, rewards, shop, events) as structured data and then issue actions such as playing cards, ending turns, choosing map nodes, or buying from the shop. It talks to a small bridge mod running inside the game over a local HTTP address (localhost:15526).
Great for
- Developers experimenting with game-playing AI agents or automated testing of Slay the Spire 2
- Modders or hobbyists who already own the game on Steam and want an agent to play runs
- Researchers studying how language-model agents handle turn-based decision making
Skip it if
- Users who only want game tips or strategy advice, since this skill is for agents that act in the game rather than explaining it
- Anyone without a Steam copy of Slay the Spire 2, since the bridge mod runs inside the game process and nothing works without it
- Users who do not want to compile and install a .NET mod into their game directory, as setup requires building and installing a third-party plugin
Try asking
- “Start a new Ironclad run on ascension 0 and play through the first combat”
- “Read the current game state and tell me what decision screen I am on”
- “Play my hand for this combat turn, then end the turn”
- “Pick the best card reward and proceed to the next map node”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.
skills.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip skills.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip skills.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Always have the agent call the state command first and re-read state after every action, because card indices and energy change during combat
- Install the bridge mod and verify with cli-anything-sts2 state before asking the agent to play, since a failed connection will otherwise stall the run
- Review the build and install scripts before running them, since they compile code and copy files into the game directory
What's inside
- SKILL.md
Redistributed unmodified from HKUDS/CLI-Anything under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.