Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
hkuds avatar

Cli Anything Slay The Spire Ii

  • 349 installs
  • 46.6k repo stars
  • Updated August 3, 2026
  • hkuds/cli-anything

cli-anything-slay-the-spire-ii is a CLI tool that controls Slay the Spire II via a local bridge mod HTTP API for developers who need automated playtesting and agent-driven game interaction.

About

cli-anything-slay-the-spire-ii is a stateful command-line interface for developers who want to control the real Slay the Spire II game through a local bridge mod. The tool reads normalized game state and sends action commands for combat, navigation, rewards, and menu management by calling a local HTTP API exposed by the `STS2_Bridge` mod. Developers reach for cli-anything-slay-the-spire-ii when building bot playtest loops, validating balance changes, or running agent-driven interaction research against the actual game client rather than a simulator. cli-anything-slay-the-spire-ii fits workflows where reproducible runs, scripted actions, and state introspection are needed to support tuning and regression testing of gameplay behavior.

  • Slay the Spire II CLI bridge
  • Automated playtesting hooks
  • Game state inspection
  • Agent-driven interaction
  • cli-anything game adapter

Cli Anything Slay The Spire Ii by the numbers

  • 349 all-time installs (skills.sh)
  • +13 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #63 of 247 Game Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-slay-the-spire-ii

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs349
repo stars46.6k
Last updatedAugust 3, 2026
Repositoryhkuds/cli-anything

How do I automate Slay the Spire II playtests?

Query and drive Slay the Spire II game state through CLI hooks for bot playtesting, balance checks, and agent-driven game interaction research.

Who is it for?

Developers and researchers who need automated control of the live Slay the Spire II client for testing and balance work.

Skip if: Developers who need a generic HTTP mock server or web API testing tool.

When should I use this skill?

Trigger cli-anything-slay-the-spire-ii when a workflow needs scripted game actions and state reads via a local mod bridge.

What you get

A controllable playtest loop with normalized game state reads and action command execution.

  • CLI-driven playtest runs
  • Normalized game state snapshots

By the numbers

  • The documented local API endpoint is localhost:15526.

Files

SKILL.mdMarkdownGitHub ↗

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

Launch Slay the Spire 2 via Steam, enable the STS2_Bridge mod in the mod manager, then verify the connection:

cli-anything-sts2 state

If this returns JSON, the CLI and bridge are connected.

Prerequisites:

  • Python 3.10+
  • Slay the Spire 2 (Steam) with STS2_Bridge mod enabled
  • .NET 9 SDK (only needed to build the bridge mod)

Usage

Basic Commands

# Read normalized game state (always start here)
cli-anything-sts2 state

# Start interactive REPL mode (default)
cli-anything-sts2

# Show all available commands
cli-anything-sts2 --help

Command Groups

State Inspection

CommandDescription
stateNormalized state with decision field
raw-stateRaw bridge JSON

Main Menu

CommandDescription
continue-gameContinue a saved run
start-game --character IRONCLAD --ascension 0Start a new run
abandon-gameAbandon the current save
return-to-main-menuReturn to menu from any screen

Characters: IRONCLAD, SILENT, DEFECT, NECROBINDER, REGENT

Combat

CommandDescription
play-card <index> [--target <enemy_id>]Play a card from hand
use-potion <slot> [--target <enemy_id>]Use a potion
end-turnEnd the current turn

Map & Room Flow

CommandDescription
choose-map <index>Select a map node
proceedLeave the current room

Rewards

CommandDescription
claim-reward <index>Claim a combat reward
pick-card-reward <index>Pick a card reward
skip-card-rewardSkip the card reward
claim-treasure-relic <index>Claim a treasure relic
select-relic <index>Select a relic
skip-relic-selectionSkip relic selection

Events & Rest Sites

CommandDescription
event <index>Choose an event option
advance-dialogueAdvance dialogue-only events
rest <index>Choose a campfire action

Shop

CommandDescription
shop-buy <index>Buy from the shop

Card/Relic Selection Overlays

CommandDescription
select-card <index>Select a card in overlay
confirm-selectionConfirm the current selection
cancel-selectionCancel the current selection
combat-select-card <index>Select a card during combat overlay
combat-confirm-selectionConfirm combat card selection

Raw Action

CommandDescription
action <name> --kv key=valueSend a raw bridge action

Decision States

The state command returns JSON with a decision field indicating the current game screen. Route your next command based on this value:

DecisionMeaningTypical Next Commands
menuMain menucontinue-game, start-game
combat_playIn combat, your turnplay-card, use-potion, end-turn
hand_selectCard selection overlaycombat-select-card, combat-confirm-selection
map_selectMap node selectionchoose-map
game_overRun endedreturn-to-main-menu
combat_rewardsPost-combat rewardsclaim-reward, proceed
card_rewardCard reward pickpick-card-reward, skip-card-reward
event_choiceEvent screenevent, advance-dialogue
rest_siteCampfirerest
shopShop screenshop-buy, proceed
card_selectCard selection screenselect-card, confirm-selection
relic_selectRelic selectionselect-relic, skip-relic-selection
treasureTreasure roomclaim-treasure-relic, proceed

Configuration

OptionDefaultDescription
--base-urlhttp://localhost:15526Bridge API URL
--timeout10.0HTTP timeout in seconds

For AI Agents

1. Always read `state` first to get the decision field 2. Re-read state after each action - indices and energy change during combat 3. Check return codes - 0 for success, non-zero for errors 4. Parse stdout for JSON output

Related skills

How it compares

Pick this when you need automation against a real game client; pick a simulator harness when you do not want mod or client dependencies.

FAQ

What does cli-anything-slay-the-spire-ii connect to?

cli-anything-slay-the-spire-ii connects to the `STS2_Bridge` mod running inside the Slay the Spire II game process. cli-anything-slay-the-spire-ii sends commands and reads state through a local HTTP API, enabling automation against the real client rather than a simulated environm

What endpoint does cli-anything-slay-the-spire-ii use?

cli-anything-slay-the-spire-ii uses a local HTTP API at localhost:15526 as described in the tool documentation. cli-anything-slay-the-spire-ii relies on the bridge mod exposing that endpoint so the CLI can issue combat and navigation commands and read normalized state.

Game Developmentintegrationstesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.