Skip to content

Bắt đầu nhanh

Để agent làm thay bạn

Dán đoạn này vào Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot hoặc 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.

Agent sẽ nạp skill Rails Anything, hỏi bạn các quyết định mà bản port phụ thuộc vào, và dừng lại ở các checkpoint bạn chọn.

Hoặc tự làm

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

Cảnh báo. Việc ghi lại sẽ chạy code thật của bản gốc. Hãy làm việc trên một bản sao, với database test (--db-reset "<command>"). Đừng bao giờ trỏ nó vào dữ liệu production.

Một lệnh duy nhất: 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

Mỗi lần chạy sẽ đưa migration sang giai đoạn tiếp theo và ghi ra rails/port/TASK.md. Làm theo những gì file đó nói (hoặc để agent làm), rồi chạy go lần nữa. Xem Vòng lặp.

Sửa trang này trên GitHub →