rename-model/SKILL.md
# Model Name Migration Guide This guide describes how to rename a Rails model. We'll use renaming `Circle` to `Shape` as an example. ## Step 1: Rename the database table Create a migration to rename the table: ```ruby rename_table :circles, :shapes ``` Commit and deploy this change before proceeding. The old model code will continue to work because Rails looks up the table name from the model class, and the model still references the old table name until we update it. ## Step 2: Create new
npx skillsauth add jasonswett/llm-skills rename-modelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This guide describes how to rename a Rails model. We'll use renaming Circle to Shape as an example.
Create a migration to rename the table:
rename_table :circles, :shapes
Commit and deploy this change before proceeding. The old model code will continue to work because Rails looks up the table name from the model class, and the model still references the old table name until we update it.
Before:
class Circle < ApplicationRecord
# contents of model
end
After:
class Circle < Shape
# class is now empty
end
class Shape < ApplicationRecord
# contents of model
end
Note: Circle < Shape is a transitional backwards-compatibility shim, not
Single Table Inheritance. STI is irrelevant here — Circle exists only so
existing references keep working until they're updated to Shape. No type
column is needed on the table.
testing
--- name: software-design-review --- # Design When invoked, unless otherwise directed, follow the following steps. Steps 1-6 should be autonomous; step 7 is interactive. You should also support "full self-driving" mode where you just apply all fixes to all violations without prompting. The user can pass "fsd" to invoke full self-driving mode. Note: all the following steps should be followed, strictly and literally, even for trivial-seeming changes. This skill applies just as much to test cod
testing
Review tests for design quality using test design guidelines.
development
Implement a change using test-driven development with RSpec. Guides the specify-encode-fulfill workflow.
tools
Improve performance