Monty Skill logo

Monty Skill

Community
zeenie-ai
monty-skill

Run AI-generated Python in a hard sandbox (Pydantic Monty) with enforced time + memory limits and opt-in capabilities. Use for untrusted code; supports a Python subset.

Overview

Publisherzeenie-ai
RepositoryOpenCompany
Skill namemonty-skill
Stars
912
Forks
137
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zeenie-ai on GitHub. Read the source before you install it.

Installation

Install the Monty Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany.git /tmp/OpenCompany
mkdir -p .claude/skills
cp -r /tmp/OpenCompany/server/skills/coding_agent/monty-skill .claude/skills/monty-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Monty Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Monty Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Monty Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Sandboxed Python (Monty) Tool

Execute Python in a deny-by-default sandbox powered by Pydantic Monty — a minimal Python interpreter written in Rust. Unlike the python_code tool (CPython exec with a restricted namespace), Monty enforces wall-clock and memory limits and grants zero host access unless you explicitly request it.

Prefer this tool when running code you don't fully trust, or when you need guaranteed time/memory bounds. Use python_code instead when you need libraries Monty doesn't support (e.g. random, collections) or language features it lacks (classes, generators).

How It Works

Connect the Monty Executor node to an agent's input-tools handle. The LLM calls the sandboxed_python tool with code (and optionally capabilities, timeout, max_memory_mb).

Schema Fields

FieldTypeRequiredDefaultDescription
codestringYesPython code to run in the sandbox
timeoutintNo30Max wall-clock seconds (1–600), enforced
max_memory_mbintNo256Max memory in MB (16–2048), enforced
capabilitiesstring[]No[]Host grants to enable (see below); empty = no host access

Inputs & Output

  • input_data — a dict of upstream node outputs is available as the variable input_data. Read with input_data.get('someNode', {}).
  • Return a result by making it the last expression in your code (e.g. a final line that is just output or a dict literal).
  • print(...) output is captured and returned as console_output.

Supported Python Subset

WorksDoes NOT work
def, closures, lambdaclass definitions
if / for / whileyield / generators
try / exceptwith statements (without a workspace mount)
list / dict / set comprehensionsmatch / case
f-stringsimport random, import collections, import os
async def / awaitarbitrary third-party packages
import math, import json, import re

If you hit an unsupported feature, rewrite without it or switch to the python_code tool.

Capabilities (opt-in host access)

By default the sandbox has no filesystem, network, or environment access. Request only what the task needs via capabilities:

CapabilityGrantsIn-sandbox usage
http_getAn http_get(url) function (public http/https only; private/loopback hosts blocked)body = http_get("https://example.com")
workspace_readRead-only mount of the workflow workspace at /workspaceopen("/workspace/data.txt").read()
workspace_writeRead-write mount at /workspaceopen("/workspace/out.txt", "w").write(text)

Requesting more than necessary is discouraged — each capability is a deliberate hole in the sandbox.

Examples

Basic calculation (no capabilities):

json
{
  "code": "total = sum(range(1, 11))\nprint(f'sum 1..10 = {total}')\ntotal"
}

Process upstream data:

json
{
  "code": "nums = input_data.get('start', {}).get('numbers', [1,2,3])\navg = sum(nums) / len(nums)\nprint(f'avg = {avg}')\n{'avg': avg, 'count': len(nums)}"
}

Use the curated stdlib:

json
{
  "code": "import math, json\nr = 5\narea = math.pi * r ** 2\njson.dumps({'radius': r, 'area': round(area, 2)})"
}

Fetch a URL (requires http_get):

json
{
  "code": "body = http_get('https://example.com')\nlen(body)",
  "capabilities": ["http_get"]
}

Read a workspace file (requires workspace_read):

json
{
  "code": "data = open('/workspace/input.txt').read()\nlen(data.splitlines())",
  "capabilities": ["workspace_read"]
}

Enforced timeout (this will be terminated, not hang):

json
{
  "code": "while True:\n    pass",
  "timeout": 1
}

Guidelines

  1. Return via the last expression — don't rely on a magic output variable; the final expression's value is returned.
  2. Use print() for debugging — captured as console_output.
  3. Request minimal capabilities — start with none; add only what the task needs.
  4. Keep limits sanetimeout and max_memory_mb are hard caps; raise them only when justified.
  5. Unsupported feature? Rewrite without it, or fall back to the python_code tool.

Frequently asked questions

What does the Monty Skill AI skill do?

Run AI-generated Python in a hard sandbox (Pydantic Monty) with enforced time + memory limits and opt-in capabilities. Use for untrusted code; supports a Python subset.

Why use Monty Skill on TypingMind?

Because you install it once and use it with any model. Monty Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Monty Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/coding_agent/monty-skill. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Monty Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Monty Skill?

As many as you like. As long as a model supports skills, you can use Monty Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Monty Skill AI skill free?

Yes. It is published on GitHub by zeenie-ai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇