cli-anything-slay-the-spire-ii
Fungsinya
Skill ini memungkinkan agent AI mengendalikan game Slay the Spire 2 melalui sebuah mod kecil yang dipasang di dalam game. Skill ini ditujukan untuk pemain dan orang yang suka mengutak-atik yang ingin menguji atau mengotomatiskan permainan.
Kapan dipakai
- ✓Saat Anda ingin agent membaca kondisi terkini dari sebuah run Slay the Spire 2.
- ✓Saat Anda ingin agent membuat pilihan pertarungan atau hadiah dalam game.
- ✓Saat Anda ingin memasang mod jembatan dan memeriksa bahwa koneksinya berfungsi.
Link skill
https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-slay-the-spire-ii/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Saya ingin memeriksa kondisi run Slay the Spire 2 saya saat ini dan melihat pilihan saya dalam pertarungan ini.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca data game dari mod jembatan lokal yang berjalan di dalam game, lalu mengirim perintah aksi kembali ke sana. Game harus berjalan dengan mod yang aktif.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 |
Pertanyaan umum
Apa yang perlu saya pasang?
Anda membutuhkan Python 3.10 atau yang lebih baru, CLI yang terpasang, dan mod STS2_Bridge yang sudah dibangun dan ditempatkan di dalam game.
Apakah mod ini sulit dipasang?
Pengaturannya melibatkan membangun plugin .NET 9, sehingga membutuhkan beberapa langkah teknis.
Apa saja yang bisa dikendalikan?
Deskripsinya mencakup pertarungan, navigasi, hadiah, dan pengelolaan menu.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 58k
- Peringkat
- #3248
- Lisensi
- Apache-2.0
- Diperbarui
- 21/9/2026
Komentar
- …
Skill lain dari repositori ini
cli-anything-3mf
58kMemungkinkan agent Anda memeriksa dan memperbaiki file cetak 3D, termasuk menemukan lubang bulat, mengubah ukurannya, memperbaiki mesh, dan membandingkan dua file.
cli-anything-qgis
58kMemungkinkan agent Anda membuka, mengedit, dan mengekspor proyek peta QGIS dari terminal, termasuk layer, fitur, tata letak cetak, dan alat pemrosesan.
cli-anything-adguardhome
58kMemungkinkan agent Anda mengelola AdGuard Home, pemblokir iklan untuk seluruh jaringan, termasuk filter, penulisan ulang DNS, klien, dan log kueri.
cli-anything-anygen
58kMemungkinkan agent Anda membuat slide, dokumen, situs web, dan diagram dari prompt tertulis menggunakan layanan AnyGen.
Skill serupa
blucli
394kMembantu agent Anda menemukan, memutar, menjeda, mengelompokkan, dan mengatur volume speaker Bluesound dan NAD lewat perintah blu.
camsnap
394kMembantu agent Anda mengambil foto, klip pendek, atau peristiwa gerakan dari kamera jaringan dan webcam lokal yang sudah Anda atur.
eightctl
394kMembantu agent Anda memeriksa dan mengendalikan perangkat Eight Sleep, termasuk suhu, alarm, dan jadwal tidurnya.