Gemini Prompt Library Ideator

Using Gemini structured outputs to ideate a prompt library for Open Web UI

About This Project

Gemini Prompt Library Ideator is a Python command-line tool that generates collections of prompts on user-specified topics using the Gemini API. The user enters a topic, such as Python programming or job search, and a count of prompts to generate. The script then produces a set of prompts, each with a name, prompt text, and slash command, and saves them to a dedicated created-prompts folder.

The tool relies on Gemini structured outputs to return consistently formatted data, which is written to both JSON and CSV files so the results can be imported easily. Prompts use double curly bracket variables such as {{text}} for fill-in values, and the system prompt can be edited to change the style of the generated prompts. Dependencies are limited to google-generativeai and python-dotenv, with the API key stored in a local .env file.

The project is intended for users of Open Web UI who want reusable slash-command prompts without manually entering each one. It may also suit anyone who maintains prompt collections for LLMs and wants a repeatable way to generate and export them. The project is released under the MIT License.

Project Details

Categories

Explore More Projects