Use when modifying a Genie-backed Pharo project through the live MCP server on localhost:8087; includes project ownership, image read/change/test/save workflow, and first steps for new user projects.
日本語の概要は準備中です。原文の説明を表示しています。
Rename Pharo methods safely through Genie's `rename_method` MCP refactoring tool. Use when a selector should be renamed while preserving behavior, updating senders and symbol references across the live image, including as one step in larger refactorings such as clarify API names, split responsibilities, or move behavior behind better messages.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill only for behavior-preserving selector renames in a live Genie image. Work through the genie MCP tools; do not edit Tonel files.
Establish a green baseline with run_test for the narrow class or package you will touch.
Map the impact before renaming:
search_implementors for the old selector.search_references for the old selector.get_method_source for representative implementors and callers.Use rename_method, not define_method plus remove_method, when the intent is a real rename:
class_name: owning class name, without class.method_name: old selector string.new_method_name: new selector string.is_class_method: true for class-side methods, omit or false for instance-side methods.permutation: optional argument-position array, for example [2, 1]. Omit it for ordinary same-order renames.Read back the changed methods. Confirm:
Rerun the same tests. If the rename is part of a larger refactoring, stop at the first green rename before making the next structural move.
Save the image only through save_image gated on the relevant test class or package.
Use rename-method early when an unclear selector is hiding the next move. For example:
'oldSelector' asSymbol, not #oldSelector, or the refactoring may rewrite the assertion itself.Do not use rename_method to change arity and behavior together. First make behavior-preserving same-arity renames green. Then do signature or behavior changes under a test-first workflow.
{
"class_name": "Invoice",
"method_name": "total",
"new_method_name": "totalAmount"
}
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use when modifying a Genie-backed Pharo project through the live MCP server on localhost:8087; includes project ownership, image read/change/test/save workflow, and first steps for new user projects.
日本語の概要は準備中です。原文の説明を表示しています。
Refactor messy Pharo code safely through the genie MCP tools, working from the live image (no files). Use for renames, method extraction, moving behavior, or general cleanup of existing code.
日本語の概要は準備中です。原文の説明を表示しています。
Drive a Genie change test-first through the genie MCP tools, working entirely from the live image (no files). Use when adding behavior or fixing a bug in the image — anything where a test should lead.
日本語の概要は準備中です。原文の説明を表示しています。
Use when reviewing or refactoring code that pulls apart another object's private representation, such as raw limb/byte/slot access, slice constructors, or helper methods that expose internal storage. Guides agents to find representation envy and suggest moving behavior onto the object that owns the representation, using live-image Genie tools when working in Pharo.
日本語の概要は準備中です。原文の説明を表示しています。