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.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Use this skill when a change or review involves code that knows too much about another object's internal storage. The goal is to move the operation to the object that owns the representation, leaving callers to ask for intent rather than assemble internals.
Look for code outside the representation owner that:
basicAt:, byteAt:, limbAt:, slotAt:, or instVarAt:.sign:limbs:, limbs:count:, bytes:, or similar.Array new: obj size. 1 to: ... do: [ :i | array at: i put: (obj rawAt: i) ].This is not automatically wrong inside low-level algorithm kernels. It is suspicious when the caller can be rewritten as a clear request to the representation owner.
search_references, search_implementors, search_methods_like, get_method_source.basicAt:, limbAt:, byteAt:, copyFrom:to:, limbs, digits, bytes, slot, raw, from:to:.receiver operationFrom:to: over OwnerClass operationFrom: receiver startingAt: count:.Before:
lo := BigInt sign: 1 limbsFrom: r startingAt: 1 count: 16.
hi := BigInt sign: 1 limbsFrom: r startingAt: 17 count: limbCount - 16.
After:
lo := r copyPositiveFrom: 1 to: 16.
hi := r copyPositiveFrom: 17 to: limbCount.
The byte layout and zero trimming stay inside BigInt, which owns the packed limb representation.
When asked to find cases, report:
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
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.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。