Skip to main content
CurfluffleGRUNTS
Skip to content

Use Cases

Tutorial: Refactor safely

Get a safe, ordered refactor plan with a test safety net.

  1. 1Name the target ('PlayerController god class') and a goal.
  2. 2Get the smells, safest-first moves, a characterization-test safety net, Unity cautions, and a rollback plan.

API — deterministic output.

curl -X POST $CURFLUFFLE_API_URL/tools/refactor.plan \
  -H "Authorization: Bearer $CURFLUFFLE_API_KEY" -H "Content-Type: application/json" \
  -d '{"target":"PlayerController god class","goal":"make it testable"}'
# → { ok:true, data:{ result:{ smells, moves, safetyNet, unityCautions, rollback }, markdown } }