Skills for Real Engineers. Straight from my .agents directory.
melonjs-deployment
Agent skill frommelonjs/melonJS
Use this skill when packaging, shipping or scaffolding a melonJS game — starting a project with create-melonjs, building for the web, wrapping as a native app with Capacitor or Cordova, publishing to WeChat Mini Games or Facebook Instant Games, browser support and transpiling. Triggers on: create-melonjs, scaffold, new project, build, deploy, publish, Capacitor, Cordova, native app, iOS, Android, WeChat, Instant Games, browser support, transpile, ES2022, bundle size, tree-shaking.
How to install melonjs-deployment
npx skills add melonjs/melonJS# or add only this skill to Claude Code: copy the folder
packages/melonjs/skills/melonjs-deployment/
# into
~/.claude/skills/melonjs-deployment/ (all projects)
.claude/skills/melonjs-deployment/ (one project)
1# Starting and shipping a project23## Scaffolding45Start from the template rather than assembling a build by hand:67```bash8npm create melonjs@latest my-game9```1011The project name is required — without it the command prints its usage and12exits. It downloads the melonJS TypeScript boilerplate (Vite, TypeScript and the13debug plugin already wired in), which saves you the top-level-await and14asset-path issues that a hand-rolled config usually hits first.1516## Adding melonJS to an existing project1718```bash19npm install melonjs20```2122```js23import { Application, Sprite, loader } from "melonjs";24```2526The package is a tree-shakeable ES module with TypeScript declarations included27and **no runtime dependencies**.2829A CDN build exists for quick experiments, but not for production:3031```html32<script type="module">33 import { Application } from "https://cdn.jsdelivr.net/npm/melonjs@20/+esm";34</script>35```3637## Browser support and transpiling3839The published bundle targets **ES2022** and uses private class members. A browser40that predates that **cannot parse the file at all** — it fails at load, not when41a feature is used, so the symptom is a blank page with a syntax error.4243To support older browsers, transpile melonJS **together with your own code**.44The usual trap is that build setups skip `node_modules` by default, leaving45melonJS untouched however low you set your target:4647```js48// vite.config.js — esbuild downlevels dependencies too49export default { build: { target: "es2020" } };50```51…
Excerpt shown under the repository's MIT license.
More skills in melonJS
Similar skill repositories
An agentic skills framework & software development methodology that works.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.
