pydantic/monty · Archived

python-playground

Run and test Python code in a dedicated playground directory. Use when you need to execute Python scripts, test code snippets, investigate CPython behavior, or experiment with Python without affecting the main codebase.

First seen Jul 29, 2026

Installation

$ npx skills add pydantic/monty --skill python-playground

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pydantic/monty.

npx skills add pydantic/monty

Browse all from pydantic/monty

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 8.1K
License LICENSE
Default branch main
Open issues 69
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,696 B
  • docs SUMMARY.md 244 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Python Playground

Run Python code in an isolated playground directory for testing and experimentation.

Instructions

  1. First, ensure the playground directory exists. If the playground directory doesn't already exist, run mkdir playground.
  2. Use the Write tool to create the Python file at playground/test.py
  3. Run with: uv run playground/test.py to test cpython behavior or cargo run -- playground/test.py to test monty behavior

IMPORTANT: Use separate tool calls for each step - do NOT chain commands with &&. This allows the pre-approved commands to work without prompting.

Example workflow

Step 1 - Create directory if it doesn't already exist (Bash, already allowed):

mkdir playground

Step 2 - Write code (use Write tool, not cat): Write to playground/test.py:

def foo():
    raise ValueError('test')

foo()

Step 3 - Run script (Bash, already allowed):

uv run playground/test.py

Guidelines

  • The playground/ directory is gitignored
  • Use a different file name for each test you want to run, give the files recognizable names like testvalueerror.py
  • Use uv run ... to run scripts (uses project Python)
  • Or, cargo run -- ... to run scripts using Monty
  • Use Write tool for creating files (avoids permission prompts)
  • Run mkdir and uv as separate commands (not chained)
  • do NOT delete files from playground after you've finished testing