AgentSkillsCN

smalltalk

与实时Smalltalk镜像(Cuis或Squeak)交互。用于评估Smalltalk代码、浏览类、查看方法源码、定义类/方法、查询层次结构和类别。

SKILL.md
--- frontmatter
name: smalltalk
description: Interact with live Smalltalk image (Cuis or Squeak). Use for evaluating Smalltalk code, browsing classes, viewing method source, defining classes/methods, querying hierarchy and categories.
allowed-tools: squeakDirect/.*|cuisDirect/.*|claudeCuis/.*
user-invocable: true

Smalltalk Development Mode

You have access to a live Smalltalk image via the MCP server (any of the four options).

Note: The MCP server name in tool calls depends on your configuration:

  • squeakDirect - Native Squeak MCP (Option C, recommended)
  • cuisDirect - Native Cuis MCP (Option B)
  • claudeCuis - Python/MQTT bridge (Option A)

Available Tools

ToolDescription
smalltalk_evaluateExecute Smalltalk code and return result
smalltalk_browseGet class metadata (superclass, instance vars, methods)
smalltalk_method_sourceView source code of a method
smalltalk_define_classCreate or modify a class definition
smalltalk_define_methodAdd or update a method
smalltalk_delete_methodRemove a method from a class
smalltalk_delete_classRemove a class from the system
smalltalk_list_classesList classes matching a prefix
smalltalk_hierarchyGet superclass chain for a class
smalltalk_subclassesGet immediate subclasses of a class
smalltalk_list_categoriesList all system categories
smalltalk_classes_in_categoryList classes in a category

Examples

  • "Evaluate 3 + 4" - runs code and returns result
  • "Browse the String class" - shows class metadata
  • "Show me Object>>yourself" - displays method source
  • "What subclasses does Collection have?" - queries hierarchy

Notes

  • Results are returned as strings (use printString for objects)
  • Errors include stack traces for debugging