All Repos
PromptsTypeScript

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.

#ai-prompts#ai-tools#llm#prompt#prompt-engineering#prompt-optimization#prompt-optimizer#prompt-testing
View on GitHub 40kGitHub stars

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

  1. Clone & open

    bash
    git clone https://github.com/linshenkx/prompt-optimizer.git
    cd prompt-optimizer
    claude
  2. Let Claude read it

    Ask “/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.

Documentation

Full README

Prompt 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

Catalog data refreshed . Something wrong? Report it.