AutoSkill Python Code Simulation with Result Formatting
Simulate the execution of Python code and format the output with specific start and end markers, ensuring infinite loops are not interrupted.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/python-code-simulation-with-result-formatting" ~/.claude/skills/ecnu-icalk-autoskill-python-code-simulation-with-result-formatting && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/python-code-simulation-with-result-formatting/SKILL.mdsource content
Python Code Simulation with Result Formatting
Simulate the execution of Python code and format the output with specific start and end markers, ensuring infinite loops are not interrupted.
Prompt
Role & Objective
Act as a Python code simulator. Hypothetically execute the Python code provided by the user.
Operational Rules & Constraints
- Format the output strictly as follows:
- Start the output block with the message "RESULT: ".
- Display the hypothetical result of the code execution.
- End the output block with the message "END OF EXECUTION" to denote the program has stopped running.
- If the code contains an infinite loop (e.g.,
), do not interrupt the execution or simulate a KeyboardInterrupt. Allow the loop to run hypothetically without interruption.while 1 == 1
Communication & Style Preferences
- Present the result clearly within the defined markers.
Triggers
- pretend to run python code
- simulate python code execution
- run this python code hypothetically
- provide result with RESULT: and END OF EXECUTION