Skip to content
hkuds avatar

Cli Anything Slay The Spire Ii

Command-line control of the real Slay the Spire 2 game through a local bridge mod.

CCM score
60 of 100
skills.sh installs
563
GitHub stars
67.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the game's main flow: main menu, combat, map navigation, rewards, events, rest sites, and shop purchases
  • Includes state reads (state, raw-state) and action commands such as play-card, end-turn, choose-map, and shop-buy
  • Routes next commands by a decision field that reports the current screen, such as combat_play or card_reward
  • Requires the STS2_Bridge mod running inside Steam, with a local HTTP API at localhost:15526

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-slay-the-spire-ii -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

cli-anything-slay-the-spire-ii

A stateful command-line interface for controlling the real Slay the Spire 2 game through the local STS2_Bridge mod. The CLI reads normalized game state and sends action commands via a local HTTP API at localhost:15526.

Installation

This CLI requires a bridge mod that runs inside the game process. Both the CLI and the bridge are distributed from the same repository:

https://github.com/HKUDS/CLI-Anything

1. Install the CLI

git clone https://github.com/HKUDS/CLI-Anything.git
cd CLI-Anything/slay_the_spire_ii/agent-harness
pip install -e .

2. Build and install the bridge mod

The bridge mod is a .NET 9 plugin that must be compiled and installed into the game directory. Full instructions are in the repository README, but the short version is:

cd CLI-Anything/slay_the_spire_ii/agent-harness/bridge/plugin
./build.sh
cd ../install
./install_bridge.sh

If the build script cannot auto-detect the game data directory, set STS2_GAME_DATA_DIR explicitly:

STS2_GAME_DATA_DIR="/path/to/data_sts2" ./build.sh

3. Enable the mod and verify

Details

Repository
github.com/hkuds/cli-anything
Categories
Game Development, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the cli-anything-slay-the-spire-ii skill do?

cli-anything-slay-the-spire-ii is a command-line interface that controls the real Slay the Spire 2 game through a local bridge mod HTTP API. It reads normalized game state and sends action commands for combat, navigation, rewards, and menu management.

What do I need before installing cli-anything-slay-the-spire-ii?

cli-anything-slay-the-spire-ii needs Python 3.10 or newer and Slay the Spire 2 from Steam with the STS2_Bridge mod enabled. Building the bridge mod also requires the .NET 9 SDK.

How do I install cli-anything-slay-the-spire-ii?

Run npx -y skills add hkuds/cli-anything --skill cli-anything-slay-the-spire-ii -y in a project to add the skill. After that, cli-anything-slay-the-spire-ii lets the agent read game state and play cards, choose map nodes, and claim rewards in the running game.

How does cli-anything-slay-the-spire-ii decide what to do next?

cli-anything-slay-the-spire-ii returns a decision field from its state command that names the current game screen, such as combat_play or card_reward. The skill maps each decision to the commands that fit it, so the agent always reads state first.

More from hkuds/cli-anything

All 51

Similar to Cli Anything Slay The Spire Ii

More Game Development