cli-anything-sts2
O que ela faz
Esta skill permite que um agente de IA leia o estado do videogame Slay the Spire 2 e atue nele por uma ponte de linha de comando. Ela é para jogadores e desenvolvedores que querem automatizar ou criar scripts para o jogo.
Quando usar
- ✓Quando você quer que um agente de IA leia o estado atual de uma partida de Slay the Spire 2.
- ✓Quando você quer enviar ações de combate, de recompensa ou de menu ao jogo a partir de um script.
- ✓Quando você está configurando o mod de ponte que conecta o jogo à ferramenta de linha de comando.
Link da skill
https://github.com/HKUDS/CLI-Anything/blob/main/slay_the_spire_ii/agent-harness/cli_anything/slay_the_spire_ii/skills/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Conecte minha IA ao Slay the Spire 2 para que ela consiga ler o estado do jogo e fazer jogadas.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Um pequeno mod de ponte roda dentro do jogo e oferece uma interface local. A ferramenta de linha de comando lê o estado do jogo por ela e envia comandos de volta ao jogo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
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_Bridgemod 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
| 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 |
Perguntas frequentes
Preciso instalar um mod?
Sim. A skill exige compilar e instalar o mod STS2_Bridge no diretório do jogo.
O que preciso ter instalado primeiro?
Python 3.10 ou mais novo, .NET 9 para compilar a ponte e o próprio jogo.
Como verifico se está funcionando?
Rode o comando de estado. Se ele retornar JSON, a conexão está funcionando.
Detalhes
Descrição original do autor
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.
repo: HKUDS/CLI-Anything
Popularidade
- Estrelas no GitHub
- 58 mil
- Posição no ranking
- #3257
- Licença
- Apache-2.0
- Atualizada em
- 21/09/2026
Comentários
- …
Mais skills deste repositório
cli-anything-3mf
58 milPermite que seu agente inspecione e corrija arquivos de impressão 3D, incluindo encontrar furos redondos, redimensioná-los, reparar malhas e comparar dois arquivos.
cli-anything-qgis
58 milPermite que seu agente abra, edite e exporte projetos de mapa do QGIS pelo terminal, incluindo camadas, feições, layouts de impressão e ferramentas de processamento.
cli-anything-adguardhome
58 milPermite que seu agente gerencie o AdGuard Home, um bloqueador de anúncios para toda a rede, incluindo filtros, reescritas de DNS, clientes e registros de consulta.
cli-anything-anygen
58 milPermite que seu agente gere slides, documentos, sites e diagramas a partir de um prompt escrito, usando o serviço AnyGen.
Skills parecidas
blucli
394 milAjuda seu agente a encontrar, tocar, pausar, agrupar e ajustar o volume de alto-falantes Bluesound e NAD pelo comando blu.
camsnap
394 milAjuda seu agente a capturar fotos, clipes curtos ou eventos de movimento de câmeras de rede e webcams locais que você configurou.
eightctl
394 milAjuda seu agente a verificar e controlar um pod da Eight Sleep, incluindo temperatura, alarmes e programações de sono.