Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aznatkoiny avatar

Prompt Optimizer

  • 13 installs
  • 9 repo stars
  • Updated August 4, 2026
  • aznatkoiny/zai-skills

prompt-optimizer is a Claude skill that optimizes prompts for Claude 4.x models using Anthropic's official best practices.

About

prompt-optimizer is a skill for improving, refining, or creating prompts for Claude 4.x models using Anthropic's official guidance. A developer uses it when Claude is too verbose, is not following instructions, is not using tools properly, or produces generic output. It follows a diagnose-select-apply-test workflow and provides quick fixes plus reference files for patterns, formatting control, and agentic behaviors.

  • Optimizes prompts for Claude 4.x models using Anthropic's official best practices
  • Diagnoses common issues (verbosity, formatting, tool use, instruction following) and applies targeted fixes
  • Routes to reference files for patterns, output formatting, and agentic/tool-use behaviors

Prompt Optimizer by the numbers

  • 13 all-time installs (skills.sh)
  • Ranked #11,409 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

prompt-optimizer capabilities & compatibility

Capabilities
prompt engineering · prompt optimization · system prompt design
Works with
anthropic
Use cases
token optimization · copywriting
Pricing
Free
From the docs

What prompt-optimizer says it does

Optimize prompts for Claude 4.x models using Anthropic's official best practices.
SKILL.md
Claude 4.x models follow instructions precisely. Request behaviors explicitly rather than hoping Claude infers them.
SKILL.md
npx skills add https://github.com/aznatkoiny/zai-skills --skill prompt-optimizer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs13
repo stars9
Last updatedAugust 4, 2026
Repositoryaznatkoiny/zai-skills

What it does

Diagnose and rewrite prompts so Claude 4.x models follow instructions, format output, and use tools as intended.

Who is it for?

Fixing prompts that are too verbose, over-formatted, not following instructions, not using tools, or producing generic output.

Skip if: Optimizing prompts for non-Claude models, or general writing unrelated to LLM instructions.

When should I use this skill?

A user wants to improve, refine, or create effective prompts, or reports Claude being verbose, not following instructions, or misusing tools.

What you get

A refined prompt that is explicit, well-exampled, and controls verbosity, formatting, and tool use for Claude 4.x.

  • optimized prompts
  • system prompts
  • prompt snippets

By the numbers

  • 4-step optimization workflow (diagnose, select, apply, test)
  • 3 reference files: patterns, formatting, agentic

Files

SKILL.mdMarkdownGitHub ↗

Prompt Optimizer

Optimize prompts for Claude 4.x models (Sonnet 4.5, Haiku 4.5, Opus 4.5) using Anthropic's official guidance.

Core Principles

1. Be Explicit

Claude 4.x models follow instructions precisely. Request behaviors explicitly rather than hoping Claude infers them.

Less effective: Create an analytics dashboard

More effective: Create an analytics dashboard. Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation.

2. Provide Context for Why

Explain motivation behind instructions to help Claude generalize appropriately.

Less effective: NEVER use ellipses

More effective: Your response will be read aloud by a text-to-speech engine, so never use ellipses since the text-to-speech engine will not know how to pronounce them.

3. Align Examples with Desired Behavior

Claude pays close attention to examples. Ensure they demonstrate exactly what you want, without patterns you want to avoid.

Optimization Workflow

1. Diagnose the issue (verbosity, formatting, tool use, instruction following) 2. Select relevant patterns from references/patterns.md 3. Apply the appropriate prompt snippets 4. Test the optimized prompt

Quick Fixes by Issue

Too Verbose

Add: Keep responses concise and direct. Avoid unnecessary elaboration.

Too Much Markdown/Bullets

See references/formatting.md for detailed prompts to control output style.

Not Using Tools

Add: By default, implement changes rather than only suggesting them. Use tools to take action.

Generic "AI Slop" Output

Add creativity guidance or use the frontend-aesthetics pattern from references/patterns.md.

Not Following Instructions

Make instructions explicit, add context for why, frame positively (what TO do, not what NOT to do).

Reference Files

  • references/patterns.md - Complete prompt snippets organized by use case
  • references/formatting.md - Output format control patterns
  • references/agentic.md - Tool use, parallel execution, and multi-context workflows

Load the appropriate reference file based on the optimization need.

Related skills

Forks & variants (1)

Prompt Optimizer has 1 known copy in the catalog totaling 1 installs. They canonicalize to this original listing.

FAQ

Which models does prompt-optimizer target?

Claude 4.x models, specifically Sonnet 4.5, Haiku 4.5, and Opus 4.5, using Anthropic's official guidance.

What is the optimization workflow?

Diagnose the issue, select relevant patterns from the reference files, apply the appropriate prompt snippets, then test the optimized prompt.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.