pharo-rename-method

Rename Pharo method selectors using the rename_method MCP refactoring tool.

14|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/KentBeck/SmalltalkGenie --skill pharo-rename-method
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pharo-rename-method
Source: https://github.com/KentBeck/SmalltalkGenie/tree/main/.agents/skills/pharo-rename-method
Command: npx skills add https://github.com/KentBeck/SmalltalkGenie --skill pharo-rename-method

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill aids in safely renaming methods in a live Pharo image, reducing the risk of refactoring errors and improving code maintainability.

Core Features & Use Cases

  • Method Renaming: Safely rename method selectors in a Pharo image.
  • Impact Analysis: Analyze the impact of renaming before applying changes.
  • Test Confirmation: Confirm that the method rename has not broken any functionality.
  • Use Case: When you need to rename a method to improve its readability or to align with new requirements, use this Skill to handle the refactoring with confidence.

Quick Start

To rename the method 'calculateTotal' to 'computeTotal' in the 'Invoice' class, use the following command: 'rename method in Invoice calculateTotal to computeTotal'.

Frequently Asked Questions about pharo-rename-method

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rename methods in a live Pharo image?

To safely rename methods in a live Pharo image, use this Skill to invoke the rename_method MCP refactoring tool, which ensures no unintended changes occur during selector updates.

Can I analyze the impact of renaming a Pharo method before applying changes?

Yes, you can analyze the impact of renaming a Pharo method before applying changes, allowing you to execute refactoring with confidence and avoid breaking existing functionality.

How do I rename a method selector in Pharo to align with new API requirements?

To rename a method selector in Pharo to align with new API requirements, issue a command like 'rename method in ClassName oldSelector to newSelector' to trigger the MCP refactoring tool.

Does the Pharo method renaming process confirm that existing tests still pass?

Yes, the Pharo method renaming process includes test confirmation features to verify that the method rename has not broken any functionality or existing tests in your image.

What is the best way to refactor Pharo code for readability without causing errors?

The best way to refactor Pharo code for readability without causing errors is using the rename_method MCP tool, which safely handles selector updates and improves code maintainability.