跳到正文
cccskills
免费在 GitHub 公开

pharo-live-image

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.0 KB
  • references/mcp-8087.md918 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Pharo Live Image Workflow

Use this skill for any task that reads, changes, tests, or saves Smalltalk code in a Genie-backed project.

Before Changing Code

  1. Read .genie/project.ston if it exists.
  2. Identify the project package prefix and #ownedPackages.
  3. Use MCP read/search tools to inspect the live image before assuming a class, selector, or package exists.
  4. If the requested change touches packages outside #ownedPackages, stop and ask unless the user explicitly asked to work on Genie itself.

MCP Server

Preferred endpoint:

http://localhost:8087/mcp

The server is JSON-RPC MCP. Do not assume REST paths like /list-packages exist.

Use tools by name:

  • list_packages, list_classes, list_methods
  • get_class_source, get_method_source, get_class_comment
  • search_classes_like, search_methods_like
  • search_implementors, search_references, search_references_to_class
  • define_class, define_method, rename_class, remove_class, remove_method
  • run_test
  • save_image

TDD Loop

  1. Locate current code with MCP read/search tools.
  2. Add or update a test in the project test package.
  3. Run the test and confirm it fails for the expected reason.
  4. Implement the smallest image change through MCP.
  5. Read changed methods/classes back.
  6. Run the relevant class/package tests.
  7. Save with save_image gated on the relevant test package when green.

Exported Files

The live image is the source of truth. Do not edit .st, Tonel, or generated export files as the primary way to change behavior unless the user explicitly asks for export/import maintenance.

References

Read references/mcp-8087.md when you need the exact JSON-RPC request shape or a curl smoke test.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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.

中文简介正在准备中。当前显示原文说明。

KentBeck/SmalltalkGenie202026年7月20日 更新

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.

中文简介正在准备中。当前显示原文说明。

KentBeck/SmalltalkGenie202026年7月20日 更新

pharo-tdd

免费

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.

中文简介正在准备中。当前显示原文说明。

KentBeck/SmalltalkGenie202026年7月20日 更新

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.

中文简介正在准备中。当前显示原文说明。

KentBeck/SmalltalkGenie202026年7月20日 更新

查看 KentBeck 的全部技能

报告此技能的问题