cli-anything-slay-the-spire-ii
Command-line interface for Slay the Spire 2 - Control the real game through a local bridge mod HTTP API. Reads normalized game state and sends action commands for combat, navigation, rewards, and menu management.
What this skill does
# 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 ```bash 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: ```bash 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: ```bash 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: ```bash 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 ```bash # 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 | Command | Description | |---------|-------------| | `state` | Normalized state with `decision` field | | `raw-state` | Raw bridge JSON | ### Main Menu | Command | Description | |---------|-------------| | `continue-game` | Continue a saved run | | `start-game --character IRONCLAD --ascension 0` | Start a new run | | `abandon-game` | Abandon the current save | | `return-to-main-menu` | Return to menu from any screen | Characters: `IRONCLAD`, `SILENT`, `DEFECT`, `NECROBINDER`, `REGENT` ### Combat | Command | Description | |---------|-------------| | `play-card <index> [--target <enemy_id>]` | Play a card from hand | | `use-potion <slot> [--target <enemy_id>]` | Use a potion | | `end-turn` | End the current turn | ### Map & Room Flow | Command | Description | |---------|-------------| | `choose-map <index>` | Select a map node | | `proceed` | Leave the current room | ### Rewards | Command | Description | |---------|-------------| | `claim-reward <index>` | Claim a combat reward | | `pick-card-reward <index>` | Pick a card reward | | `skip-card-reward` | Skip the card reward | | `claim-treasure-relic <index>` | Claim a treasure relic | | `select-relic <index>` | Select a relic | | `skip-relic-selection` | Skip relic selection | ### Events & Rest Sites | Command | Description | |---------|-------------| | `event <index>` | Choose an event option | | `advance-dialogue` | Advance dialogue-only events | | `rest <index>` | Choose a campfire action | ### Shop | Command | Description | |---------|-------------| | `shop-buy <index>` | Buy from the shop | ### Card/Relic Selection Overlays | Command | Description | |---------|-------------| | `select-card <index>` | Select a card in overlay | | `confirm-selection` | Confirm the current selection | | `cancel-selection` | Cancel the current selection | | `combat-select-card <index>` | Select a card during combat overlay | | `combat-confirm-selection` | Confirm combat card selection | ### Raw Action | Command | Description | |---------|-------------| | `action <name> --kv key=value` | Send 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: | Decision | Meaning | Typical Next Commands | |----------|---------|----------------------| | `menu` | Main menu | `continue-game`, `start-game` | | `combat_play` | In combat, your turn | `play-card`, `use-potion`, `end-turn` | | `hand_select` | Card selection overlay | `combat-select-card`, `combat-confirm-selection` | | `map_select` | Map node selection | `choose-map` | | `game_over` | Run ended | `return-to-main-menu` | | `combat_rewards` | Post-combat rewards | `claim-reward`, `proceed` | | `card_reward` | Card reward pick | `pick-card-reward`, `skip-card-reward` | | `event_choice` | Event screen | `event`, `advance-dialogue` | | `rest_site` | Campfire | `rest` | | `shop` | Shop screen | `shop-buy`, `proceed` | | `card_select` | Card selection screen | `select-card`, `confirm-selection` | | `relic_select` | Relic selection | `select-relic`, `skip-relic-selection` | | `treasure` | Treasure room | `claim-treasure-relic`, `proceed` | ## Configuration | Option | Default | Description | |--------|---------|-------------| | `--base-url` | `http://localhost:15526` | Bridge API URL | | `--timeout` | `10.0` | HTTP 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 in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.