qiguo-strategy-game
БесплатноБез исполняемых скриптовНе проверенThis skill launches the single-file HTML strategy game 七国群雄传 (Seven Kingdoms Tactics), a 三国群英传-style isometric turn-based wargame. Use it when the user wants…
от hmily741963805 установок в других каталогахОб этом скилле
七国群雄传 · 网页战棋(Seven Kingdoms Tactics)
Overview
A zero-dependency, single-file HTML5 Canvas strategy wargame in the spirit of 三国群英传 — isometric 3D 战棋, seven-warring-states theme, with combo chains, bond auras, co-op ultimate (合击必杀), and a general codex (武将图鉴). Two modes are bundled, and each supports two play styles:
人机对战 (vs AI) — default; you command one side, the computer commands the other.
双人轮流 Hotseat(同设备) — two human players share one device and take turns on the same screen. Chosen on the state-select screen via the 👥 双人轮流(同设备) toggle.
联机对战 (Net Play) — two players on separate tabs / separate devices play live. Chosen on the state-select screen via the 🌐 联机对战 toggle. Two transports: 本机多标签 (BroadcastChannel, same browser, zero setup) and 跨设备 (WebSocket relay
net-server.js, two devices). Both skirmish and campaign support net play, host = red/我方, client = blue/敌方 (viewpoint swapped on client).战役模式 (Campaign) —
campaign-mode.html: pick a state, conquer cities, recruit generals, and unify the realm. Includes the 武将图鉴 collection system. Hotseat and 联机 apply to each battle (the strategic map stays single-player setup).普通模式 (Skirmish) —
skirmish-mode.html: pick a state + scenario, fast single battle. 10 历史名局 (长平/即墨火牛/宜阳/蓟城/桂陵/鄢郢/函谷关/邯郸/伊阙/阏与) each with bespoke terrain & 史实剧情. Hotseat and 联机 fully supported.
The skill is purely a launcher: it copies the bundled HTML into the current workspace and opens it in the built-in preview panel so the user plays instantly. No server, no build step, no network.
When To Use
- The user says "玩七国群雄传", "打开战棋游戏", "来一局三国群英传那种游戏", or similar.
- The user references 战棋 / 回合制策略 / 七国群雄传 by name.
- The user wants two-player / 双人 / 双人对战 / Hotseat / 同设备轮流 — launch either mode and tell them to pick 👥 双人轮流 on the state-select screen.
- The user wants 联机 / 远程双人 / 双设备 / 线上对战 / 一起玩 / 不在一个设备 — launch either mode and tell them to pick 🌐 联机对战, then 创建房间(主机)on one side and 加入房间(客机)with the same room number on the other. Same browser → 本机多标签 (no server); different devices → run
net-server.jsand use 跨设备. - The user installs the skill and invokes it to play.
How To Launch (required procedure)
Follow these steps exactly. The game is bundled under assets/ in this skill's directory.
Resolve the skill directory. The current skill lives at
~/.workbuddy/skills/qiguo-strategy-game/. The bundled files are:assets/campaign-mode.html— 战役模式assets/skirmish-mode.html— 普通模式net-server.js— zero-dependency WebSocket relay for 跨设备 联机 (only needed for two-device matches)
Choose which mode to open based on the user's words:
- Mentions 战役 / 剧情 / 统一 / campaign / 天下 →
campaign-mode.html - Mentions 普通 / 快速 / 单局 / skirmish / 一局 →
skirmish-mode.html - Mentions 双人 / 双人对战 / Hotseat / 同设备轮流 / 两个人玩 → open either mode (both support Hotseat); tell the user to tap 👥 双人轮流(同设备) on the state-select screen before picking a state.
- Ambiguous or just "玩这个游戏" → open both (present as two files).
Hotseat note: the 人机 / 双人 toggle lives on the state-select screen (a row reading
对战模式: 🤖 人机对战 · 👥 双人轮流(同设备)). It is selected before choosing a state and applies to the whole battle. In Hotseat, Player 1 commands the blue side and Player 2 the red side; 结束回合 passes control to the other player (not the AI).- Mentions 战役 / 剧情 / 统一 / campaign / 天下 →
Copy the chosen HTML into the current workspace so the user owns a playable, editable copy. Use the Bash tool:
mkdir -p "<cwd>/七国群雄传" && cp "<skill_dir>/assets/<file>.html" "<cwd>/七国群雄传/<file>.html"Replace
<cwd>with the current working directory (from context) and<skill_dir>with the resolved skill path. Keep the English filename so the path stays portable.CRITICAL — open in the built-in preview via present_files. After copying, call the
present_filestool with the absolute path of the copied HTML file(s). This renders the game directly inside the conversation's preview panel and shows an artifact card.- ✅ MUST:
present_fileswith the absolute local path, e.g.C:\Users\...\七国群雄传\campaign-mode.html - ❌ NEVER: only print a
file://...URL or a relative path and tell the user to open it themselves. The user must be able to play immediately in the preview.
- ✅ MUST:
Tell the user, in one short line, that the game is open in the preview and how to start (choose a state → start battle; in campaign, march from your capital to an adjacent enemy city).
Game Feature Summary (for describing to the user)
- 连击 Combo: consecutive friendly hits build a combo counter; at 3+ a 🔥 badge pops; combo ≥5 scales damage up to +30%.
- 羁绊光援 (Bond Aura): adjacent friendly units buff each other (ATK +2 / DEF +4), shown as a gold ring under the unit.
- 合击必杀 (Co-op Ultimate): when a second different friendly unit hits the same enemy in one turn, a full-scree
Установить qiguo-strategy-game в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл qiguo-strategy-game?
This skill launches the single-file HTML strategy game 七国群雄传 (Seven Kingdoms Tactics), a 三国群英传-style isometric turn-based wargame. Use it when the user wants to play a browser strategy game, mentions 七国群雄传 / 战棋 / 三国群英传-style web game, or asks to open / play this game. It copies the self-contained HTML into the workspace and opens it directly in the built-in preview so the user can play immediately with zero setup.
Как установить скилл qiguo-strategy-game?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qiguo-strategy-game запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub