/engineroom:adopt-projectfrom engineroom
Make a repository run with engineroom - read the repository, work out what its app needs (servers, ports, emulators, databases, secret files, set-up per worktree), recommend the project's engineroom settings and up and down scripts, and write them into the developer's own settings only after they agree. Learns the developer's own stacks from recipes kept in their settings. Use when the developer says "adopt this repo", "set this project up with engineroom", "make engineroom run this", "how should this run in worktrees", "integrate this repository", or registers a project that has no up script yet.
Ships in engineroom. 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.
None: SKILL.md is the whole skill.
engineroom runs each worktree of a project on its own slot of ports, starts its app with the
project's up script and stops it with down. Those live in the developer's own settings, outside
the repository: engineroom settings where <project> prints the folder. This skill reads the
repository and recommends what to put there. It writes nothing until the developer has seen it and
said yes, and it never writes into the repository itself unless the developer owns it and asks for
its recommendations in .engineroom/.
engineroom version answers, and engineroom projects lists the project. If it is not
registered, offer the register-project skill first.engineroom settings where <project>: the project's settings folder. engineroom settings status:
the settings root (its first line), and whether the settings sync to a private repository.engineroom.toml and scripts in the settings folder,
and any .engineroom/ folder in the repository. Recommend changes to those, not a second copy.The developer teaches this skill their own stacks in <settings root>/adopt/, one Markdown file
per stack or habit (for example vite.md, dotnet.md, azurite.md, preferences.md). Read every
file there before analysing the repository. A recipe wins over the general guidance below: it is how
this developer wants that stack run. When there is no adopt/ folder, start from the guidance
below, and offer at the end to record what was learned (step 6).
Find, and note with the file that says it:
vite.config.*, package.json scripts, launchSettings.json, appsettings*.json, .env,
docker-compose.yml)..env, local.settings.json, user
secrets, certificates.Show, with a line of reasoning each:
engineroom.toml: secrets = [...] for the secret files, before any table; a [ports] key
per part (ui = 5173, api = 5000), the numbers the project uses today, which become slot 1;
[links] naming what to open (app = "http://localhost:{{ui}}/"); [derived] values built
from a slot's own; [[render]] templates where a config file must carry a slot's ports;
[[task]] for the project's own jobs (copy a database, seed data). Then
engineroom ports reserve <project> --write gives the project its block of ports and writes slots 1
to 10, where per-slot names such as a database's (names = { database = "app_wt2" }) can be
added. The guide's "Ports and slots" section has the whole format.
up: sources engineroom's stack helper, installs what is missing, and starts each part on the
slot's port, read from ENGINEROOM_PORT_<KEY> with slot 1's number as the fallback:
#!/usr/bin/env bash
# up for project-a: the web app on the slot's ui port, the API on its api port.
. "$(engineroom stack-lib)"
deps . || exit 1
start web "${ENGINEROOM_PORT_UI:-5173}" "http://localhost:${ENGINEROOM_PORT_UI:-5173}/" . -- npx vite --port "${ENGINEROOM_PORT_UI:-5173}" --strictPort
start api "${ENGINEROOM_PORT_API:-5000}" - server -- dotnet run --urls "http://localhost:${ENGINEROOM_PORT_API:-5000}"
start NAME PORT URL DIR -- COMMAND... runs the command in the background, waits for the URL
to answer (or the port to listen, with -), and leaves a part alone that already runs for this
worktree. A part must be told its port on its command line or in its environment, never left to
pick one, and must fail rather than move to another port when its own is taken (Vite's
--strictPort).
down: . "$(engineroom stack-lib)", then stop web api: exactly what up started.
create and teardown, only when a worktree needs set-up of its own (a database per slot)
and its undoing.
What the developer must do: add the slot record and anything rendered to .gitignore
(engineroom slot ignore), save the secret files (engineroom secrets save <project>).
Every script must be safe to run again: check before installing, building or starting, and exit 0 when there is nothing to do. Ask: "Shall I write these into your settings for ?"
On a yes, write the files into the settings folder, make the scripts executable, then run, showing each command and what it printed:
engineroom ports check
engineroom up <session> # inside the project's session: engineroom up
engineroom down <session>
Open the links and say what answered. A failure is fixed in the scripts with the developer, never by
starting a server another way. Then engineroom settings sync when the settings sync to a
repository.
When the developer corrected a recommendation, or the repository used a stack the recipes did not
cover, offer to record it: a short recipe in <settings root>/adopt/<stack>.md saying how that
stack is run (its install, its start command with the port, how to tell it is up, its secret files),
written as instructions for the next adoption. Write it only on a yes, then sync the settings. The
next repository on that stack starts from it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kyleyharris/engineroom --plugin engineroom8 skills in this plugin
/portsSee which ports engineroom gives each project and worktree, check them for clashes, and on a client reach a session's ports on the engine by forwarding them. Use when the developer says "what port is X on", "which ports does this worktree use", "do any ports clash", "is something on that port", "forward X", "I can't reach the app on the engine", "stop forwarding", "what is forwarded"./register-projectRegister the current git repository (or a named folder) with engineroom, so it can be opened, given new worktrees and listed by name. Use when the developer says "register this repo", "add this project to engineroom", "make engineroom know about this repository"./run-stackBuild and run, or stop, the app stack of the current worktree through its project's up and down scripts, with engineroom. Use when the developer says "run the app", "start the stack", "bring the stack up", "stop the stack", "shut it down", or asks to run what this worktree needs, in a repository registered with engineroom./sessionsSee and work engineroom's sessions - which are running, which wait for the developer, start a project's session, join, restart or stop one, open its folder in VS Code, run one of a project's own tasks, and read what engineroom ran. Shows engineroom's commands before anything runs. Use when the developer says "what is running", "which sessions are waiting", "start a session for X", "open X", "join X", "restart X", "stop X", "run the task Y", "what did engineroom just do", "show the history"./setup-machineSet up this machine to run engineroom as the engine or as a client, following engineroom's setup guide (docs/setup.md) - install engineroom when it is missing, check every item for the machine's role, explain each gap, and apply a fix only after showing the exact change and getting a yes. Use when someone says "set up this machine", "install engineroom here", "configure this as the engine", "make this a client", "is this machine set up", or is installing the tool on a new machine./work-localMove the work between the engine and a client with an engineroom handover - take it over to work local on the client, hand it back to the engine, release the engine's work to GitHub, or get a client ready to work local. Shows what the handover would do and blocks on, and runs it only on the developer's word. Use when the developer says "work local", "take the work over", "I'm going offline", "hand back to the engine", "what would a handover do", "is this machine ready to work local", "release the engine", "why is the handover blocked".