llm-prompt-optimizer

Featured

Use when improving prompts for any LLM. Applies proven prompt engineering techniques to boost output quality, reduce hallucinations, and cut token usage.

AI & Automation 39,227 stars 6374 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LLM Prompt Optimizer ## Overview This skill transforms weak, vague, or inconsistent prompts into precision-engineered instructions that reliably produce high-quality outputs from any LLM (Claude, Gemini, GPT-4, Llama, etc.). It applies systematic prompt engineering frameworks — from zero-shot to few-shot, chain-of-thought, and structured output patterns. ## When to Use This Skill - Use when a prompt returns inconsistent, vague, or hallucinated results - Use when you need structured/JSON output from an LLM reliably - Use when designing system prompts for AI agents or chatbots - Use when you want to reduce token usage without sacrificing quality - Use when implementing chain-of-thought reasoning for complex tasks - Use when prompts work on one model but fail on another ## Step-by-Step Guide ### 1. Diagnose the Weak Prompt Before optimizing, identify which problem pattern applies: | Problem | Symptom | Fix | |---------|---------|-----| | Too vague | Generic, unhelpful answers | Add role + context + constraints | | No structure | Unformatted, hard-to-parse output | Specify output format explicitly | | Hallucination | Confident wrong answers | Add "say I don't know if unsure" | | Inconsistent | Different answers each run | Add few-shot examples | | Too long | Verbose, padded responses | Add length constraints | ### 2. Apply the RSCIT Framework Every optimized prompt should have: - **R** — **Role**: Who is the AI in this interaction? - **S** — **Situation**: What conte...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

llm-application-dev-prompt-optimize

You are an expert prompt engineer specializing in crafting effective prompts for LLMs through advanced techniques including constitutional AI, chain-of-thought reasoning, and model-specific optimizati

335 Updated today
aiskillstore
AI & Automation Solid

llm-application-dev-prompt-optimize

You are an expert prompt engineer specializing in crafting effective prompts for LLMs through advanced techniques including constitutional AI, chain-of-thought reasoning, and model-specific optimizati

39,227 Updated today
sickn33
AI & Automation Solid

optimizing-prompts

This skill optimizes prompts for Large Language Models (LLMs) to reduce token usage, lower costs, and improve performance. It analyzes the prompt, identifies areas for simplification and redundancy removal, and rewrites the prompt to be more concise and effective. It is used when the user wants to reduce LLM costs, improve response speed, or enhance the quality of LLM outputs by optimizing the prompt. Trigger terms include "optimize prompt", "reduce LLM cost", "improve prompt performance", "rewrite prompt", "prompt optimization".

2,266 Updated today
jeremylongshore
AI & Automation Listed

prompt-engineer

Transform rough prompts/ideas into production-ready LLM prompts. Use when crafting, refining, or optimizing prompts for any AI model (Claude, GPT, Llama, etc.) with advanced techniques like CoT, constitutional AI, RAG optimization.

0 Updated today
pateljig4545
AI & Automation Listed

prompt-engineering

Engineer effective LLM prompts using zero-shot, few-shot, chain-of-thought, and structured output techniques. Use when building LLM applications requiring reliable outputs, implementing RAG systems, creating AI agents, or optimizing prompt quality and cost. Covers OpenAI, Anthropic, and open-source models with multi-language examples (Python/TypeScript).

368 Updated 5 months ago
ancoleman