Skip to content

Slay the Spire 2 Controller

Lets an agent play Slay the Spire 2 through a local bridge mod and command-line tool.

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 on your computer. It installs a command-line tool and a small mod that runs inside the game, which exposes game state on a local web address. The agent can read what screen the game is on, then play cards, use potions, pick rewards, choose map paths and so on by sending commands.

Great for

  • Players who want to experiment with an AI agent playing Slay the Spire 2
  • Developers building or testing game-playing agents on a real game
  • Hobbyists studying how agents make decisions in turn-based card games

Skip it if

  • Players who want to play normally: the agent takes over game actions, and the bridge mod changes how the game runs, which may affect achievements or saves (not stated in the files, so verify before use)
  • Users who cannot compile a .NET 9 mod or are unfamiliar with installing game mods, since setup involves building and installing code

Try asking

  • “Start a new Ironclad run on ascension 0 and play the first combat”
  • “Read the current game state and tell me which screen I am on”
  • “Play through the next map node and pick a card reward”
  • “Continue my saved run and proceed through the rewards”
Step-by-step guide: how to use Slay the Spire 2 ControllerInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.

    cli-anything-slay-the-spire-ii.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip cli-anything-slay-the-spire-ii.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip cli-anything-slay-the-spire-ii.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 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 start with the state command so the agent reads the decision field before acting, and re-read state after each action because indices change during combat.
  • Review the bridge mod source and build scripts in the repository before running install_bridge.sh, since they compile and copy code into the game directory.
  • Keep the bridge bound to localhost and do not expose port 15526 to other machines, because the API accepts game-control commands without authentication described in the files.

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.