# St Validate

> Validate Tonel file syntax before importing to the Smalltalk image (Pharo or Squeak). Use when suspecting syntax errors in .st files, or when a file was edited manually and correctness is uncertain.

- Skill: `mumez/st-validate` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mumez/st-validate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mumez/st-validate/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mumez (https://skillmd.com/u/mumez)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mumez/st-validate

---


# Validate Tonel Syntax

Validate Tonel `.st` files before importing to the Smalltalk image. Modern AI usually generates correct Tonel, so this is optional.

## Usage

```
/st-validate /absolute/path/to/MyClass.st   # validate a file
/st-validate 'Tonel source text'            # validate content directly
```

## Steps

1. Call `validate_tonel_smalltalk_from_file` for a file path, or `validate_tonel_smalltalk` for raw content
2. Report any syntax errors or confirm the file is valid

## Notes

- Use `validate_smalltalk_method_body` to validate a single method body in isolation
- Validation errors must be fixed before importing

## Examples

```
/st-validate /home/user/project/src/MyPackage/MyClass.st
```

