prompt-optimizer

Optimizes, rewrites, or reviews Claude prompts for plan or execution modes.

3|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/lucasxf/engineering-daybook --skill prompt-optimizer-lucasxf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/lucasxf/engineering-daybook/tree/main/.claude/skills/prompt-optimizer
Command: npx skills add https://github.com/lucasxf/engineering-daybook --skill prompt-optimizer-lucasxf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires java, spring-boot, pgvector, uuid-ossp, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill ensures that prompts for Claude Code are efficient, precise, and optimized for the desired mode of operation (plan or execution).

Core Features & Use Cases

  • Prompt Optimization: Rewrite prompts for Claude Code's plan (Opus) or execution (Sonnet) modes.
  • Mode Detection: Automatically determine whether a prompt should be optimized for plan or execution mode.
  • Prompt Review: Analyze existing prompts for quality and suggest improvements.

Quick Start

To optimize a prompt for Sonnet execution mode, simply use the prompt-optimizer skill and provide the text of your prompt.

Frequently Asked Questions about prompt-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize prompts for Claude Code execution mode?

To optimize prompts for Claude Code execution mode, provide the prompt text to the prompt-optimizer. It analyzes your prompt for efficiency and specificity, rewriting it specifically for Sonnet execution tasks.

What is the difference between plan and execution modes in Claude prompt engineering?

Plan and execution modes in Claude prompt engineering target different model capabilities: plan mode optimizes for Opus strategic planning, while execution mode tailors prompts for Sonnet task execution. The optimizer automatically detects and classifies prompts for the appropriate mode.

Do I need Java to review and rewrite Claude commands?

Yes, you need Java installed because prompt-optimizer requires a Java backend for processing operations. It handles queue-based prompt discovery and reviews file-based Claude commands, agents, and SKILL.md files.

Can I review existing SKILL.md files for prompt quality improvements?

You can review existing SKILL.md files for prompt quality by using the file-based review feature. It analyzes Claude commands and agents to suggest specific improvements for efficiency and mode-appropriate content.

What's the best way to analyze a prompt for mode-appropriate content?

The best way to analyze a prompt for mode-appropriate content is using automated mode detection. The system evaluates prompt specificity and efficiency to determine whether it fits Claude Code plan or execution modes.

Why does prompt optimization require Spring Boot and pgvector dependencies?

Prompt optimization requires Spring Boot and pgvector dependencies to support backend queue-based prompt discovery and vector similarity analysis. This infrastructure enables efficient classification and processing of Claude prompts.