Automated summary
Generates GameSpec JSON and Lua scripts for an AI Game Platform, supporting FPS, 2D side-scrollers, and 3D platformers.
Strengths
- Supports multiple game genres (FPS, 2D, 3D)
- Produces structured code with GameObjects and Lua scripts
- Includes detailed guidance on collisions, input, and transforms
Limitations
- Limited to a specific, non-public game platform
- Basic Lua scripts without advanced state management
- Requires prior understanding of GameSpec structure
Use this skill to quickly prototype an interactive game or add features like enemies and collectibles.
Not suitable for complex games requiring a full physics engine or highly custom mechanics beyond the provided patterns.
Security analysis
SafeThe skill provides only instructional content and code templates for a game platform. It does not instruct any destructive actions, use of external tools, or data exfiltration.
No concerns found
How this analysis is madeExamples
Create a 2D side-scroller platformer game with a player character that can jump and collect coins.Add an enemy that patrols back and forth horizontally in my platformer game.Make the player jump higher in my Lua script.name: game-generator description: Generate GameSpec JSON and Lua scripts for the AI Game Platform. Use when creating games, adding features like player movement, enemies, collectibles, or fixing Lua script issues. Supports FPS, 2D side-scrollers, and 3D platformers.
Game Generator
Assists in generating valid GameSpec JSON + Lua scripts for the AI Game Platform.
When to Use
- User requests a new game ("create a platformer game")
- User wants to add features ("add enemies that patrol")
- User wants to modify Lua scripts ("make the player jump higher")
- User asks about game mechanics ("how do I implement collectibles?")
Instructions
1. Understand the Request
Identify the game type:
- FPS: First-person shooter with mouse look
- 2D Side-Scroller: Horizontal movement, jumping
- 3D Platformer: Top-down or angled view, WASD movement
2. Generate GameSpec Structure
{
"meta": { "title": "Game Title", "version": "1.0.0" },
"players": { "min": 1, "max": 1, "spawn_points": [{ "x": 0, "y": 1, "z": 0 }] },
"worlds": [{
"id": "world-1",
"name": "Main World",
"environment": {
"ambient_light": { "color": "#ffffff", "intensity": 0.5 },
"directional_light": { "color": "#ffffff", "intensity": 1, "position": { "x": 10, "y": 10, "z": 10 } }
},
"objects": [/* GameObjects */]
}],
"scripts": [/* Lua scripts */]
}
3. Create GameObjects
Each GameObject needs:
- Unique ID:
"obj-player-1","obj-enemy-1" - Transform: position, rotation (radians), scale
- Components: mesh, light, or camera
- Optional script_id: Reference to Lua script
Mesh Component (Required for Visuals)
{
"type": "mesh",
"properties": {
"geometry": "box|sphere|plane|cylinder",
"color": 0xff0000,
"width": 1, "height": 1, "depth": 1,
"hasCollision": true,
"collisionShape": "box|sphere|auto",
"isTrigger": false
}
}
IMPORTANT: Set hasCollision: true for physics interaction!
Camera Component
{
"type": "camera",
"properties": {
"fov": 75,
"isMainCamera": true,
"usePointerLock": false // true for FPS, false for 2D/platformer
}
}
4. Write Lua Scripts
Essential Pattern for Transform Updates
function on_update(dt)
-- ALWAYS use this pattern:
local pos = gameobject.transform.position
pos.x = pos.x + speed * dt
gameobject.transform.position = pos -- Must reassign!
end
Input Handling
function on_update(dt)
if not input then return end -- Optional safety check
if input["w"] or input["arrowup"] then
-- Move forward
end
if input[" "] then -- Space key
-- Jump
end
end
Available Keys:
input["w"],input["a"],input["s"],input["d"]input["arrowup"],input["arrowdown"],input["arrowleft"],input["arrowright"]input[" "](space),input["shift"],input["control"]
Jump with Edge Detection
local velocity_y = 0
local was_space_pressed = false
function on_update(dt)
if not input then return end
local is_space_pressed = input[" "] == true
if is_grounded and is_space_pressed and not was_space_pressed then
velocity_y = jump_force
end
was_space_pressed = is_space_pressed
velocity_y = velocity_y + gravity * dt
pos.y = pos.y + velocity_y * dt
end
Find Other GameObjects
function on_update(dt)
local player = find_gameobject("Player")
if player then
local dx = player.transform.position.x - gameobject.transform.position.x
-- Use dx for AI, camera following, etc.
end
end
Collision Callbacks
function on_collision(other)
-- Solid collision (walls, floor)
if other.name == "Wall" then
print("Hit wall")
end
end
function on_trigger_enter(other)
-- Trigger collision (items, goals)
if other.name == "Coin" then
print("Collected!")
end
end
5. Common Patterns
2D Side-Scroller Player
local velocity_y = 0
local gravity = -15
local jump_force = 7
local move_speed = 5
local is_grounded = false
local was_space_pressed = false
function on_update(dt)
if not input then return end
local pos = gameobject.transform.position
-- Horizontal movement
if input["arrowleft"] or input["a"] then
pos.x = pos.x - move_speed * dt
end
if input["arrowright"] or input["d"] then
pos.x = pos.x + move_speed * dt
end
-- Jump
local is_space_pressed = input[" "] == true
if is_grounded and is_space_pressed and not was_space_pressed then
velocity_y = jump_force
is_grounded = false
end
was_space_pressed = is_space_pressed
-- Gravity
velocity_y = velocity_y + gravity * dt
pos.y = pos.y + velocity_y * dt
-- Ground check
if pos.y <= 0.6 then
pos.y = 0.6
velocity_y = 0
is_grounded = true
end
gameobject.transform.position = pos
end
FPS Mouse Look
local rotation_y = 0
local mouse_sensitivity = 0.002
function on_update(dt)
if mouse_movement then
rotation_y = rotation_y - mouse_movement.x * mouse_sensitivity
end
gameobject.transform.rotation.y = rotation_y
end
Camera must have: "usePointerLock": true
Enemy Patrol
local patrol_distance = 3
local start_x = 0
local direction = 1
local speed = 2
function on_start()
start_x = gameobject.transform.position.x
end
function on_update(dt)
local pos = gameobject.transform.position
pos.x = pos.x + direction * speed * dt
if pos.x > start_x + patrol_distance then direction = -1 end
if pos.x < start_x - patrol_distance then direction = 1 end
gameobject.transform.position = pos
end
Collectible Item
local rotation_speed = 3
local collected = false
function on_update(dt)
if collected then
gameobject.transform.position.y = -100 -- Hide
return
end
local rot = gameobject.transform.rotation
rot.y = rot.y + rotation_speed * dt
gameobject.transform.rotation = rot
end
function on_trigger_enter(other)
if other.name == "Player" and not collected then
collected = true
print("Collected!")
end
end
Checklist
Before generating GameSpec:
- [ ] All GameObjects have unique IDs
- [ ] Main camera exists with
isMainCamera: true - [ ] Camera has correct
usePointerLock(true for FPS, false for 2D) - [ ] Lights are configured (ambient + directional/point)
- [ ] Collision objects have
hasCollision: true - [ ] Triggers have
isTrigger: true - [ ] Script IDs reference existing ScriptDefinitions
- [ ] Lua scripts use correct Transform update pattern
- [ ] Input handling includes safety check
if not input then return end
Common Mistakes to Avoid
- ❌
gameobject.transform.position.x = x + 1→ ✅ Use local variable pattern - ❌ Forgetting
hasCollision: true→ Objects pass through each other - ❌
usePointerLock: truefor 2D games → Breaks keyboard input - ❌ Jump without edge detection → Continuous jumping
- ❌ Not multiplying by
dt→ Frame-rate dependent movement
Reference
For detailed API reference, see:
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/game-generator-mm8o52k7/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/game-generator-mm8o52k7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/game-generator-mm8o52k7/download' --output '.skill-downloads/game-generator-mm8o52k7/SKILL.md.part' && mv '.skill-downloads/game-generator-mm8o52k7/SKILL.md.part' '.skill-downloads/game-generator-mm8o52k7/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/game-generator-mm8o52k7/SKILL.md' && test -s '.skill-downloads/game-generator-mm8o52k7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/game-generator' && cp -R '.skill-downloads/game-generator-mm8o52k7' '.claude/skills/game-generator'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/game-generator-mm8o52k7'openskills read 'game-generator-mm8o52k7'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/game-generator-mm8o52k7/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.