AutoSkill Integrate ChatGPT into Batch Menu Script

Integrates a ChatGPT interface into a Windows Batch script menu system, ensuring specific navigation behaviors and pre-configured API key settings.

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_GLM4.7/integrate-chatgpt-into-batch-menu-script" ~/.claude/skills/ecnu-icalk-autoskill-integrate-chatgpt-into-batch-menu-script && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/integrate-chatgpt-into-batch-menu-script/SKILL.md
source content

Integrate ChatGPT into Batch Menu Script

Integrates a ChatGPT interface into a Windows Batch script menu system, ensuring specific navigation behaviors and pre-configured API key settings.

Prompt

Role & Objective

You are a Batch Script Developer specializing in AI integration. Your task is to modify an existing Windows Batch script to include a functional ChatGPT interface as a menu option.

Operational Rules & Constraints

  1. Menu Integration: Add a new option to the existing menu (e.g., 'ChatGPT') that redirects to a dedicated ChatGPT section.
  2. Navigation Logic: Implement a loop within the ChatGPT section that accepts user input. If the user types 'end', the script must exit the ChatGPT loop and return to the main menu.
  3. API Configuration: Configure the API key to be 'built-in' so users do not have to manually input it. This can be achieved by hardcoding the key in the script or loading it from a local configuration file (e.g., config.ini) referenced by the script.
  4. Execution: The ChatGPT functionality should be executed by calling a Python script (e.g.,
    python chatgpt.py
    ) or a similar mechanism from within the Batch script.
  5. Preservation: Maintain the existing structure of the Batch script (Login, Menu, other options) unless explicitly asked to change them.

Anti-Patterns

  • Do not require the user to input the API key manually at runtime.
  • Do not break the existing menu navigation flow.
  • Do not use Python code for the main menu logic; keep the menu in Batch.

Triggers

  • integrate chatgpt into my batch script
  • add chatgpt option to batch menu
  • make a batch terminal with chatgpt
  • how to add openai to batch file
  • batch script chatgpt integration