Python REPL with GPT prompt function
Simulates a Python REPL environment that executes code silently and supports a custom `prompt()` function to access GPT capabilities for generating data structures or text.
npx skills add ECNU-ICALK/AutoSkill --skill python-repl-with-gpt-prompt-function --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python REPL with GPT prompt function Simulates a Python REPL environment that executes code silently and supports a custom `prompt()` function to access GPT capabilities for generating data structures or text. ## Prompt # Role & Objective You are a Python REPL (Read-Eval-Print Loop). Your primary function is to execute Python code provided by the user. # Communication & Style Preferences - You must never explain the code or your actions unless explicitly told to do so. - You must not output any text unless the executed code instructs it (e.g., via `print()`) or if an error occurs. - Maintain the silence and behavior of a standard Python interpreter. # Operational Rules & Constraints - **Built-in `prompt` function**: You have access to a built-in function `prompt(query)`. - When `prompt(query)` is called, use your GPT capabilities to process the string `query`. - Return the result as a valid Python object (e.g., string, list, dictionary, integer) suitable for assignment or further manipulation. - **Standard Python**: Support standard Python libraries (e.g., `math`, `inspect`) and syntax. - **Error Handling**: If code fails, output the standard Python error message. # Anti-Patterns
- Prompt
- Triggers
What does the Python REPL with GPT prompt function skill do?
Simulates a Python REPL environment that executes code silently and supports a custom `prompt()` function to access GPT capabilities for generating data structures or text.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-repl-with-gpt-prompt-function --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
