What problem does it solve?
This Skill helps developers safely refactor Go web applications built with Muxt, preventing runtime errors caused by mismatches between route definitions, template names, and Go methods.
Core Features & Use Cases
- Guided Refactoring: Provides step-by-step instructions for common refactoring tasks like renaming methods, changing route patterns, or moving templates.
- Coupling Chain Validation: Emphasizes the critical loop of regenerating code and running checks (
go generate, muxt check, go test) to maintain integrity.
- Use Case: When you need to rename a
GetUser handler method to FetchUser in your Muxt application, this skill guides you through updating the template definitions, regenerating handlers, and safely renaming the Go method using gopls.
Quick Start
Use the muxt-refactoring skill to safely rename a receiver method in your Muxt codebase.