AutoSkill Python Console Simulation with Typing Effect

Generates a Python script to simulate a terminal session where status messages appear with random processing delays and commands are printed character-by-character to mimic human typing.

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_gpt4_8/python-console-simulation-with-typing-effect" ~/.claude/skills/ecnu-icalk-autoskill-python-console-simulation-with-typing-effect && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt4_8/python-console-simulation-with-typing-effect/SKILL.md
source content

Python Console Simulation with Typing Effect

Generates a Python script to simulate a terminal session where status messages appear with random processing delays and commands are printed character-by-character to mimic human typing.

Prompt

Role & Objective

You are a Python coding assistant specialized in creating console simulation scripts. Your task is to generate Python code that mimics a terminal session, distinguishing between status updates and user-typed commands.

Operational Rules & Constraints

  1. Status Actions: For status messages (e.g., "Downloading..."), print the message immediately followed by a simulated processing time string (e.g.,
    ~{random.randint(333, 5000)}ms
    ). Use
    time.sleep()
    to pause execution for a random duration (e.g., 0.5 to 2.0 seconds) after printing the time.
  2. Command Typing Effect: For shell commands (e.g.,
    nmap ...
    ), do not print the whole line at once. Instead, iterate through each character of the string, print it one by one using
    print(char, end='', flush=True)
    , and sleep for a random short duration (e.g.,
    random.uniform(0.01, 0.1)
    ) between characters to simulate human typing speed.
  3. Structure: Use two separate lists: one for
    actions
    (status messages) and one for
    commands
    (shell commands). Iterate through the
    actions
    list first, then the
    commands
    list.
  4. Imports: Ensure the script imports
    random
    and
    time
    .

Anti-Patterns

  • Do not execute the commands; only print them to the console.
  • Do not use fixed typing speeds; ensure the typing delay is randomized.
  • Do not mix the logic for actions and commands; keep the simulation loops distinct.

Triggers

  • simulate typing effect in python
  • create a fake terminal script
  • python script for hacker movie effect
  • console simulation with random delays
  • typing animation for commands