cli-anything-slay-the-spire-ii
ما الذي تفعله
تتيح هذه المهارة لوكيل الذكاء الاصطناعي التحكم في لعبة Slay the Spire 2 عبر إضافة صغيرة مثبتة داخل اللعبة. وهي مناسبة للاعبين والمجربين الذين يريدون اختبار اللعب أو أتمتته.
متى تستخدمها
- ✓عندما تريد من وكيلك قراءة الحالة الحالية لجولة في Slay the Spire 2.
- ✓عندما تريد من الوكيل اتخاذ اختيارات القتال أو المكافآت في اللعبة.
- ✓عندما تريد إعداد إضافة الجسر والتحقق من أن الاتصال يعمل.
رابط المهارة
https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-slay-the-spire-ii/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد معرفة الحالة الحالية لجولتي في Slay the Spire 2، وأن أرى خياراتي في هذه المعركة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقرأ الوكيل بيانات اللعبة من إضافة الجسر المحلية التي تعمل داخل اللعبة، ثم يرسل أوامر الفعل إليها. يجب أن تكون اللعبة قيد التشغيل مع تفعيل الإضافة.
المحتوى التقني (ملف 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 |
الأسئلة الشائعة
ما الذي أحتاج إلى تثبيته؟
تحتاج إلى Python 3.10 أو أحدث، وCLI مثبتًا، وإضافة STS2_Bridge مبنية ووضعت داخل اللعبة.
هل الإضافة صعبة الإعداد؟
يتضمن الإعداد بناء إضافة .NET 9، لذلك يتطلب خطوات تقنية.
ما الذي يمكنها التحكم فيه؟
يغطي الوصف القتال والتنقل والمكافآت وإدارة القوائم.
التفاصيل
الوصف الأصلي من المؤلف
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
- الترتيب
- #3248
- الترخيص
- Apache-2.0
- آخر تحديث
- 21/9/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
cli-anything-3mf
58kيتيح لوكيلك فحص ملفات الطباعة ثلاثية الأبعاد وإصلاحها، بما في ذلك إيجاد الثقوب الدائرية وتغيير حجمها وإصلاح الشبكات ومقارنة ملفين.
cli-anything-qgis
58kيتيح لوكيلك فتح مشاريع الخرائط في QGIS وتحريرها وتصديرها من الطرفية، بما في ذلك الطبقات والمعالم والتخطيطات المطبوعة وأدوات المعالجة.
cli-anything-adguardhome
58kيتيح لوكيلك إدارة AdGuard Home، وهو حاجب إعلانات على مستوى الشبكة، بما في ذلك الفلاتر وإعادة كتابة DNS والأجهزة وسجلات الاستعلامات.
cli-anything-anygen
58kيتيح لوكيلك إنشاء شرائح ومستندات ومواقع ورسوم بيانية من وصف مكتوب، باستخدام خدمة AnyGen.
مهارات مشابهة
blucli
394kيساعد وكيلك على البحث عن مكبرات Bluesound وNAD وتشغيلها وإيقافها وتجميعها وضبط مستوى صوتها عبر الأمر blu.
camsnap
394kيساعد وكيلك على التقاط صور لقطية أو مقاطع قصيرة أو أحداث حركة من كاميرات الشبكة وكاميرات الويب المحلية التي أعددتها.
eightctl
394kيساعد وكيلك على فحص وحدة Eight Sleep والتحكم فيها، بما في ذلك درجة حرارتها ومنبهاتها وجداول النوم.