/homie:portfrom Homie
Ports an existing single-player web game into a multiplayer Homie studio: grades feasibility, adds netplay rooms, bots, touch controls, stable camera, and runs owner tests before publishing on request.
Ships in Homie. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A port is done when strangers who press Play land in the same live room, each browser renders the game itself, bots fill the empty seats, rounds end and restart, the controls mean the same thing every second on a phone and a computer, and the checks below pass on the live site. Take as long as it needs; quality is the bar, not speed. Never call it done on a guess: the checks say, or you say plainly what still fails.
The person should not have to type anything after asking. Find what you need, decide, and keep going. Stop only for something only they can give: the one Cloudflare approval, a licence question, or a game that is not a fit.
Finish in this turn. A port takes a long time; stay with it until it is live and
checked. Never end your turn, schedule a wake-up, or hand back "it is running" while
a check, a build or a deploy is still going: wait for it by polling (a short sleep
then tail of its log, repeated) and keep working. When your turn ends, the
processes you started (the dev server, a running check) end with it, and a
half-ported game is left behind.
index.html. Otherwise look one level down for the only folder with one.studio.json: here or above, else next to the
game (find .. -maxdepth 2 -name studio.json). One found: use it. None: set one
up first with the studio-setup skill (name it after the person's game), then
come back. Several: use the one the person named, or ask which.npx --no-install homie-studio port plan <game>
must work. If it says unknown command, the studio's @homie-rocks/studio is older than
the port toolkit: call the Homie MCP tool game_port for the pinned package and
install it exactly as it says, then run npm install. Without the connector,
npx -y @homie-rocks/studio@latest upgrade says what to change (the studio-setup skill, "An existing
studio that is behind").npx --no-install homie-studio port plan <game folder>
The plan is a draft from reading files: engine, loop, input, camera, physics,
storage, audio, size, licence, risks, and a grade. Now read the code yourself: the
main loop, where input is read, what the state is (player, enemies, pickups, level,
score), how the camera moves, what "game over" is. Then write PORT.md in the game
(template: references/PORT-TEMPLATE.md) with:
defineMove for
immediate local movement, the existing renderer consuming predicted/interpolated poses;Tell the person the grade and why in two or three lines, then go on. If it is not a fit (it needs its own server, WebAssembly threads, or its licence forbids it), stop there and explain what would make it portable. The port toolkit is in beta: a game that is not a fit today, or a port the checks cannot judge, is worth a port request at https://github.com/homie-rocks/homie/issues/new/choose (the game's public address and licence, the grade and why; no keys or private addresses).
Licence: a game you did not make must carry a licence that allows changing and publishing it (MIT, Apache-2.0, BSD, ISC...). Keep the licence file with the game. No licence, or a licence that forbids it: port it for private testing only and say so.
npx --no-install homie-studio port import <game folder> --id <id> [--name "<Name>"]
It copies the game to games/<id>/ untouched except: the port toolkit loads first
in <head> (sandbox shims, first-touch audio, window.HomiePort) and the viewport
is phone-safe. game.json declares the target rules/view entry. The copied source is a
reference until its rules and view are rewritten; it is not a second build path. The id is the
game's address: lowercase, digits, hyphens.
Read the game skill's RULES.md and
REWRITE.md, then extract truth from the existing loop step by step.
This is a manual rewrite to rules plus view with room.host: "server". Keep the art,
renderer, controls, sound and feel. port import only copies files; it does not convert
rules. Existing ports retain the compatible host scaffold for upgrades. Follow references/RECIPE.md for the
same rules/view contract used by the starters. Never add a browser host to get past a rules error.
Use declared entities and events for hits, scores, spawns and turns, shared defineMove
for local prediction, authored map data for collision, and world.math/the provided clocks
and random source for deterministic logic. Match the original movement before adding
multiplayer. Bots and guide floors use the same legal inputs and the world's skill policy.
Round, late arrival, watch and TV behavior must fit the actual game; keep a board game's
turns and a tank game's intentional steering. Do not silently turn it into a gem collector.
Use the rules starter's truthful exposePort probe; adapt its input, body and camera values
to what players actually see. Report renderer counters when available. The first browser
leaving cannot end a server-hosted room; no browser checkpoint or host election is needed.
Phone controls stay at the edges; keep the world readable upright and sideways, with an
unmistakable own player. Read references/LESSONS.md for control
and camera failures, applying their lessons to the preserved game rather than replacing it.
Build first (npm run build); repair rules guard, types and deterministic play errors using RULES.md.
In the studio, start the site locally and run the checks. Both are long-running:
start each as a background task your app keeps alive (Claude Code: the Bash
tool's run_in_background; a nohup ... & inside an ordinary command can be killed
when that command returns, and a dev server that dies mid-check fails every later
row). The full check takes 3–6 minutes; poll its log with short commands.
npm run dev > .dev.log 2>&1 # background task: http://127.0.0.1:8787
npx --no-install homie-studio port check <id> --url http://127.0.0.1:8787 > .port-check.log 2>&1 # background task
tail -5 .port-check.log # poll until it prints PASS or NOT YET
The check says so when the site stops answering; restart the dev server as a background task and rerun.
--only owner-desk,owner-phone,... reruns single rows while you fix. Each row, what
it measures and how to fix a failure: references/CHECKS.md.
npm i -D [email protected] && npx playwright-core install webkit).Look at the screenshots in games/<id>/.port/check-*/ yourself: is your own
body easy to find, does the world fill an upright phone, is the text readable,
does the big screen show the game? A passing check with an ugly, tiny or
confusing picture is not done. When you debug in a browser of your own, open one
at a time (the check already runs two). Fix, rebuild
(npm run build; the dev server serves the new files), check again. When you are
done, stop the dev server: stop it with npx --no-install homie-studio dev --stop, which stops exactly this studio's dev server (and its Wrangler) and nothing else. Never pkill, killall or lsof ... | xargs kill by name or port: other projects on this machine may run their own wrangler dev, and a pattern stops theirs too.
If something still fails after real effort, say exactly which row, what you saw, and why — never hide it.
When the rows pass, the port works; whether it is good is the playtest skill's question: it adds a
phone held sideways, the look while playing, the UI in landscape, the game's real sound, a round with
one player trying and one idle, and a blind review by a fresh reviewer. A port that went silent or
never had sound: the sound skill makes and wires effects and a theme for free.
A port request authorizes building and checking. If going live or listing was not
requested, hand off the checked local result; do not begin account setup or deploy.
When publication is requested, follow the publish skill: npm run deploy (the person approves Cloudflare once
if Wrangler is not signed in), then run the full check against the live site:
npx --no-install homie-studio port check <id> --url <the live site> > .port-check-live.log 2>&1 # background task
If a directory listing was requested, list it with the Homie MCP tool studio_publish { site } (without the connector,
npx --no-install homie-studio publish). Commit the studio
(git add -A && git commit -m "Port <Name> to multiplayer" inside the studio).
Five to eight lines: the grade and why; what multiplayer means in their game now (rounds, bots, what the host decides); the check table (each row pass/fail, with the numbers that matter); the local start command and paths, or the live Play/big-screen links and any requested directory listing; and anything still weak, plainly. If something in Homie itself got in the way, say it can be reported at https://github.com/homie-rocks/homie/issues/new/choose.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
multiplayer, netplay, game-porting, homie-studio, touch-controls
Other plugins' skills for the same job
npx claudepluginhub homie-rocks/homie --plugin homie25 skills in this plugin
/animateGive a game's characters rigs and clips that move well on a phone — the skeleton standard (one humanoid vocabulary, a mini and a quadruped family), free CC0 animated characters from Homie's starter library made phone-sized (one draw call, helper bones gone) with their clips in one shared clip library per skeleton, the library's CC0 humanoid clips retargeted at build time onto any other rig (a generated character, the person's own), the shared runtime @homie-rocks/studio/animate (idle, walk and run blended by speed, actions on the upper body while running, additive hits, hit-stop, jump, fall and land with squash and stretch, lean, look-at, springs, foot planting, crowd mode), the animation card with looping previews, and tuning a move's feel in the Game Lab. Use when someone wants characters that walk, run, jump, attack or die, asks about rigs, skeletons, bones or retargeting, says the animation looks stiff, floaty or slides, or wants a jump or a hit to feel better./appMake or change a Homie app: one morphing screen, roles and reusable parts, live across phones, wall screens, kiosks and staff tablets. Use for customer apps, venue screens, queues, workshop boards and cause dashboards in a studio with studio.json. Apps use the same engines, rooms, parts and standalone builds as games, without compulsory rounds, scores, bots or players./artMake game and app art using the official fal MCP, studio art direction, local capture and asset checks./functionsBuild and prove durable studio functions for record, order, schedule and tool events, with concurrent database updates and event feeds./gameMake or change a rules-plus-view multiplayer web game inside a Homie studio — the server runs the rules, each browser predicts its own movement and renders the game, strangers meet in public rooms, bots fill empty seats, rounds end and restart — prove it with two browsers finishing a round, and give it an epic landing page (a full-bleed hero from its own footage or art, the pitch, Play, phone / computer / TV, live rooms, how to play, credits). Use when someone in a Homie studio (a folder with studio.json) asks for a new game, a change to a game, a game whose own AI decides (opponents picking tactics, an NPC's reaction, a director's call, a turn's move), or a better page for a game ("make my game's landing page epic")./labBuild a Game Lab for one mechanic of a studio's game (the jump, a hit, a dash, a drift, a landing) and iterate on how it FEELS with the creator, side by side. The lab plays one short take in two builds at once, New (the working tree) and Today (the last commit), on one clock with the same seed and presses, slowed to a tenth or stepped a frame at a time, with a timeline of named phases, graphs of tracked values New against Today, the game's own onion skins and arcs, preset views, a phone-size view, and live sliders that write kept values back into the game's tunables.json. Use when someone says "iterate on the jump", "make the hit feel punchier", "tune the drift", "the dash feels floaty", "the landing is stiff", "add juice", "hit-stop", "squash and stretch", "screen shake", or asks for an animation or feel editor for their game.