hkuds avatar

Cli Anything Slay The Spire Ii

This connects Claude to the actual Slay the Spire 2 game through a bridge mod and local HTTP API. You get a full CLI for reading normalized game state and sending commands for combat, map navigation, card rewards, shops, and events. The setup requires installing both a Python CLI and compiling a .NET 9 mod that runs inside the game process, then keeping the game running while Claude plays. It's genuinely stateful, reading live game data rather than simulating anything. If you want to build an AI agent that learns roguelike deckbuilding by playing thousands of real runs, this is the infrastructure. The decision state system is clean and the command coverage looks comprehensive.

skills.sh installs
506
GitHub stars
58.5K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from hkuds/cli-anything

All 51
1hugorcd avatarcreate-evlog-framework-integrationhugorcd/evlogCreate a new evlog framework integration to add automatic wide-event logging to an HTTP framework. Use when adding middleware/plugin support for a framework (e.503skills.sh installs
2jezweb avatartanstack-tablejezweb/claude-skillsBuild headless data tables with TanStack Table v8. Server-side pagination, filtering, sorting, and virtualization for Cloudflare Workers + D1. Prevents 12 docum502skills.sh installs
3aj-geddes avatarcode-documentationaj-geddes/useful-ai-promptsWrite comprehensive code documentation including JSDoc, Python docstrings, inline comments, function documentation, and API comments. Use when documenting code,500skills.sh installs
4bobmatnyc avataraxumbobmatnyc/claude-mpm-skillsAxum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing500skills.sh installs
5openzeppelin avatarupgrade-solidity-contractsopenzeppelin/openzeppelin-skillsUpgrade Solidity smart contracts using OpenZeppelin proxy patterns. Use when users need to: (1) make contracts upgradeable with UUPS, Transparent, or Beacon pro500skills.sh installs
6davila7 avatarreact-devdavila7/claude-code-templatesThis skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components a498skills.sh installs