🤖 AI Prompt Generator for PowerToys Run. ⚡ Transform Short Ideas into Detailed, Professional AI Prompts ⚡
See the code
Stop struggling with prompt engineering. Let AI help you write better prompts.
Access advanced prompt expansion instantly with Alt+Space → pg write a blog post → Get a structured, detailed prompt! ✨
AI Prompt Generator is a powerful PowerToys Run plugin that leverages AI to transform your short, rough ideas into detailed, well-structured prompts. Whether you're working with ChatGPT, Claude, or any other AI assistant, this plugin helps you craft professional-grade prompts in seconds.
| ❌ Before | ✅ With AI Prompt Generator |
|---|---|
| Spend 10+ minutes crafting detailed prompts | Type a short idea → Get a detailed prompt in 2 seconds |
| Struggle with prompt structure and clarity | AI follows best practices automatically |
| Inconsistent results from AI assistants | Well-structured prompts yield better outputs |
| Copy-paste from prompt libraries | Generate custom prompts on-demand |
|
Intelligent Expansion Transforms simple ideas into structured, professional prompts |
5 AI Providers OpenAI, Groq, OpenRouter, HuggingFace, SambaNova | |
|
Highly Configurable Customize temperature, tokens, timeouts, and more |
Secure Storage API keys encrypted in Windows settings |
Auto-Copy Results instantly copied to clipboard |
✅ Windows 10/11 (x64 or ARM64) ✅ PowerToys v0.87.0 or later ✅ API key from one of the supported providers
Choose your architecture:
%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\
C:\Users\YourName\AppData\Local\Microsoft\PowerToys\PowerToys Run\Plugins\AIPromptGenerator\
Alt+Space to open PowerToys Runaipromptgenerator - you'll see a configuration prompt🎉 Done! You're ready to generate amazing prompts!
Alt+Space → aipromptgenerator write a blog post
Short Input:
write a blog post
AI-Expanded Output:
You are a professional content writer with expertise in creating engaging blog posts.
## Task
Write a comprehensive blog post that educates and engages readers.
## Requirements
- **Format**: Blog post with clear sections (Introduction, Body with 3-5 master points, Conclusion)
- **Tone**: Conversational yet informative
- **Length**: 800-1200 words
- **Style**: Use subheadings, bullet points, and short paragraphs for readability
## Structure
1. **Introduction** (100-150 words)
- Hook the reader with a compelling opening
- State the master topic and its relevance
- Preview the key points
2. **Body** (600-900 words)
- Present 3-5 master points with supporting details
- Use examples, statistics, or anecdotes
- Include actionable insights
3. **Conclusion** (100-150 words)
- Summarize key takeaways
- Call-to-action or final thoughts
## Additional Guidelines
- Use active voice and clear language
- Avoid jargon unless explained
- Include relevant keywords naturally
- mastertain consistent voice throughout
Input: create a REST API
Output: Structured prompt with architecture requirements, endpoints, error handling, authentication, testing strategies, and documentation requirements
Input: analyze sales data
Output: Detailed prompt specifying data format, analysis methods, visualization requirements, insights to extract, and reporting format
Input: story about time travel
Output: Comprehensive prompt with genre, characters, plot structure, themes, world-building, and narrative style guidelines
| Setting | Description | Default | Range/Options |
|---|---|---|---|
| Provider | AI service provider | OpenAI | OpenAI, Groq, OpenRouter, HuggingFace, SambaNova |
| API Key | Your provider's API key | (empty) | Required |
| Model | AI model name | (provider default) | See provider section |
| API Endpoint | Custom endpoint | (provider default) | Optional |
| Temperature | Creativity level | 0.7 | 0.0 (focused) - 2.0 (creative) |
| Max Tokens | Response length | 2000 | 100 - 4000 |
| System Prompt | Expansion instructions | (advanced default) | Custom text |
| Timeout | Request timeout | 30s | 5 - 120 seconds |
| Enable Caching | Cache responses | ✅ Enabled | Checkbox |
| Cache Duration | Cache lifetime | 10 minutes | 1 - 60 minutes |
| Show Token Count | Display usage stats | ❌ Disabled | Checkbox |
For Cost-Effective Usage (Groq):
Provider: Groq
Model: llama-3.3-70b-versatile
Temperature: 0.7
Max Tokens: 1500
Enable Caching: Yes
For Best Quality (OpenAI):
Provider: OpenAI
Model: gpt-4o
Temperature: 0.8
Max Tokens: 2500
Enable Caching: Yes
For Coding Tasks (OpenRouter - Free!):
Provider: OpenRouter
Model: kwaipilot/kat-coder-pro:free
Temperature: 0.7
Max Tokens: 2000
Enable Caching: Yes
💡 Tip: KAT Coder Pro handles coding-related prompts exceptionally well and is completely free via OpenRouter!
gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbohttps://api.openai.com/v1/chat/completions (auto-configured)llama-3.3-70b-versatile, llama-3.1-70b-versatile, mixtral-8x7b-32768https://api.groq.com/openai/v1/chat/completions (auto-configured)openai/gpt-4o, anthropic/claude-3.5-sonnet, google/gemini-pro-1.5, kwaipilot/kat-coder-pro:freekwaipilot/kat-coder-pro:free - Excellent coding assistance, completely free!https://openrouter.ai/api/v1/chat/completions (auto-configured)meta-llama/Llama-3.1-70B-Instruct, mistralai/Mixtral-8x7B-Instruct-v0.1https://api-inference.huggingface.co/models/ (auto-configured)Meta-Llama-3.1-70B-Instruct, Meta-Llama-3.1-8B-Instructhttps://api.sambanova.ai/v1/chat/completions (auto-configured)| Provider | Cost per 1M tokens | Speed | Quality |
|---|---|---|---|
| OpenAI GPT-4o | $5.00 | Medium | ⭐⭐⭐⭐⭐ |
| OpenAI GPT-4o-mini | $0.15 | Fast | ⭐⭐⭐⭐ |
| Groq Llama 3.3 | $0.59 | Ultra Fast | ⭐⭐⭐⭐ |
| OpenRouter | Varies | Varies | Varies |
| HuggingFace | Free tier available | Medium | ⭐⭐⭐ |
This repository also includes PowerToys Run Plugin Templates - a comprehensive dotnet template system for creating new PowerToys Run plugins.
Located in the src/templates/ directory, this NuGet package provides:
ptrun-proj) - Scaffold a single plugin projectptrun-sln) - Scaffold a complete solution with plugin + unit tests# Install from NuGet
dotnet new install Community.PowerToys.Run.Plugin.Templates
# Or install locally
dotnet new install ./src
dotnet new ptrun-proj -n MyAwesomePlugin -o MyAwesomePlugin
This creates:
MyAwesomePlugin/
├── Images/
│ ├── myawesomeplugin.dark.png
│ └── myawesomeplugin.light.png
├── master.cs
├── plugin.json
└── MyAwesomePlugin.csproj
dotnet new ptrun-sln -n MyAwesomePlugin -o MyAwesomePlugin
This creates:
MyAwesomePlugin/
├── MyAwesomePlugin.sln
├── Community.PowerToys.Run.Plugin.MyAwesomePlugin/
│ ├── Images/
│ ├── master.cs
│ ├── plugin.json
│ └── *.csproj
└── Community.PowerToys.Run.Plugin.MyAwesomePlugin.UnitTests/
├── masterTests.cs
└── *.csproj
# Custom author
dotnet new ptrun-proj -n MyPlugin --PluginAuthor "Your Name"
# Without test project
dotnet new ptrun-sln -n MyPlugin --TestProject false
The template system includes:
Project Template (src/templates/project/)
Solution Template (src/templates/solution/)
Scripts (src/templates/scripts/)
cd src
dotnet pack
Output: Community.PowerToys.Run.Plugin.Templates.{version}.nupkg
%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\
# Windows Command Prompt
install-local.bat
This script:
# Linux/WSL
./build-and-zip.sh
# Then manually extract to plugins directory
git clone https://github.com/ruslanlap/PowerToysRun-AIPromptGenerator.git
cd PowerToysRun-AIPromptGenerator
AIPromptGenerator/AIPromptGenerator.slnReleasex64 or ARM64cd AIPromptGenerator
dotnet restore
dotnet build -c Release -p:Platform=x64
Output:
AIPromptGenerator/Community.PowerToys.Run.Plugin.AIPromptGenerator/bin/x64/Release/net9.0-windows10.0.22621.0/
cd src
dotnet pack -c Release
Output:
src/bin/Release/Community.PowerToys.Run.Plugin.Templates.{version}.nupkg
# Copy plugin to PowerToys
xcopy /E /I /Y "AIPromptGenerator\Community.PowerToys.Run.Plugin.AIPromptGenerator\bin\x64\Release\net9.0-windows10.0.22621.0" "%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\AIPromptGenerator"
# Restart PowerToys
taskkill /F /IM PowerToys.exe
start "" "C:\Program Files\PowerToys\PowerToys.exe"
cd AIPromptGenerator
dotnet test
The repository includes helpful build scripts:
build-and-zip.sh - Linux/WSL build script with ZIP creationinstall-local.bat - Windows automatic build and installpack.bat - Create NuGet template packageptrun-lint.sh - Code quality checks| Component | Technology | Version |
|---|---|---|
| Language | C# | 12.0 |
| Framework | .NET | 9.0 |
| Target | Windows | 10.0.22621.0 |
| UI | WPF | Built-in |
| PowerToys API | Community.PowerToys.Run.Plugin.Dependencies | 0.93.0 |
| HTTP | System.Net.Http | Built-in |
| JSON | System.Text.Json | 9.0.0 |
Contributions are welcome! Whether it's bug reports, feature requests, or code contributions, we appreciate your help.
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature
#nullable enable)Found a bug? Have a feature request? Please open an issue with:
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2025 ruslanlap
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
If this plugin helps you, consider:
Made with ❤️ by ruslanlap
🌟 Star this repo if you find it useful! • 🐛 Report issues • 💡 Suggest features
C#
74.8%
PowerShell
17.0%
Shell
8.1%
🤖 AI Prompt Generator for PowerToys Run. ⚡ Transform Short Ideas into Detailed, Professional AI Prompts ⚡
See the code
Stop struggling with prompt engineering. Let AI help you write better prompts.
Access advanced prompt expansion instantly with Alt+Space → pg write a blog post → Get a structured, detailed prompt! ✨
AI Prompt Generator is a powerful PowerToys Run plugin that leverages AI to transform your short, rough ideas into detailed, well-structured prompts. Whether you're working with ChatGPT, Claude, or any other AI assistant, this plugin helps you craft professional-grade prompts in seconds.
| ❌ Before | ✅ With AI Prompt Generator |
|---|---|
| Spend 10+ minutes crafting detailed prompts | Type a short idea → Get a detailed prompt in 2 seconds |
| Struggle with prompt structure and clarity | AI follows best practices automatically |
| Inconsistent results from AI assistants | Well-structured prompts yield better outputs |
| Copy-paste from prompt libraries | Generate custom prompts on-demand |
|
Intelligent Expansion Transforms simple ideas into structured, professional prompts |
5 AI Providers OpenAI, Groq, OpenRouter, HuggingFace, SambaNova | |
|
Highly Configurable Customize temperature, tokens, timeouts, and more |
Secure Storage API keys encrypted in Windows settings |
Auto-Copy Results instantly copied to clipboard |
✅ Windows 10/11 (x64 or ARM64) ✅ PowerToys v0.87.0 or later ✅ API key from one of the supported providers
Choose your architecture:
%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\
C:\Users\YourName\AppData\Local\Microsoft\PowerToys\PowerToys Run\Plugins\AIPromptGenerator\
Alt+Space to open PowerToys Runaipromptgenerator - you'll see a configuration prompt🎉 Done! You're ready to generate amazing prompts!
Alt+Space → aipromptgenerator write a blog post
Short Input:
write a blog post
AI-Expanded Output:
You are a professional content writer with expertise in creating engaging blog posts.
## Task
Write a comprehensive blog post that educates and engages readers.
## Requirements
- **Format**: Blog post with clear sections (Introduction, Body with 3-5 master points, Conclusion)
- **Tone**: Conversational yet informative
- **Length**: 800-1200 words
- **Style**: Use subheadings, bullet points, and short paragraphs for readability
## Structure
1. **Introduction** (100-150 words)
- Hook the reader with a compelling opening
- State the master topic and its relevance
- Preview the key points
2. **Body** (600-900 words)
- Present 3-5 master points with supporting details
- Use examples, statistics, or anecdotes
- Include actionable insights
3. **Conclusion** (100-150 words)
- Summarize key takeaways
- Call-to-action or final thoughts
## Additional Guidelines
- Use active voice and clear language
- Avoid jargon unless explained
- Include relevant keywords naturally
- mastertain consistent voice throughout
Input: create a REST API
Output: Structured prompt with architecture requirements, endpoints, error handling, authentication, testing strategies, and documentation requirements
Input: analyze sales data
Output: Detailed prompt specifying data format, analysis methods, visualization requirements, insights to extract, and reporting format
Input: story about time travel
Output: Comprehensive prompt with genre, characters, plot structure, themes, world-building, and narrative style guidelines
| Setting | Description | Default | Range/Options |
|---|---|---|---|
| Provider | AI service provider | OpenAI | OpenAI, Groq, OpenRouter, HuggingFace, SambaNova |
| API Key | Your provider's API key | (empty) | Required |
| Model | AI model name | (provider default) | See provider section |
| API Endpoint | Custom endpoint | (provider default) | Optional |
| Temperature | Creativity level | 0.7 | 0.0 (focused) - 2.0 (creative) |
| Max Tokens | Response length | 2000 | 100 - 4000 |
| System Prompt | Expansion instructions | (advanced default) | Custom text |
| Timeout | Request timeout | 30s | 5 - 120 seconds |
| Enable Caching | Cache responses | ✅ Enabled | Checkbox |
| Cache Duration | Cache lifetime | 10 minutes | 1 - 60 minutes |
| Show Token Count | Display usage stats | ❌ Disabled | Checkbox |
For Cost-Effective Usage (Groq):
Provider: Groq
Model: llama-3.3-70b-versatile
Temperature: 0.7
Max Tokens: 1500
Enable Caching: Yes
For Best Quality (OpenAI):
Provider: OpenAI
Model: gpt-4o
Temperature: 0.8
Max Tokens: 2500
Enable Caching: Yes
For Coding Tasks (OpenRouter - Free!):
Provider: OpenRouter
Model: kwaipilot/kat-coder-pro:free
Temperature: 0.7
Max Tokens: 2000
Enable Caching: Yes
💡 Tip: KAT Coder Pro handles coding-related prompts exceptionally well and is completely free via OpenRouter!
gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbohttps://api.openai.com/v1/chat/completions (auto-configured)llama-3.3-70b-versatile, llama-3.1-70b-versatile, mixtral-8x7b-32768https://api.groq.com/openai/v1/chat/completions (auto-configured)openai/gpt-4o, anthropic/claude-3.5-sonnet, google/gemini-pro-1.5, kwaipilot/kat-coder-pro:freekwaipilot/kat-coder-pro:free - Excellent coding assistance, completely free!https://openrouter.ai/api/v1/chat/completions (auto-configured)meta-llama/Llama-3.1-70B-Instruct, mistralai/Mixtral-8x7B-Instruct-v0.1https://api-inference.huggingface.co/models/ (auto-configured)Meta-Llama-3.1-70B-Instruct, Meta-Llama-3.1-8B-Instructhttps://api.sambanova.ai/v1/chat/completions (auto-configured)| Provider | Cost per 1M tokens | Speed | Quality |
|---|---|---|---|
| OpenAI GPT-4o | $5.00 | Medium | ⭐⭐⭐⭐⭐ |
| OpenAI GPT-4o-mini | $0.15 | Fast | ⭐⭐⭐⭐ |
| Groq Llama 3.3 | $0.59 | Ultra Fast | ⭐⭐⭐⭐ |
| OpenRouter | Varies | Varies | Varies |
| HuggingFace | Free tier available | Medium | ⭐⭐⭐ |
This repository also includes PowerToys Run Plugin Templates - a comprehensive dotnet template system for creating new PowerToys Run plugins.
Located in the src/templates/ directory, this NuGet package provides:
ptrun-proj) - Scaffold a single plugin projectptrun-sln) - Scaffold a complete solution with plugin + unit tests# Install from NuGet
dotnet new install Community.PowerToys.Run.Plugin.Templates
# Or install locally
dotnet new install ./src
dotnet new ptrun-proj -n MyAwesomePlugin -o MyAwesomePlugin
This creates:
MyAwesomePlugin/
├── Images/
│ ├── myawesomeplugin.dark.png
│ └── myawesomeplugin.light.png
├── master.cs
├── plugin.json
└── MyAwesomePlugin.csproj
dotnet new ptrun-sln -n MyAwesomePlugin -o MyAwesomePlugin
This creates:
MyAwesomePlugin/
├── MyAwesomePlugin.sln
├── Community.PowerToys.Run.Plugin.MyAwesomePlugin/
│ ├── Images/
│ ├── master.cs
│ ├── plugin.json
│ └── *.csproj
└── Community.PowerToys.Run.Plugin.MyAwesomePlugin.UnitTests/
├── masterTests.cs
└── *.csproj
# Custom author
dotnet new ptrun-proj -n MyPlugin --PluginAuthor "Your Name"
# Without test project
dotnet new ptrun-sln -n MyPlugin --TestProject false
The template system includes:
Project Template (src/templates/project/)
Solution Template (src/templates/solution/)
Scripts (src/templates/scripts/)
cd src
dotnet pack
Output: Community.PowerToys.Run.Plugin.Templates.{version}.nupkg
%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\
# Windows Command Prompt
install-local.bat
This script:
# Linux/WSL
./build-and-zip.sh
# Then manually extract to plugins directory
git clone https://github.com/ruslanlap/PowerToysRun-AIPromptGenerator.git
cd PowerToysRun-AIPromptGenerator
AIPromptGenerator/AIPromptGenerator.slnReleasex64 or ARM64cd AIPromptGenerator
dotnet restore
dotnet build -c Release -p:Platform=x64
Output:
AIPromptGenerator/Community.PowerToys.Run.Plugin.AIPromptGenerator/bin/x64/Release/net9.0-windows10.0.22621.0/
cd src
dotnet pack -c Release
Output:
src/bin/Release/Community.PowerToys.Run.Plugin.Templates.{version}.nupkg
# Copy plugin to PowerToys
xcopy /E /I /Y "AIPromptGenerator\Community.PowerToys.Run.Plugin.AIPromptGenerator\bin\x64\Release\net9.0-windows10.0.22621.0" "%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\AIPromptGenerator"
# Restart PowerToys
taskkill /F /IM PowerToys.exe
start "" "C:\Program Files\PowerToys\PowerToys.exe"
cd AIPromptGenerator
dotnet test
The repository includes helpful build scripts:
build-and-zip.sh - Linux/WSL build script with ZIP creationinstall-local.bat - Windows automatic build and installpack.bat - Create NuGet template packageptrun-lint.sh - Code quality checks| Component | Technology | Version |
|---|---|---|
| Language | C# | 12.0 |
| Framework | .NET | 9.0 |
| Target | Windows | 10.0.22621.0 |
| UI | WPF | Built-in |
| PowerToys API | Community.PowerToys.Run.Plugin.Dependencies | 0.93.0 |
| HTTP | System.Net.Http | Built-in |
| JSON | System.Text.Json | 9.0.0 |
Contributions are welcome! Whether it's bug reports, feature requests, or code contributions, we appreciate your help.
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature
#nullable enable)Found a bug? Have a feature request? Please open an issue with:
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2025 ruslanlap
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
If this plugin helps you, consider:
Made with ❤️ by ruslanlap
🌟 Star this repo if you find it useful! • 🐛 Report issues • 💡 Suggest features
C#
74.8%
PowerShell
17.0%
Shell
8.1%