Streamline your AI workflow! Select project files, add instructions, and instantly generate context-rich prompts without manual copy-pasting. This desktop application helps you build detailed prompts for Large Language Models (LLMs) by incorporating the actual content of your project files.
- Select Project Directory: Easily choose a local project folder via the system dialog.
- Interactive File Tree: View a filterable file tree of your project. Common folders (
node_modules,.git,dist, etc.) and hidden files are automatically ignored. - File/Folder Selection: Select multiple files and/or entire folders to include their contents as context in your prompt.
- Custom Framing: Add optional prefix and suffix text to provide instructions or frame the file content for the AI.
- Live Preview: See the structure of your prompt in real-time (using placeholders for file content) as you select files and add text.
- Copy Full Prompt: Generate and copy the final prompt, including the complete content of all selected files, to your clipboard with a single click.
- Intelligent File Handling: Reads text-based files and attempts to skip binary files to avoid irrelevant content. Includes file size limits.
- Error Reporting: Clearly indicates if any selected files could not be read due to permissions or other issues.
- Framework: Electron
- UI Library: Vue 3 (Options API)
- Language: TypeScript
- Component Library: PrimeVue 4
- Theming: PrimeUI Themes (@primeuix/themes/material)
- Build Tool: Vite
- Runtime: Node.js
- Clone the repository:
Navigate to the project directory:
git clone https://github.com/olamedia/ai-prompt-generator.git
cd ai-prompt-generator - Install dependencies:
npm install
- Run the development server:
This will launch the Electron application with hot-reloading for the renderer process.
npm run dev
For instructions on how to build installable binaries from the source code for different operating systems, please see the BUILD.md file.
- Launch the AI Prompt Generator application.
- Click the "Select Project Directory" button. A system dialog will appear.
- Navigate to and select the root folder of the project you want to use for context.
- The file tree for that directory will load in the left panel.
- Use the checkboxes in the file tree to select the specific files and/or folders whose content you want to include in the AI prompt.
- (Optional) In the "User Inputs" panel (top-right), enter any introductory text or instructions into the "Prompt Prefix" field. This text will appear before all the file contents in the final prompt.
- (Optional) In the "User Inputs" panel, enter any concluding text, questions, or instructions into the "Prompt Suffix" field. This text will appear after all the file contents in the final prompt.
- The "Generated Prompt (Preview)" area (bottom-right) shows the structure of your prompt in real-time. It includes your prefix/suffix and lists the selected files with placeholders like
[Content of filename.ext]. This helps you visualize the layout without loading all file content constantly. - When you are satisfied with the structure and selections, click the Copy button (icon looks like
pi pi-copy) located next to the preview area. - This action reads the actual content of all selected files and constructs the complete prompt (Prefix + File1 Content + File2 Content + ... + Suffix). The full prompt is then copied to your system clipboard.
- Paste the prompt into your preferred AI chat interface or tool.
Contributions are welcome! If you have suggestions or find bugs, please open an issue. If you'd like to contribute code, please feel free to submit a Pull Request.
MIT
