始める無料で始める

Practice Safe Refactoring

The safe refactoring workflow is: invoke the skill, then verify tests still pass. This ensures your changes don't break existing behavior.

The project has a refactor skill already set up in .claude/skills/refactor/. You have test coverage from the previous exercise. Now practice refactoring routes.py safely. The get_album_stats function handles both data preparation and statistics calculation. Extract the data preparation logic into a helper function.

この演習はコースの一部です

Software Development with Claude Code

コースを見る

演習の手順

  • Start Claude Code with claude.
  • Use the refactor skill: /refactor @routes.py to extract data preparation logic into a helper function.
  • Run the tests to verify the refactoring didn't break anything.
  • When done, type /exit to exit Claude Code.

実践的なインタラクティブ演習

理論を実践に変える、インタラクティブな演習のひとつをお試しください

演習を開始する