Skip to content
Back to skills

Optimize Prompt

ASecurity

Optimize prompts for better AI performance. Use when user says "improve this prompt for better results", "optimize this prompt to reduce tokens", "apply prompt engineering best practices to this", "make this prompt more effective", "help me refine this system prompt", or "tune this prompt for the AI model I'm using".

  • 42 stars
  • 0 votes
  • 1 copy
  • 9 views
  • Added February 7, 2026
ai-agentstestingperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add Uniswap/ai-toolkit --skill optimize-prompt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Optimize Prompt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Optimize Prompt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/uniswap-optimize-prompt/badge)](https://www.skillsdirectory.com/skills/uniswap-optimize-prompt)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Optimize prompts for better AI performance. Use when user says "improve this prompt for better results", "optimize this prompt to reduce tokens", "apply prompt engineering best practices to this", "make this prompt more effective", "help me refine this system prompt", or "tune this prompt for the AI model I'm using".
allowed-tools: Read, Write, WebSearch, WebFetch, Task(subagent_type:prompt-engineer)
model: opus
---

# Prompt Optimizer

Optimize prompts for better AI model performance using engineering techniques.

## When to Activate

- User wants to improve a prompt
- Token efficiency needed
- Better AI responses desired
- Prompt engineering techniques requested
- Model-specific optimization needed

## Optimization Areas

### 1. Prompt Engineering

- Chain-of-thought reasoning
- Few-shot examples
- Role-based instructions
- Clear delimiters and formatting
- Output format specifications

### 2. Context Optimization

- Minimize token usage
- Hierarchical information structure
- Remove redundancy
- Add relevant context
- Compression techniques

### 3. Performance Testing

- Create prompt variants
- Design evaluation criteria
- Test edge cases
- Measure consistency
- Compare outputs

### 4. Model-Specific Optimization

- GPT-4 best practices
- Claude optimization techniques
- Prompt chaining strategies
- Temperature/parameter tuning
- Token budget management

### 5. RAG Integration

- Context window management
- Retrieval query optimization
- Chunk size recommendations
- Embedding strategies
- Reranking approaches

### 6. Production Considerations

- Prompt versioning
- A/B testing framework
- Monitoring metrics
- Fallback strategies
- Cost optimization

## Output

Provides:

- Optimized prompt variants
- Explanations for each change
- Evaluation metrics
- Testing strategies
- Quality and cost considerations

Files in this skill

  • SKILL.md18 B
  • optimize-prompt.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.