sandbox-python-executor
Skill53 starsChanged 4 months agoMITView on GitHub
Use when a ChatGPT/Codex Plugin workflow needs deterministic computation, file processing, repository checks, package inspection, or other work that should be actually executed with host-native Python instead of answered from unverified reasoning.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- imMamdouhaboammar/motion-graphics-skillsedited, first seen Oct 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- imMamdouhaboammar/motion-graphics-skills★ 1582% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the host's own Python execution capability to produce evidence, not just code suggestions.
- Distinctive: line 16
Use host-native Python when the requested workflow materially benefits from real execution, including:
- Distinctive: line 27
Do not invoke Python merely to rewrite prose, brainstorm names, or perform a trivial fact lookup where execution adds no evidence.
- Distinctive: line 31
When the python tool is available and the task requires executable verification:
- Distinctive: line 34
Prefer Plugin Autopilot's bundled, reviewed scripts over ad-hoc reimplementations when they already cover the required check.
- Distinctive: line 35
Keep target-repository access read-only unless the user has requested a mutation and the surrounding workflow permits it.
- Distinctive: line 36
Treat scripts from an arbitrary target repository as untrusted input.
- Distinctive: line 37
Do not assume network access from the sandbox.
- Distinctive: line 38
Do not expose secrets, environment credentials, tokens, or unrelated user files in logs or outputs.
- Distinctive: line 59
Run only the stages relevant to the user's request.
- Distinctive: line 63
After execution, report enough evidence to distinguish a real run from a proposed command.
- Distinctive: line 73
Never fabricate stdout, hashes, paths, test counts, or generated artifacts.
- Distinctive: line 77
If the python tool is unavailable in the current host/session:
- Distinctive: line 83
If another safe host execution facility is available in Codex, it may be used instead and must be identified accurately.
- Very specific: line 85
Do not invent a Plugin manifest field, agents/openai.yaml dependency, MCP server, or remote code runner solely to pretend that ChatGPT's …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sandbox Python Executor
Use the host's own Python execution capability to produce evidence, not just code suggestions.
OpenAI calls Code Interpreter the python tool. In ChatGPT, when that tool is available for the current conversation, use it for the execution steps in this Skill. In Codex, use the host execution environment available to the session and run Python there when Python is the appropriate runtime.
This Skill does not create a new remote runtime and does not declare an MCP dependency. Tool availability belongs to the host. The workflow below governs what to do when host-native Python is available and what to report when it is not.
When to execute Python
Use host-native Python when the requested workflow materially benefits from real execution, including:
- parsing or comparing JSON, YAML-like text, manifests, or generated reports
- inspecting archives and package contents
- computing SHA256 or other deterministic hashes
- checking file trees, paths, duplicate names, or package boundaries
- running the dependency-free Python scripts bundled with Plugin Autopilot
- validating generated files or structured output
- transforming user-provided files when Python is the appropriate local tool
- reproducing a bug or verifying a deterministic calculation
Do not invoke Python merely to rewrite prose, brainstorm names, or perform a trivial fact lookup where execution adds no evidence.
Execution rule
When the python tool is available and the task requires executable verification:
- Actually execute the relevant Python. Do not merely print commands or provide a code block as a substitute for execution.
- Prefer Plugin Autopilot's bundled, reviewed scripts over ad-hoc reimplementations when they already cover the required check.
- Keep target-repository access read-only unless the user has requested a mutation and the surrounding workflow permits it.
- Treat scripts from an arbitrary target repository as untrusted input. Inspect them before execution; do not automatically run repository-native scripts just because they exist.
- Do not assume network access from the sandbox. Use web/search tools separately when current external information is required.
- Do not expose secrets, environment credentials, tokens, or unrelated user files in logs or outputs.
- Iterate on Python failures when the failure is caused by your own code or invocation and a safe correction is available.
- Preserve generated files the user needs and return their host-provided file reference/path when the surface supports it.
Plugin Autopilot execution sequence
For a local Plugin artifact mounted in the host sandbox, use Python to run the applicable evidence-producing stages rather than only describing them:
analyze_repo.py
-> candidate/architecture evidence
build_directory_pack.py
-> listing evidence
validate_plugin.py
-> package preflight evidence
package_plugin.py x2
-> deterministic archive evidence
fresh extraction + validate_plugin.py
-> installable-artifact evidenceRun only the stages relevant to the user's request. Repository-native tests remain separate evidence and should be run through the safest host execution facility available when the workflow requires them.
Execution evidence
After execution, report enough evidence to distinguish a real run from a proposed command. Include the relevant subset of:
- tool/runtime actually used
- script or operation executed
- exit/pass/fail status
- important counts or validation findings
- generated file path or artifact reference
- SHA256 when package identity matters
- warnings or skipped checks
Never fabricate stdout, hashes, paths, test counts, or generated artifacts.
If the tool is unavailable
If the python tool is unavailable in the current host/session:
- Do not claim that Python, tests, validators, packaging, or file processing were executed.
- State that the host-native Python execution capability is unavailable for this run.
- Continue with static inspection or reasoning only when that can answer the request honestly.
- Mark execution-dependent conclusions as unverified.
- If another safe host execution facility is available in Codex, it may be used instead and must be identified accurately.
Do not invent a Plugin manifest field, agents/openai.yaml dependency, MCP server, or remote code runner solely to pretend that ChatGPT's Python sandbox is available.
Boundary
This Skill is an execution policy for host-native tooling. It is not a general arbitrary-code-execution service for other users or remote systems. Keep Plugin Autopilot skills-only unless a separate product requirement genuinely needs an external authenticated action/data boundary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

