🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Smalltalk

by @johnmci

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.

Versionv1.7.0
Installs3
Comments1
πŸ’‘ Examples

# Check setup
python3 smalltalk.py --check

Evaluate code

python3 smalltalk.py evaluate "3 factorial" python3 smalltalk.py evaluate "Date today"

Browse a class

python3 smalltalk.py browse OrderedCollection

View method source (instance side)

python3 smalltalk.py method-source String asUppercase

View method source (class side)

python3 smalltalk.py method-source "MCPServer class" version python3 smalltalk.py method-source MCPServer version --class-side

List classes (with optional prefix filter)

python3 smalltalk.py list-classes Collection

Get class hierarchy

python3 smalltalk.py hierarchy OrderedCollection

Get subclasses

python3 smalltalk.py subclasses Collection

List all categories

python3 smalltalk.py list-categories

List classes in a category

python3 smalltalk.py classes-in-category "Collections-Sequenceable"

Define a new class

python3 smalltalk.py define-class "Object subclass: #Counter instanceVariableNames: 'count' classVariableNames: '' poolDictionaries: '' category: 'MyApp'"

Define a method

python3 smalltalk.py define-method Counter "increment count := (count ifNil: [0]) + 1. ^ count"

Delete a method

python3 smalltalk.py delete-method Counter increment

Delete a class

python3 smalltalk.py delete-class Counter

βš™οΈ Configuration

1. Set up Squeak with MCP server β€” see SQUEAK-SETUP.md 2. Configure Clawdbot β€” see CLAWDBOT-SETUP.md

πŸ“‹ Tips & Best Practices

  • Requires xvfb for headless operation on Linux servers
  • Uses Squeak 6.0 MCP server (GUI stays responsive if display available)
  • saveImage intentionally excluded for safety
  • MCPServer version 7+ required (v7 adds class-side method support)
  • Playground mode: ephemeral, .changes β†’ /dev/null
  • Dev mode: persistent, .changes kept, requires --dev --image PATH
  • View on ClawHub
    TERMINAL
    clawhub install smalltalk

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’