cli-anything-sts2
यह क्या करती है
यह स्किल एक AI एजेंट को Slay the Spire 2 वीडियो गेम की स्थिति पढ़ने और कमांड लाइन ब्रिज के ज़रिए उसमें काम करने देती है। यह उन खिलाड़ियों और डेवलपर्स के लिए है जो गेम को ऑटोमेट या स्क्रिप्ट करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि AI एजेंट Slay the Spire 2 के चल रहे रन की स्थिति पढ़े।
- ✓जब आप स्क्रिप्ट से गेम में लड़ाई, इनाम या मेन्यू के कदम भेजना चाहते हैं।
- ✓जब आप वह bridge mod सेट कर रहे हैं जो गेम को कमांड लाइन टूल से जोड़ता है।
Skill का लिंक
https://github.com/HKUDS/CLI-Anything/blob/main/slay_the_spire_ii/agent-harness/cli_anything/slay_the_spire_ii/skills/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे AI को Slay the Spire 2 से जोड़िए, ताकि वह गेम की स्थिति पढ़े और चाल चले।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
गेम के अंदर एक छोटा bridge mod चलता है, जो एक स्थानीय इंटरफ़ेस देता है। कमांड लाइन टूल उससे गेम की स्थिति पढ़ता है और गेम को कमांड वापस भेजता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 |
अक्सर पूछे जाने वाले सवाल
क्या मुझे mod इंस्टॉल करना होगा?
हाँ। स्किल के लिए गेम फ़ोल्डर में STS2_Bridge mod बनाकर इंस्टॉल करना ज़रूरी है।
पहले क्या इंस्टॉल होना चाहिए?
Python 3.10 या नया, bridge बनाने के लिए .NET 9, और गेम खुद।
यह काम कर रहा है, यह कैसे जाँचें?
state कमांड चलाइए। अगर वह JSON लौटाए, तो कनेक्शन सही है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 58k
- रैंकिंग में स्थान
- #3257
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 21/9/2026
कमेंट
- …
इस repository की और skills
cli-anything-3mf
58kयह आपके एजेंट को 3D प्रिंटिंग फ़ाइलों का निरीक्षण और सुधार करने देती है, जिसमें गोल छेद खोजना, उनका आकार बदलना, मेश ठीक करना और दो फ़ाइलों की तुलना शामिल है।
cli-anything-qgis
58kयह आपके एजेंट को टर्मिनल से QGIS मैप प्रोजेक्ट खोलने, संपादित करने और निर्यात करने देती है, जिसमें लेयर, फ़ीचर, प्रिंट लेआउट और प्रोसेसिंग टूल शामिल हैं।
cli-anything-adguardhome
58kयह आपके एजेंट को AdGuard Home, एक नेटवर्क-व्यापी ऐड ब्लॉकर, प्रबंधित करने देती है, जिसमें फ़िल्टर, DNS rewrites, क्लाइंट और क्वेरी लॉग शामिल हैं।
cli-anything-anygen
58kयह आपके एजेंट को लिखे गए प्रॉम्प्ट से AnyGen सेवा का उपयोग करके स्लाइड, दस्तावेज़, वेबसाइट और आरेख बनवाने देती है।
मिलती-जुलती skills
blucli
394kयह आपके एजेंट को blu कमांड से Bluesound और NAD स्पीकर खोजने, चलाने, रोकने, समूह बनाने और वॉल्यूम बदलने में मदद करती है।
camsnap
394kयह आपके एजेंट को नेटवर्क कैमरों और लोकल webcam से स्नैपशॉट, छोटी क्लिप या मोशन इवेंट लेने में मदद करती है, जो आपने सेट किए हों।
eightctl
394kयह आपके एजेंट को Eight Sleep pod की जांच और नियंत्रण करने में मदद करती है, जिसमें तापमान, अलार्म और नींद की समय-सारणी शामिल हैं।