This repository contains a Python script (PromptGen.py
) that generates a prompt for AI models from a given directory. The prompt includes:
- A tree structure showing the hierarchy of directories and subdirectories.
- The path of each file in the directory, followed by its contents.
- Python 3.7 or higher
It is recommended to use Python 3.7 or newer.
- Clone this repository or download the script
PromptGen.py
. - Navigate to the directory where
PromptGen.py
is located. - Run the script:
python PromptGen.py