Skip to content
Development
Command

/scaffold

Scaffold a minimal PyWry app in a new directory (main.py, pyproject.toml, README.md).

From plugin
pywry
932 skills1 agent2 commands
Install
$ npx -y skills add deeleeramone/PyWry --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/scaffold

Context preview

What this command does when you run it.

Scaffold a minimal PyWry app in a new directory (main.py, pyproject.toml, README.md).

Command definition

scaffold.md
description: Scaffold a minimal PyWry app in a new directory (main.py, pyproject.toml, README.md).
argument-hint: "<app-name> [--kind widget|chat|tvchart|dashboard]"

Scaffold a new PyWry app in a fresh directory named by the first positional argument `$ARGUMENTS`. If no argument is given, ask the user for a name.

**Before writing any files**, call the `get_skills` MCP tool with the topic that matches `--kind` (default `widget` → skill `component_reference`, `chat` → `chat`, `tvchart` → `tvchart`, `dashboard` → `data_visualization`). Read the returned skill text before choosing the template.

Then create the following files in `./<app-name>/`:

1. **`main.py`** — a runnable PyWry app using `PyWry().show*(...)` appropriate to `--kind`. Keep it under 40 lines. Use headless‑friendly patterns (no hard‑coded `block()` call at module import level). 2. **`pyproject.toml`** — minimal, pinned to `pywry[mcp]>=2.0.0rc7`. Use the user's Python version. 3. **`README.md`** — one paragraph describing the app and a `python main.py` quick start. 4. **`.gitignore`** — standard Python entries (`__pycache__/`, `*.pyc`, `.venv/`).

After writing files:

  • Run `ruff format` on `main.py`
  • Print the directory listing
  • Tell the user: `cd <app-name> && pip install -e . && PYWRY_HEADLESS=1 python main.py` to run headlessly, or drop `PYWRY_HEADLESS=1` to see the native window

Do **not** install the package or run the app automatically. The user should review the generated code first.

Read more
Ships withpywry

PyWry is a cross-platform app factory, rendering engine and UI toolkit for Python that produces native desktop, web, and notebook experiences from a single API.

Get the whole plugin, auto-invoked
Stats
93
Stars
0
Views
7
Forks
Active
Maintenance
Python
Language
Apache-2.0
License
9d ago
Last commit
6mo ago
Created

Repo: deeleeramone/PyWry

More commands in this plugin
See everything inside