Claude Code refactoring-screen skill for renaming SwiftUI VIPER screens
Rename a screen across its Swiftful view, presenter, interactor, router, and cross-screen references.
中文Install in Claude Code
A Claude Code workspace using the SwiftfulStarterProject VIPER layout. The project and its module references are available.
- Review `.claude/skills/refactoring-screen/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/refactoring-screen/` in your project and save the reviewed file as `.claude/skills/refactoring-screen/SKILL.md`.
- Start Claude Code from that project's root, then select `/refactoring-screen` in the slash menu.
Example task
Invoke /refactoring-screen and list the edits and checks for this fictional screen rename.
screen `TrailList` renamed to `RouteList`
existing `TrailListView.swift`, `TrailListPresenter.swift`, `TrailListInteractor.swift`, `TrailListRouter.swift`
other screen invokes `showTrailListView` | tracked event `TrailListView_Appear`What to check
Rename the four modules from `TrailList` to `RouteList`, change `showTrailListView` to `showRouteListView`, and review the `TrailListView_Appear` event name.
Original SKILL.md on GitHub · Updated
Frequently asked question
How do I check cross-screen calls after renaming?
Search again for the prior names and their lower-camel variants. Review initializers, routing, labels, and event strings.