Prompt Optimizer logo

Prompt Optimizer

Community
kunwl123456
prompt-optimizer

Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.

Overview

Publisherkunwl123456
Repositoryzeroclaw-skills-collection
Skill nameprompt-optimizer
Stars
27
Forks
5
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kunwl123456 on GitHub. Read the source before you install it.

Installation

Install the Prompt Optimizer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kunwl123456/zeroclaw-skills-collection/tree/main/prompt-optimizer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kunwl123456/zeroclaw-skills-collection.git /tmp/zeroclaw-skills-collection
mkdir -p .claude/skills
cp -r /tmp/zeroclaw-skills-collection/prompt-optimizer .claude/skills/prompt-optimizer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Prompt Optimizer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Prompt Optimizer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Prompt Optimizer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Prompt Optimizer

Overview

Evaluate prompt quality, provide targeted improvement suggestions, and generate optimized versions using 58 proven prompting techniques. This skill systematically analyzes prompts across multiple quality dimensions and applies evidence-based optimization patterns.

Quick Start

For most optimization tasks, follow this workflow:

  1. Analyze the current prompt - Read and understand what the user wants to achieve
  2. Evaluate quality - Assess across clarity, specificity, structure, completeness
  3. Load relevant techniques - Read references/prompt-techniques.md for applicable methods
  4. Generate suggestions - Use evaluation results and techniques to propose improvements
  5. Create optimized version - Apply chosen techniques to produce an enhanced prompt

Evaluation Workflow

When a user asks to optimize or evaluate a prompt:

Step 1: Load Quality Framework

Read references/quality-framework.md to understand evaluation dimensions:

  • Clarity - Is the prompt unambiguous and easy to understand?
  • Specificity - Are requirements and constraints clearly defined?
  • Structure - Does it follow logical organization?
  • Completeness - Does it include all necessary context and instructions?
  • Tone - Is the voice appropriate for the task?
  • Constraints - Are boundaries and limitations clear?

Step 2: Perform Quality Assessment

Evaluate the prompt against each dimension:

For each quality dimension:
1. Identify strengths (what works well)
2. Identify weaknesses (what's missing or unclear)
3. Rate quality (Poor/Fair/Good/Excellent)
4. Note specific improvement opportunities

Step 3: Identify Applicable Techniques

Load references/prompt-techniques.md and identify techniques that address the identified weaknesses.

Example mapping:

  • Weak: "Be creative" → Apply: Role-play or Creative Persona
  • Weak: "Write an essay" → Apply: Chain of Thought or Step-by-Step
  • Weak: "Summarize this" → Apply: Few-shot Learning with examples

Step 4: Generate Optimization Plan

Create a structured optimization plan:

  1. Priority improvements - High-impact changes that address multiple weaknesses
  2. Optional enhancements - Nice-to-have techniques that boost performance
  3. Technique combinations - Suggest technique pairings for specific use cases

Step 5: Generate Optimized Prompt

Apply the selected techniques to create an improved version:

  • Preserve original intent and requirements
  • Add structure and clarity where missing
  • Embed examples, constraints, or guidance as needed
  • Maintain appropriate tone and voice

Optimization Patterns

For common optimization scenarios, use these proven patterns:

Ambiguous Requests → Structured Breakdown

When prompt lacks clarity:

  1. Add explicit task definition
  2. Break into sub-tasks with numbered steps
  3. Include output format specification
  4. Add completion criteria

Generic Tasks → Technique Enhancement

When prompt is too broad:

  1. Apply relevant technique from references/prompt-techniques.md
  2. Add examples (few-shot) or reasoning steps (CoT)
  3. Include role or persona guidance
  4. Specify evaluation criteria

Missing Context → Scenario Framing

When prompt lacks background:

  1. Add user intent/goal statement
  2. Include target audience specification
  3. Define success metrics
  4. Add relevant constraints or boundaries

Weak Instructions → Actionable Steps

When prompt provides vague guidance:

  1. Convert abstract concepts to concrete actions
  2. Add step-by-step instructions
  3. Include quality checkpoints
  4. Specify expected output format

Script Usage

Quality Evaluation

For consistent, repeatable evaluation:

bash
python3 scripts/evaluate.py "Your prompt here"

This provides:

  • Dimension scores (clarity, specificity, structure, completeness)
  • Overall quality rating
  • Detailed weakness analysis
  • Suggested improvement areas

Prompt Optimization

For automatic optimization generation:

bash
python3 scripts/optimize.py "Your prompt here" --techniques "few-shot,coT"

This generates:

  • Multiple optimized prompt versions
  • Explanation of applied techniques
  • Comparison with original prompt

Note: Scripts should be used for automation or when you need deterministic results. For complex optimization tasks, use the manual workflow for more nuanced analysis.

Reference Files

references/prompt-techniques.md

Complete catalog of 58 prompting techniques including:

  • Reasoning techniques (CoT, Tree of Thoughts, Decomposition)
  • Context techniques (Few-shot, Self-Consistency, Reflection)
  • Creative techniques (Role-play, Scenario, Persona)
  • Structural techniques (Template, Framework, Checklists)
  • And 50+ more with usage examples

Load this when you need to identify applicable techniques for a specific optimization task.

references/quality-framework.md

Detailed evaluation framework with:

  • Dimension-specific criteria and rubrics
  • Scoring guidelines
  • Common anti-patterns to avoid
  • Quality benchmarks for different prompt types

Load this before any evaluation task to ensure consistent assessment.

references/optimization-patterns.md

Collection of proven optimization patterns including:

  • Pattern → Technique mappings
  • Before/after examples
  • Technique combination guidelines
  • Use-case specific templates

Load this when optimizing common prompt types (essays, code generation, analysis, etc.).

Best Practices

  1. Preserve user intent - Never change what the user wants, only how they ask for it
  2. Add incrementally - Apply one technique at a time and evaluate impact
  3. Test iteratively - After optimization, test the prompt and refine further if needed
  4. Document choices - Explain which techniques you applied and why
  5. Provide options - Offer multiple optimization versions when appropriate

When This Skill Should Trigger

This skill should be activated when:

  • User explicitly asks to "optimize," "improve," or "evaluate" a prompt
  • User asks if a prompt is "good" or "clear"
  • User wants to "fix" or "enhance" a prompt that isn't working well
  • User requests "better versions" of a prompt
  • User asks about prompt engineering techniques or best practices
  • User wants to analyze why a prompt is producing poor results

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Prompt Optimizer AI skill do?

Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.

Why use Prompt Optimizer on TypingMind?

Because you install it once and use it with any model. Prompt Optimizer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Prompt Optimizer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kunwl123456/zeroclaw-skills-collection/tree/main/prompt-optimizer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Prompt Optimizer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Prompt Optimizer?

As many as you like. As long as a model supports skills, you can use Prompt Optimizer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Prompt Optimizer AI skill free?

It is published on GitHub by kunwl123456. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇