deployment
Skill1 starsChanged 2 months agoMITView on GitHub
Ebitengine cross-platform deployment: desktop, WebAssembly, mobile (iOS/Android), Steam, Nintendo Switch.
- Installs packages
18 other projects use a version of this.
Adopted by
Most recently taken up by
- NVIDIA/Model-Optimizertheir own version, first seen Oct 2, 2026
- lintangknitto/agent-skillstheir own version, first seen Sep 23, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- MartinOlivero/saas-buildertheir own version, first seen Jun 18, 2026
- binnicordova/expo-boilerplatetheir own version, first seen Jun 6, 2026
- StarRocks/starrocks-debug-skillstheir own version, first seen May 26, 2026
Used with
Projects with it also use debugging, api-design and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkilldebugging
Debugging guidelines and best practices
Also in 5 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 4 projects that use this
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- NVIDIA/Model-Optimizer★ 5.2ksame name
- StarRocks/starrocks-debug-skills★ 77same name
- nahid-sparktales/agent-dispatcher★ 59same name
- digitalocean-labs/do-app-platform-skills★ 36same name
- vshrinath/virtual-product-factory★ 16same name
- DojoCodingLabs/code-sensei★ 14same name
- binnicordova/expo-boilerplate★ 11same name
- kpbray/power-bi-agent-skills★ 9same name
- YepAPI/skills★ 8same name
- martingarramon/claude-code-starter-kit★ 4same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- arch-linux-cachyosSkill
- arch-linux-triageSkill
- bash-defensive-patternsSkill
- bash-linuxSkill
- bash-scriptingSkill
- beansSkill
- context7Skill
- docker-compose-setupSkill
- audioSkill
- ecsSkill
- game-loopSkill
- inputSkill
- physicsSkill
- renderingSkill
- resourcesSkill
- ebitenSkill
- geminiSkill
- go-browser-testsSkill
- go-devSkill
- go-fluent-testingSkill
- go-htmx-frontendSkill
- go-setupSkill
- interactive-browser-testingSkill
- keep-on-goingSkill
- mcpcSkill
- minimaxSkill
- pixellabSkill
- playwright-mcpSkill
- public-repo-maturitySkill
- searxngSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 93
Create an HTML file to load the WASM module:
- Very specific: line 192
Add to build.gradle: implementation files('libs/game.aar')
- Very specific: line 193
Create an Activity that launches the Ebiten game view
- Very specific: line 227
Create a UIViewController that presents the Ebiten view
- Distinctive: line 417
Use this skill only when the task clearly matches the scope described above.
- Distinctive: line 418
Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Distinctive: line 419
Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment
Cross-platform builds for Ebitengine games: desktop, web, mobile, consoles.
Supported Platforms
| Platform | Status | Backend |
| Windows | Stable | DirectX (default), OpenGL |
| macOS | Stable | Metal (default), OpenGL |
| Linux | Stable | OpenGL |
| WebAssembly | Stable | WebGL |
| Android | Stable | OpenGL ES |
| iOS | Stable | Metal |
| Nintendo Switch | Available via paid license | Proprietary |
Desktop Build
Basic Build
# Build for current platform
go build -o game .
# Windows
GOOS=windows GOARCH=amd64 go build -o game.exe .
# macOS
GOOS=darwin GOARCH=amd64 go build -o game .
GOOS=darwin GOARCH=arm64 go build -o game .
# Linux
GOOS=linux GOARCH=amd64 go build -o game .CGO Dependencies
Ebitengine uses CGO on some platforms:
| Platform | CGO Required | Notes |
| Windows | No | Pure Go with DirectX |
| macOS | Yes | Needs Xcode/Clang |
| Linux | Yes | Needs gcc, libgl1-mesa-dev, libxcursor-dev, libxrandr-dev, libxinerama-dev, libxi-dev, libxxf86vm-dev, libc6-dev |
Linux Dependencies
# Debian/Ubuntu
sudo apt-get install libc6-dev libgl1-mesa-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxxf86vm-dev libasound2-dev pkg-config
# Fedora
sudo dnf install mesa-libGL-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel libXxf86vm-devel alsa-lib-devel pkgconfig
# Arch
sudo pacman -S mesa libxcursor libxrandr libxinerama libxi libxxf86vm alsa-lib pkg-configWindows Cross-Compile from Linux
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o game.exe .macOS Cross-Compile
Cross-compiling macOS binaries from Linux requires osxcross or similar toolchain. Alternatively, build on macOS directly or use CI.
WebAssembly
Build
GOOS=js GOARCH=wasm go build -o game.wasm .HTML Shell
Create an HTML file to load the WASM module:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Game</title>
<style>
body { margin: 0; background: #000; }
canvas { display: block; margin: auto; }
</style>
</head>
<body>
<canvas id="game"></canvas>
<script src="wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(
fetch("game.wasm"), go.importObject
).then(result => {
go.run(result.instance);
});
</script>
</body>
</html>Copy wasm_exec.js from your Go installation:
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .wasmserve for Development
go install github.com/hajimehoshi/wasmserve@latest
wasmserve -http=:8080 .WASM Considerations
| Aspect | Detail |
| Audio | Limited to specific formats; no MP3 in some browsers |
| File system | No direct file access; use embed.FS or HTTP fetch |
| Performance | 30-60% of native; heavy shaders may struggle |
| Binary size | Can be large; use -ldflags="-s -w" to reduce |
| Gamepad | Supported via standard gamepad API |
| Touch | Supported via touch events |
| Fullscreen | Limited browser support |
| Save data | Use gdata library or localStorage |
Optimize WASM Binary
# Strip debug info
GOOS=js GOARCH=wasm go build -ldflags="-s -w" -o game.wasm .
# Further compress with gzip
gzip -9 -c game.wasm > game.wasm.gzServe with Content-Encoding: gzip for automatic decompression.
Android
Setup
# Install ebitenmobile tool
go install github.com/hajimehoshi/ebiten/v2/cmd/ebitenmobile@latestBuild
# Generate Android library
ebitenmobile bind -target android -o game.aar .
# For use in Android Studio projectRequirements
| Requirement | Detail |
| Android SDK | API level 16+ |
| NDK | Latest recommended |
| Go version | 1.21+ |
| minSdkVersion | 16 |
Integration with Android Project
- Run
ebitenmobile bind -target android -o game.aar . - Copy
game.aarinto Android Studio project'slibs/directory - Add to
build.gradle:implementation files('libs/game.aar') - Create an
Activitythat launches the Ebiten game view
iOS
Setup
go install github.com/hajimehoshi/ebiten/v2/cmd/ebitenmobile@latestBuild
# Generate iOS framework
ebitenmobile bind -target ios -o Game.xcframework .
# For use in Xcode projectRequirements
| Requirement | Detail |
| Xcode | 14+ |
| macOS | Required for build |
| Go version | 1.21+ |
| Deployment target | iOS 13+ |
Integration with Xcode Project
- Run
ebitenmobile bind -target ios -o Game.xcframework . - Drag
Game.xcframeworkinto Xcode project - Create a
UIViewControllerthat presents the Ebiten view
Mobile Input Considerations
| Desktop Input | Mobile Equivalent |
| Keyboard arrows | Touch joystick / swipe |
| Space / Z / X | Tap buttons / multi-touch zones |
| Mouse click | Tap |
| Mouse position | Touch position |
| Escape | Back button / gesture |
| Gamepad | Bluetooth gamepad (supported) |
Touch Controls Pattern
type TouchButton struct {
Bounds image.Rectangle
Pressed bool
ID ebiten.TouchID
}
func (b *TouchButton) Update() {
b.Pressed = false
touchIDs := inpututil.AppendJustPressedTouchIDs(nil)
for _, id := range touchIDs {
x, y := ebiten.TouchPosition(id)
if x >= b.Bounds.Min.X && x <= b.Bounds.Max.X &&
y >= b.Bounds.Min.Y && y <= b.Bounds.Max.Y {
b.Pressed = true
b.ID = id
}
}
}Steam Integration
import "github.com/hajimehoshi/go-steamworks"
func init() {
steamworks.Init()
}
func (g *Game) Update() error {
steamworks.Update()
// Achievements
steamworks.SetAchievement("first_win")
steamworks.StoreStats()
// Leaderboards
steamworks.UploadLeaderboardScore("high_score", score)
return nil
}Requires Steamworks SDK installed. Only works when launched through Steam.
Build Optimization
Binary Size
# Strip symbols
go build -ldflags="-s -w" -o game .
# With UPX compression (optional, may trigger antivirus)
upx --best gameEmbed Assets
//go:embed assets/*
var assets embed.FSUsing embed.FS eliminates external file dependencies and simplifies deployment.
Build Tags
// +build !mobile
package main
// Desktop-only code
// +build mobile
package main
// Mobile-specific codeCI/CD GitHub Actions
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxxf86vm-dev libasound2-dev pkg-config
- name: Build
run: go build -ldflags="-s -w" -o game .
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build WASM
run: GOOS=js GOARCH=wasm go build -ldflags="-s -w" -o game.wasm .
- uses: actions/upload-artifact@v4
with:
name: wasm-build
path: game.wasm
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [build, wasm]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build all platforms
run: |
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o game-windows-amd64.exe .
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o game-darwin-arm64 .
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o game-linux-amd64 .
GOOS=js GOARCH=wasm go build -ldflags="-s -w" -o game.wasm .
- uses: softprops/action-gh-release@v1
with:
files: |
game-windows-amd64.exe
game-darwin-arm64
game-linux-amd64
game.wasmAnti-Patterns
| Don't | Do |
Read files with os.Open() at runtime | Use embed.FS for portable assets |
| Hard-code file paths | Use embed.FS or relative paths from executable |
| Test only on your dev platform | Set up CI for all target platforms |
| Skip mobile-specific input handling | Add touch controls for mobile targets |
| Use CGO-dependent libraries for WASM | Stick to pure Go for WASM compatibility |
| Ignore WASM binary size | Strip with -ldflags="-s -w" and gzip |
Use os.ReadFile() for assets | Use embed.FS or resource manager |
| Assume desktop resolutions | Handle dynamic layouts in Layout() |
| Skip testing audio on mobile/WASM | Test audio on each target platform |
When to Use
This skill is applicable when building, packaging, or deploying an Ebitengine game for any platform: desktop, web, mobile, or console.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

