Simple Game 标志

Simple Game

社区
duncan-buildroom
simple-game

Build a playable browser game in one sitting — one file, opens in any browser, works on a phone, no accounts or databases. Pick from a menu of classics tagged by how long they take, then make it yours with a reskin, one twist, your name on the title screen, and a saved high score. Use when the user says "/simple-game", "build me a game", "I want to make a game", "make a browser game", "can we build snake", "build a game I can send to my friends", "something fun to build", "I don't know what to build first", "make a game with Claude", or "build a game my kid can play".

概览

发布者duncan-buildroom
代码仓库freeskills
技能名称simple-game
星标数
65
复刻数
15
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 duncan-buildroom 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Simple Game AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/duncan-buildroom/freeskills/tree/main/simple-game
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/duncan-buildroom/freeskills.git /tmp/freeskills
mkdir -p .claude/skills
cp -r /tmp/freeskills/simple-game .claude/skills/simple-game
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Simple Game,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Simple Game。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Simple Game 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Simple Game — the best first thing you'll ever build

A game is the best first build, and not because it's easy. It's the best because you cannot lie to yourself about whether it works. Websites get a shrug. Games get played. And a game is one file with no login, no database, and nothing to set up — so the only thing between you and something real is describing it well.

Setup

None. This skill works out of the box.

Steps

1. Say why a game first

Open with this, short, in your own words:

  • It either runs or it doesn't. No wondering if it's good. You press a key, the thing moves or it doesn't. That feedback loop teaches you more in one night than a week of reading.
  • People actually play games. Send someone your website and they say "nice." Send them a game and they play it, then send you their score. That reaction is the thing that keeps a beginner building.
  • It's one self-contained file. No database, no accounts, no payments, no server. Everything lives in a single index.html you can email to someone.

Then: "Pick one from this list, or tell me a game you loved and we'll build that."

2. Offer the menu

Show about eight, with honest time tags. Tell them the time is for the version that works, not the version that's polished.

15 minutes

  • Clicker — click the thing, number goes up, buy upgrades. Simplest possible loop, and weirdly addictive.
  • Memory match — flip cards, find pairs. Great one to reskin with your own images.
  • Whack-a-mole — things pop up, you tap them, timer runs down. Works great on a phone.

1 hour

  • Snake — grow, don't hit yourself. The classic first game for a reason.
  • Breakout — bounce a ball, break bricks. Teaches you what "collision" means without you learning the word.
  • Flappy-style tapper — one input, endless, brutally hard. Very shareable.

One evening

  • Platformer (one level) — run, jump, reach the flag. Jumping that feels right takes iteration; that's the lesson.
  • Tower defense (one map, three waves) — place things, watch them fight. Biggest build here; do this second, not first.

If they name a game not on the list, take it, and say honestly which bucket it lands in. If they pick "one evening" and it's their very first build, say plainly that a 1-hour one finished tonight beats an evening one abandoned at 60%.

3. Write the 4-section game spec

Do not start building from a one-line request. Fill this out with them first — it takes two minutes and saves an hour. Four sections, and the wording of each matters.

1. CONTAINER

One self-contained index.html. No build tools, no external JavaScript libraries. Google Fonts only — one display font, one body font. One accent color plus neutrals, never the purple-to-blue gradient. Fixed play area, centered, that fits on a phone screen without scrolling. Works with touch and with keyboard.

2. GAMEPLAY — one rule per bullet This is where beginners go vague and get a mess. Every single bullet is one rule, stated flatly. No paragraphs. Example for Snake:

  • The snake moves one square every 120ms in the direction it's facing.
  • Arrow keys and swipes change direction. It cannot reverse into itself.
  • Eating an apple grows the snake by one square and adds 1 point.
  • Hitting a wall or its own body ends the game.
  • A new apple appears in a random empty square.

Ten to fifteen bullets like that is a complete game. Write them together, read them back, and ask: "Is any bullet doing two things?" Split it if so.

3. UI — placement only, no styling talk

Score top-left. High score top-right. A start screen with the title and "Press space or tap to play." A game-over panel with the score, the high score, and a restart button. Nothing else on screen.

4. THE KICKER Always end the spec with this line, exactly:

Show me a live preview when it runs.

That one sentence is the difference between guessing and seeing.

For sound, if they want it: "Web Audio API, no external files." Simple beeps generated in the browser — nothing to download, nothing to break. For anything saved between sessions: "save to localStorage."

4. Build it, then play it

Build the game from the spec. Save to ~/games/<slug>/index.html. Create the folder.

Open it:

bash
open ~/games/<slug>/index.html

Then: "Play it. Don't be nice about it. What felt wrong?"

Run the loop in plain English, 5-10 rounds. Game feel is almost entirely iteration. Real notes sound like:

  • "It's too fast to react to."
  • "The jump feels floaty."
  • "I keep dying instantly and I don't know why."
  • "Nothing tells me I scored."

Describe the symptom, never touch the code. Every couple of rounds, offer to commit it as a checkpoint so a bad idea can't cost them the working version.

5. The "make it yours" pass

A working clone is a tutorial. A working clone with your fingerprints on it is a thing you made. Do all five of these:

  • Reskin it. Change the subject to something from their actual life. Snake becomes a dachshund chasing treats. Breakout becomes emails you're deleting. Whack-a-mole becomes your inbox at 9am. This one change makes people forward it.
  • One twist mechanic. Exactly one. A power-up, a reverse-controls moment, a square that speeds you up, a mode that flips gravity every 10 seconds. One twist makes it theirs. Two makes it confusing.
  • Your name on the title screen. "SNAKE — by Maya." Small, but this is the point of the whole exercise.
  • High score saved to localStorage. So the number is still there tomorrow. This is what turns a demo into a game.
  • A share button. Copies a line to the clipboard: "I scored 47 in Treat Chase. Beat it: ." Fill the URL in after deploying.

6. Save the notes and hand off

Write ~/games/<slug>/NOTES.md with the spec bullets, the twist, and one line for next time.

Close with: "Run deploy-it to get a real link, then send it to three people tonight and ask for their score. Ugly but live beats pretty but sitting in a folder."

Output — save it

  • ~/games/<slug>/index.html — the playable game, one file, phone and keyboard.
  • ~/games/<slug>/NOTES.md — the gameplay rules, the twist, and the next step.

State both paths. Single next action: run deploy-it, then send it to three people and ask for their score.

Example (input → output)

Input: "I want to build a game but I have no idea what. Maybe something with my dog in it."

Output (Snake, reskinned, saved to ~/games/treat-chase/index.html):

Title screen: TREAT CHASE — by Maya. Press space or tap to play.

The spec that built it, in NOTES.md:

  • The dachshund moves one square every 120ms in the direction it's facing.
  • Arrow keys and swipes change direction. It cannot reverse into itself.
  • Eating a treat grows it by one square and adds 1 point.
  • Every 5th treat is a golden treat worth 3 points and it vanishes after 4 seconds. (the twist)
  • Hitting a wall or its own body ends the game.
  • High score saved to localStorage.
  • Sound: a short beep on eat, a lower one on death. Web Audio API, no external files.

Game over panel: score, best-ever, restart button, and a Copy my score button.

Notes / edge cases

  • The failure this prevents: a beginner's first build being something with no clear win state, so they can't tell if it worked and lose momentum. A game tells you immediately.
  • If their idea needs multiplayer, accounts, or saved profiles across devices, say plainly that's a server build and not tonight. Offer the single-player version now and note the rest in NOTES.md.
  • If a rule bullet is doing two things, split it before building. Vague bullets are where games go wrong, not the code.
  • If they get stuck on game feel, change one number at a time — speed, or gravity, or size. Changing three at once means you learn nothing.
  • Hand off: deploy-it to publish and get the share URL. first-website if they want a page around the game. link-in-bio if they want the game as one of their public links.

常见问题

Simple Game AI 技能有什么作用?

Build a playable browser game in one sitting — one file, opens in any browser, works on a phone, no accounts or databases. Pick from a menu of classics tagged by how long they take, then make it yours with a reskin, one twist, your name on the title screen, and a saved high score. Use when the user says "/simple-game", "build me a game", "I want to make a game", "make a browser game", "can we build snake", "build a game I can send to my friends", "something fun to build", "I don't know what to build first", "make a game with Claude", or "build a game my kid can play".

为什么在 TypingMind 中使用 Simple Game?

因为您只需安装一次,就能搭配任何模型使用。Simple Game 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Simple Game?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/duncan-buildroom/freeskills/tree/main/simple-game。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Simple Game?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Simple Game 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Simple Game 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Simple Game AI 技能免费吗?

duncan-buildroom 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇