farworld-labs/remix-skills61 installs
remix-game-best-practices
Mobile-first game creation best practices for Remix
How do I install this agent skill?
npx skills add https://github.com/farworld-labs/remix-skills --skill remix-game-best-practicesIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides a set of best practices and coding standards for creating mobile games for the Remix platform. It includes instructions for using the official Remix SDK and prohibits certain browser APIs to ensure compatibility and security within the platform's environment. No malicious patterns were detected.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Game Creation Best Practices
Mobile-First Requirements
- Build for portrait orientation only.
- Canvas must be
720x1080(2:3 aspect ratio). - Do not use landscape layouts or controls.
- Design for thumb-friendly interactions and readable UI.
Mandatory Remix SDK Usage
Include the SDK script in HTML <head>:
<script src="https://cdn.jsdelivr.net/npm/@remix-gg/sdk@latest/dist/index.min.js"></script>
Use only the supported SDK APIs:
window.RemixSDK.singlePlayer.actions.saveGameState({ gameState: {...} })window.RemixSDK.singlePlayer.actions.gameOver({ score: number })window.RemixSDK.onPlayAgain(() => { ... })window.RemixSDK.onToggleMute((data) => { ... })window.RemixSDK.ready()window.RemixSDK.gameStatewindow.RemixSDK.hapticFeedback()
Forbidden APIs and Patterns
- Do not use
localStorage. - Do not use
sessionStorage. - Do not use
navigator.vibrate(...). - Do not use
window.RemixSDK.vibrate(...). - Do not use non-existent SDK methods (
save,checkpoint, etc.).
Game Over and Restart Flow
- End runs only with:
window.RemixSDK.singlePlayer.actions.gameOver({ score: finalScore })
- Do not implement a custom game-over screen.
- Handle replay via
window.RemixSDK.onPlayAgain(...).
State Persistence
- Persist progress only with
saveGameState. - Read persisted values from
window.RemixSDK.gameStateafterawait window.RemixSDK.ready(). - Keep saved state compact and serializable.
Haptics and Audio
- Use
window.RemixSDK.hapticFeedback()for collisions, scoring, UI interactions, and game over. - Respect
onToggleMutestate for all game audio. - Use lightweight Web Audio API SFX for better mobile performance.
Framework Rules
Phaser (2D)
- Use global
Phaser(no imports). - Use scene lifecycle (
preload,create,update). - Use Arcade physics for collisions.
- Do not set
parentinPhaser.Gameconfig.
Three.js + Cannon-ES (3D)
- Use globals
THREEandCANNON(no imports). - Use
requestAnimationFrameloop. - Include ambient + directional lighting.
- Sync mesh transforms from physics bodies every frame.
Code and Runtime Constraints
- Write ES6 JavaScript only (no TypeScript).
- Do not use
importstatements. - Assume browser-only runtime (no Node.js APIs).
- Define
initGame()and call it at the end of the file.
Validation Checklist
Before finalizing a game, verify:
- Portrait 2:3 canvas (
720x1080). - SDK hooks present (
gameOver,onPlayAgain,onToggleMute). - No forbidden storage or vibration APIs.
- Haptics integrated for meaningful gameplay events.
- Restart flow works cleanly from
onPlayAgain.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/farworld-labs/remix-skills/remix-game-best-practices">View remix-game-best-practices on skillZs</a>