kitchen-war-rts
БесплатноЗапускает вложенные скриптыНе проверен一句话生成可玩的红警风 RTS 游戏——厨房战争(Kitchen War)。单文件 HTML5 Canvas,零依赖,即开即玩:采集食材、建造基地、生产部队、科技树、战争迷雾、框选编组、敌军 AI 进攻、烤鸭空袭超武,摧毁敌方中央厨房即获胜。含首访教程、10…
от hmily741963753 установки в других каталогахОб этом скилле
厨房战争原型 (Kitchen War RTS)
Overview
Deliver and iteratively improve a complete, single-file HTML5 RTS game that
mimics the Red Alert (红警) core loop with a kitchen-war theme. The game lives in
assets/index.html — one self-contained file (Canvas + a side HTML/CSS panel,
zero external dependencies). To give the user the game, copy assets/index.html
into their workspace and open it in the built-in preview via present_files.
This skill also encodes the hard-won quality bar: the game must be verified with a real browser end-to-end test that drives the actual game loop — not a transient/one-frame check — because multi-frame interaction bugs (e.g. the "moved a few steps then froze" deadlock) are invisible to instant tests.
When to Use
- User requests a Red Alert-style / playable browser RTS game.
- User says "做个能玩的战略游戏 / 红色警戒那样的游戏 / 超越红警".
- User wants to create, fix, extend, or re-verify the Kitchen War game.
- After ANY edit to the game, run the verification gate before declaring done.
Delivering the Game
- Copy
assets/index.htmlto the user's workspace (e.g.桌面or current project). - Present it with
present_filesso it opens in the live preview panel. - Tell the user how to play: left-click select / drag box-select, right-click to move or attack, B/I/V switch build tabs, S stop, M music, Esc cancel; click "烤鸭空袭" (superweapon) when charged, then click a target.
Game Feature Set (what "done" means)
The game is a faithful Red Alert-shape RTS. Confirm these exist after changes:
- Base building: 中央厨房(yard) → 配电箱(power) → 冰箱仓库(refinery) → 备菜台(barracks) → 灶台工厂(warfactory) → 科技烤箱(tech) → 微波塔(turret). Placement uses a green ghost with snap-to-valid-tile; buildings must touch an existing completed building.
- Economy: 采集车(harvester) mines resource tiles → returns to refinery → cash.
- Production: build queue per building + rally points; veterancy (promote on kills).
- Tech tree: 科技烤箱 unlocks advanced units.
- Factions: 灶火盟 (player) vs 冰锋营 (enemy, tougher) — asymmetric stats.
- Fog of war + reveal-on-sight; radar minimap.
- Selection/commands: single select, drag box-select, right-click move / attack / attack-move; group commands apply to all selected units.
- Combat: projectiles, hit flash, death particles, veterancy damage/speed multipliers.
- Enemy AI: builds economy, produces army, and launches attack waves at the
player's base (verified: units switch to
attackMovetoward player buildings). - Superweapon: 烤鸭空袭 charges over time → button → click target → 2.4s incoming warning → area damage (700 units / 1100 buildings).
- Win/Lose: destroying the enemy 中央厨房 = victory; losing yours = defeat.
- Tutorial: 5-step onboarding; sound: WebAudio blips + simple music (M).
- Engagement & retention layer (the hooks that keep a new player around):
- First-visit help overlay (H or
?button) — explains goal, controls, hotkeys, and tips. Dismissed once, accessible any time. Shown automatically on first load. - Top toolbar — always-visible buttons for 帮助 / 速度(1x·2x·3x) / 暂停 /
音效 / 配乐 / 截图 / 成就. All toggles persist to
localStorage. - SFX module (procedural WebAudio on the existing
beepengine) — build / produce / explode / promote / capture / superweapon / select / ach / victory / defeat. Toggle withXor the toolbar button. Persisted. - 10 achievements persisted to
localStoragewith toast + in-game panel (🏆 成就): first win, speedrun (<5 min), low-HP survival, 10000 cash, 30 units produced, 10 buildings built, unit → vet-2, engineer capture, superweapon kill, win on all 3 maps. - Screenshot/share (
📷button orF) — exports the canvas as a PNG with map / difficulty / cash / time watermark. Drop straight into a share. - Hotkeys —
1-6quick-select first 6 build items,Space/Ppause,Hhelp,XSFX,Mmusic,Fscreenshot,Esccancel, plus the legacyB / I / Vtabs andSstop. - Game speed (1x / 2x / 3x, scales loop
dt) + pause (skip updates, show "⏸ 已暂停" tag) — power-user and accessibility controls. - Personal best + share-on-end (the "surpass Red Alert" differentiator):
on game over the screen shows 个人最佳:最快通关 / 最高食材 / 累计胜场,
persisted to
localStorage(kw_best); a 分享战绩 button (calls the screenshot export) lets the player brag a win straight to socials — RA never had persistent personal records or one-click share. - 每日挑战 (Daily Challenge) — the 2026 browser-game retention hook. The
📅 今日挑战button seeds the map with the day's date (todaySeed()), so everyone who plays on the same day gets the identical, reproducible map + resource scatter (deterministic viamulberry32+scatterResources). Natural daily competition without any server. - **挑战分享码 (Share
- First-visit help overlay (H or
Установить kitchen-war-rts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл kitchen-war-rts?
一句话生成可玩的红警风 RTS 游戏——厨房战争(Kitchen War)。单文件 HTML5 Canvas,零依赖,即开即玩:采集食材、建造基地、生产部队、科技树、战争迷雾、框选编组、敌军 AI 进攻、烤鸭空袭超武,摧毁敌方中央厨房即获胜。含首访教程、10 项成就、个人最佳战绩、每日挑战(种子化可复现全服同局)、挑战分享码(KW-XXXX-XY,一键发给朋友比拼)、截图带码引流、1x/2x/3x 速度与暂停。怀旧红警手感 + 现代留存钩子。Use this skill when the user asks: 做一个红色警戒游戏/RTS/战略游戏/厨房战争/能玩的网页游戏/每日挑战小游戏/分享挑战码, generate a Red Alert style RTS, or wants to create/extend/fix the Kitchen War game. The agent copies assets/index.html to the workspace and opens it via present_files.
Как установить скилл kitchen-war-rts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kitchen-war-rts запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic