Skip to content

快速开始

交给 Agent 来做

把下面这段粘贴到 Claude Code、Codex、Cursor、Gemini CLI、OpenCode、Windsurf、GitHub Copilot 或 Cline 中:

text
Install Ruby Anything with npm i -g ruby-anything, then run ruby-anything setup. Run ruby-anything go -- <command that starts this app> and finish the port until ruby-anything gate --app passes.

Agent 会加载 Ruby Anything skill,向你询问移植所依赖的决策,并在你选定的检查点停下。

或者自己动手

sh
npm install -g ruby-anything
ruby-anything setup           # adds it to Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot and Cline
ruby-anything doctor          # checks Ruby, Rails and the runtimes your original needs

警告。 录制会运行原应用的真实代码。请在副本上操作,并使用测试数据库(--db-reset "<command>")。切勿让它连接生产数据。

一条命令:go

sh
ruby-anything go                       # 1st run: analyze -> rails/port/PLAN.md + TASK.md
ruby-anything go -- python3 app.py     # once DECISIONS.md has ADRs: record, build the front door, replay
ruby-anything go                       # every later run: replay, fallback rate, next route -> TASK.md

每次运行都会把迁移推进到下一阶段,并写入 rails/port/TASK.md。按它说的做(或者交给 Agent),然后再次运行 go。参见 循环。

在 GitHub 上编辑此页 →