Skip to content
Skills Library
Programming · Building & coding

st-setup-project

/st-setup-project

Smalltalk (Pharo/Squeak) project boilerplate creator. Use when the user asks to create a new Pharo/Smalltalk project from scratch, when project structure is missing (no src/ directory or .project file), when the user wants to start a new Smalltalk development project, or when setting up BaselineOf, Core, and Tests package structure.

Author
mumez ↗
Licence
MIT
Last repository change
21.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Smalltalk (Pharo/Squeak) project boilerplate creator. Use when the user asks to create a new Pharo/Smalltalk project from scratch, when project structure is missing (no src/ directory or .project file), when the user wants to start a new Smalltalk development project, or when setting up BaselineOf, Core, and Tests package structure.

Original author description

Smalltalk (Pharo/Squeak) project boilerplate creator. Use when the user asks to create a new Pharo/Smalltalk project from scratch, when project structure is missing (no src/ directory or .project file), when the user wants to start a new Smalltalk development project, or when setting up BaselineOf, Core, and Tests package structure.

How it works

  1. When to Use This Skill
  2. Project Name Rules
  3. Pre-flight Checks
  4. Created Structure
  5. Implementation
  6. After Setup
  7. Error Handling
  8. Related Skills
Original SKILL.md headings · 107 lines, 413 words
SKILL.md preview
---
name: st-setup-project
description: Smalltalk (Pharo/Squeak) project boilerplate creator. Use when the user asks to create a new Pharo/Smalltalk project from scratch, when project structure is missing (no src/ directory or .project file), when the user wants to start a new Smalltalk development project, or when setting up BaselineOf, Core, and Tests package structure.
allowed-tools: Bash AskUserQuestion Read
---

# Set Up Smalltalk Project Boilerplate

Create a complete Smalltalk project structure with BaselineOf, Core package, and Tests package.

## When to Use This Skill

- User asks to "create a new project", "start a Smalltalk project", or "set up project structure"
- No `src/` directory or `.project` file exists in the current directory
- User provides a project name and wants to begin development

## Project Name Rules

- **PascalCase required**: Must start with uppercase, alphanumeric only
- Valid: `MyProject`, `RedisClient`, `JSONParser`
- Invalid: `my-project`, `my_project`, `myProject`

**If no name provided**: Ask with `AskUserQuestion`: "What is your project name? (Use PascalCase like MyProject)"

## Pre-flight Checks

**1. Validate PascalCase:**
```bash
if [[ ! "$PROJECT_NAME" =~ ^[A-Z][a-zA-Z0-9]*$ ]]; then
  echo "Error: Project name must be in PascalCase (e.g., MyProject, RedisClient)"
  exit 1
fi
```

**2. Check for existing project:**
```bash
if [ -d "src" ] && [ "$(find src -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)" -gt 0 ]; then
  echo "Error: Project already exists (src/ directory contains packages)"
  exit 1
fi
```

## Created Structure

```
MyProject/
├── .project                          # srcDirectory: 'src'
└── src/
    ├── .properties                   # format: tonel
    ├── BaselineOfMyProject/
    │   ├── package.st
    │   └── BaselineOfMyProject.class.st
    ├── MyProject-Core/
    │   └── package.st
    └── MyProject-Tests/
        └── package.st
```

## Implementation

Run the setup script with the validated project name. See [Complete Setup Script](references/setup-script.md) for the full bash implementation.

**Key files created:**

**.project** (STON format with single quotes):
```
{
	'srcDirectory' : 'src'
}
```

**src/.properties** (Tonel format declaration):
```
{
	#format : #tonel
}
```

**BaselineOf class** defines package dependencies and groups:
- `Core` group: `ProjectName-Core`
- `Tests` group: `ProjectName-Tests` (requires Core)
- `all` group: Core + Tests
- `default` group: Core only

## After Setup

Show the user what was created and next steps:

```
✓ Smalltalk project 'ProjectName' created successfully!

Next steps:
  1. Use /st-init to verify the Smalltalk image connection and start development
  2. Start adding classes to ProjectName-Core
  3. Write tests in ProjectName-Tests
```

Then suggest using the `smalltalk-dev:st-init` skill to start the development session.

## Error Handling

| Situation | Action |
|-----------|--------|
| Invalid project name | Show error with PascalCase example, stop |
| Project already exists | Stop immediately, suggest this is for new projects |
| File system errors | Let bash errors propagate naturally (`set -e`) |

## Related Skills

- `smalltalk-dev:st-init` — Start development session after project is created
- `smalltalk-dev:smalltalk-developer` — Development workflow (Edit → Import → Test)
Files in this package (2)
  • SKILL.md 3 KB
  • references/setup-script.md 3 KB

Versions

The database has no other skills named st-setup-project.

Database snapshot: 13.11.2026 · package version 826e2ae29bb2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100st-buddy
    Friendly Smalltalk development assistant and skill router. Use when the user asks any Pharo or Squeak Smalltalk development question, needs help getting started, asks about the workflow, wants to implement/debug/understand code, needs project setup guidance, or is unsure where to begin.
  • 100smalltalk-developer
    Comprehensive Smalltalk (Pharo/Squeak) development workflow guide with AI-driven Tonel editing. Provides expertise in Tonel file format syntax (class definitions with name, superclass, instVars, category, method categories, class comment placement), package structure (package.st…
  • 100new-project
    Use when the task matches skill: new project scaffold and this skill''s local workflow.
  • 100godot-project-setup
    Use when creating a new Godot 4.x project — scaffolds recommended directory structure, project settings, autoloads, and .gitignore
  • 100project-create
    Initialize a new project with full setup — repo structure, docs, quality tools, and CI/CD. Use when starting a brand-new project from scratch. Trigger on "create a new project", "initialize a project", "set up a new repo", "bootstrap a project".
  • 100python-scaffold-method
    Generate a fresh project skeleton, tests and lint config included. TRIGGER WHEN: `/daodan:init-project` runs without an application scaffold and the user wants a Python project, or the user asks to start a new Python project, bootstrap FastAPI/Django/CLI/library structure, or…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.