Skip to content

快速入門

交給你的代理

把這段貼到 Claude Code、Codex、Cursor、Gemini CLI、OpenCode、Windsurf、GitHub Copilot 或 Cline:

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

代理會載入 Rails Anything skill,詢問你移植所依賴的各項決策,並在你選定的檢查點停下來。

或自己動手

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

警告。 錄製時會執行原版的真實程式碼。請在副本上操作,並使用測試資料庫(--db-reset "<command>")。絕對不要讓它連到正式環境的資料。

唯一需要的指令:go

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

每次執行都會把遷移推進到下一個階段,並寫出 rails/port/TASK.md。照著它的指示做(或交給你的代理),然後再執行一次 go。詳見 工作循環。

在 GitHub 上編輯此頁 →