prompt-optimizer
linshenkx/prompt-optimizer · Updated
An AI prompt optimizer for writing better prompts and getting better AI results.
linshenkx/prompt-optimizer is a TypeScript repository in the Prompts category with 39,731 stars and 4,502 forks on GitHub, last updated yesterday.
How to install prompt-optimizer in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install prompt-optimizer in Claude CodeAnthropic's agentic CLI
Clone & open
bashgit clone https://github.com/linshenkx/prompt-optimizer.git cd prompt-optimizer claudeLet Claude read it
Ask “/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install prompt-optimizer in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/linshenkx/prompt-optimizer.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install prompt-optimizer in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/linshenkx/prompt-optimizer.gitIndex & chat
Open the folder — Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install prompt-optimizer in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/linshenkx/prompt-optimizer.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install prompt-optimizer in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/linshenkx/prompt-optimizer.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install prompt-optimizer in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/linshenkx/prompt-optimizer.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install prompt-optimizer in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/linshenkx/prompt-optimizer.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full READMEPrompt Optimizer 🚀
English | 中文
Website | Online Optimizer | Prompt Garden | Docs | Quick Start | Chrome Extension | 💖 Support
First-time Tutorial | Development Docs | Vercel Deployment Guide | Cloudflare Deployment Guide | MCP Deployment Guide | DeepWiki Docs | ZRead Docs
📖 Project Introduction
Prompt Optimizer is a powerful AI prompt optimization tool that helps you write better AI prompts and improve the quality of AI outputs. It supports four usage methods: web application, desktop application, Chrome extension, and Docker deployment.
Prompts can start from manual writing, templates, local imports, or sources such as Prompt Garden. Prompt Optimizer is where those prompts are optimized, tested, evaluated, and saved as reusable prompt assets.
🎥 Feature Demonstration
<b>1. Hard-Nosed Reviewer: Turn Agreement into Useful Critique</b> Starting from a minimal English role prompt, optimization pushes a small model away from generic pushback and toward a clearer, more structured review that surfaces weak assumptions, evidence gaps, and concrete revision advice.
<b>2. Marketplace Bargaining Reply: Let Variables Change the Strategy</b> With a single reusable prompt template, you can swap in item details, price anchors, buyer offers, tone, and negotiation goals for different marketplace conversations. After optimization, the same small model does a better job turning those variables into a clearer, more transaction-ready reply instead of a generic helper-style response.
<b>3. Text-to-Image: Optimize a One-Line Idea into a More Directable Key Visual Prompt</b> This is not just prompt expansion. Starting from a vague one-line idea, Prompt Optimizer adds clearer subject cues, spatial relationships, and mood anchors. The left side is simply “a floating library in the night sky,” while the optimized version gives the model a more directed fantasy composition that feels closer to a reusable key visual than a lucky generic image.
✨ Core Features
- 🎯 Intelligent Optimization: One-click prompt optimization with multi-round iterative improvements to enhance AI response accuracy
- 📝 Dual Mode Optimization: Support for both system prompt optimization and user prompt optimization to meet different usage scenarios
- 🔄 Analysis and Compare Evaluation: Supports analysis, single-result evaluation, and multi-result compare evaluation to help determine whether a prompt has truly improved
- 🤖 Multi-model Integration: Support for mainstream AI models including OpenAI, Gemini, DeepSeek, Grok, Zhipu AI, SiliconFlow, MiniMax, etc.
- 🖼️ Image Generation: Support for Text-to-Image (T2I), Image-to-Image (I2I), and Multi-Image generation with models like Gemini, Seedream, Grok
- 🌱 Prompt Sources: Start from manual writing, templates, local imports, or Prompt Garden import codes
- ⭐ Smart Favorites: Resource-aware prompt assets with version history, reproducible examples, media support, source binding, and workspace application
- 📊 Advanced Testing Mode: Context variable management, multi-turn conversation testing, Function Calling support
- 🔒 Secure Architecture: Pure client-side processing with direct data interaction with AI service providers, bypassing intermediate servers
- 📱 Multi-platform Support: Available as web application, desktop application, Chrome extension, and Docker deployment
- 🔐 Access Control: Password protection feature for secure deployment
- 🧩 MCP Protocol Support: Supports Model Context Protocol (MCP), enabling integration with MCP-compatible AI applications like Claude Desktop
🚀 Advanced Features
Excerpt — the full document is on GitHub.
More Prompts repositories
- Prompts122k
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI
Jupyter NotebookMITmicrosoft/generative-ai-for-beginners
- Prompts70k
system_prompts_leaks
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro, Antigravity. xAI - Grok, Grok Bot, Cursor, Kimi and more! Updated regularly.
PythonCC0-1.0asgeirtj/system_prompts_leaks
- Prompts62k
humanizer
Agent skill that removes signs of AI-generated writing from text
PythonMITblader/humanizer
- Prompts54k
academic-research-skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
PythonImbad0202/academic-research-skills
- Prompts52k
CL4R1T4S
LEAKED SYSTEM PROMPTS FOR CHATGPT, CLAUDE, GEMINI, GROK, PERPLEXITY, CURSOR, LOVABLE, REPLIT, AND MORE! - AI SYSTEMS TRANSPARENCY FOR ALL! 👐
AGPL-3.0elder-plinius/CL4R1T4S
- Prompts41k
awesome-copilot
Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
JavaScriptMITgithub/awesome-copilot
Catalog data refreshed . Something wrong? Report it.