migrate-to-builds
БесплатноБез исполняемых скриптовНе проверенTest that a Cloud Agent environment will work with prebuilt environment builds and recommend any required changes. Use when the user wants to migrate to…
от eohmig381 установка в других каталогахОб этом скилле
Migrate an Environment to Builds
Use this skill when the user wants to test that the current Cloud Agent environment will work with environment builds, or asks to migrate to builds. Do not enable builds yourself; the user enables them on the environment page after review.
Resources
| Workflow | Reference |
|---|---|
| Migrate an existing environment to builds | Migrate an environment to builds |
Choose the workflow
Read Migrate an environment to builds and follow it. Call environment-info first when available so the reference can classify repository-managed vs DB-managed configuration.
Mental Model
A Cloud Agent starts in an isolated remote machine. Its environment has two layers:
- Base environment: a saved snapshot, Dockerfile-built image, explicit image, or Codex's default image supplies the operating system, system packages, and toolchains.
- Repository bootstrap: after Codex checks out the selected repository revision,
installrefreshes project dependencies and generated state.startandterminalsthen start services needed while the agent works.
With environment builds, install creates the baseline snapshot and is not rerun when a new pod boots from that build. Per-pod initialization therefore belongs in start or terminals. Without a build, setup may run install while preparing the agent.
Environment changes normally affect newly started agents. Do not imply that editing configuration rebuilds or migrates an already-running agent.
Configuration Sources and Precedence
Codex resolves environment configuration in this order:
.cursor/environment.jsonfrom the repository revision used to start the agent.- A personal saved environment for the repository.
- A team saved environment for the repository.
The first available source wins. Prefer the Cloud Agent environment-info tool when available; otherwise inspect the repository and explain what cannot be confirmed.
Choosing install, start, or terminals
Classify each setup action by the lifetime of the state it creates:
| Location | Use it for | Expected behavior |
|---|---|---|
install |
Durable repository setup tied to checked-out source: package installation, compilation, code generation, and local configuration that can be recreated. | Runs after source is available and may run again after changes or against cached state. It must be idempotent, non-interactive, and terminate successfully. No process started here should be expected to survive into a later boot. |
start |
Per-boot runtime initialization: starting system daemons, restoring ephemeral service state, or launching a supervised/background service required whenever the machine starts. | Runs every time the environment starts. It must tolerate restarts, avoid duplicate processes, and reach a clear success or failure state. |
terminals |
Long-running foreground processes the agent should see, inspect, restart, or read logs from: development servers, watchers, and workers. | Runs as named tmux-backed processes after startup. Commands may remain active for the lifetime of the environment. |
A development server does not belong in install: cached setup or a snapshot may preserve its files but not its process, and a foreground server can prevent installation from completing. Put it in terminals when the agent benefits from visible logs and direct restarts. Use start when a startup script launches or reconciles the service under a process manager, confirms readiness, and then returns.
Diagnose misplaced work
When environment setup hangs, behaves differently after a snapshot, or loses services between agents:
- Identify the phase and command from setup logs. Do not infer the failing phase from the script name alone.
- Ask whether the command creates durable files or requires a live process.
- If
installlaunches a server, watcher, worker, Docker daemon, or other process that must still be running later, move that responsibility tostartorterminals. - If
startrepeatedly installs packages, compiles the repository, or regenerates source-derived files, move that responsibility toinstall. - Make the destination idempotent and validate with a build plus fresh-agent smoke test when tools allow.
Typical signals:
- Install never completes: a foreground server or interactive command is running in
install. - Files exist but the service disappears on a later boot: the service was started during
installand its process was not part of durable state. - Every boot is slow or changes the lockfile: dependency setup is incorrectly running in
start. - Start fails with “address already in use” or duplicate workers: the start path is not idempotent.
Safety
- Never put tokens, passwords, private keys, or secret values in
environment.json, Dockerfiles, committed scripts, logs, or chat output. Use supported env
Установить migrate-to-builds в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл migrate-to-builds?
Test that a Cloud Agent environment will work with prebuilt environment builds and recommend any required changes. Use when the user wants to migrate to builds, test build compatibility, or follow the Builds page setup-agent flow.
Как установить скилл migrate-to-builds?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-to-builds запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic