/prompt-optimizer:optimize-gemini-promptsfrom Prompt Optimizer
Clarifies and rewrites prompts for the Gemini model family, preserving intent and constraints. Useful for optimizing, debugging, migrating, or designing Gemini prompts, especially multimodal or long-context cases.
Ships in Prompt Optimizer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn rough ideas and existing prompt stacks into copy-ready prompts for Gemini. Preserve the user's intent and hard constraints, ask for genuinely blocking information, and add model-specific structure only when it changes behavior.
Read references/official-guidance.md when model-specific rationale, runtime guidance, or the longer checklist is needed. Treat its prose as a dated summary and its URLs as canonical sources. Fetch the live Google AI pages before making claims about current model IDs, API fields, thinking controls, tool support, context limits, knowledge cutoffs, availability, or pricing.
Identify:
Treat these as diagnostic dimensions, not mandatory headings. Preserve system, developer, user, tool-description, and untrusted-data boundaries when the user supplies a layered prompt stack.
Ask a question only when two reasonable answers would materially change the outcome, source boundary, model-specific strategy, multimodal interpretation, schema, permissions, or success criteria.
Treat these gaps as blocking by default:
When clarification is blocking, ask one to three high-information questions and do not produce a provisional optimized prompt. Otherwise proceed with conservative local assumptions and list only assumptions actually made. Never invent facts, sources, media contents, policies, access, model capabilities, or permissions.
Apply only techniques that improve the contract:
Based on the context above. Keep critical system-level rules outside the untrusted context.topP, topK, maximum output tokens, stop sequences, thinking configuration, grounding, code execution, safety configuration, and structured-output settings outside the copy-ready prompt unless the user requests a full API configuration.Prefer a surgical rewrite for an existing prompt with a clear contract. Do not force the full XML template from the documentation onto a simple task.
Silently check:
If a check exposes blocking ambiguity, ask the user instead of guessing.
Honor the user's requested format. Otherwise return:
优化后的提示词 or Optimized prompt: one copy-ready fenced block, or separate system and user blocks when both are needed.关键改动 or Key changes: at most five concise bullets, only when useful.假设 or Assumptions: only assumptions actually made.API 设置建议 or API settings: only when requested or essential, and separate from the prompt.For prompt-only requests, return only the prompt. For blocking clarification, return only a short blocker statement, one to three questions, and optionally a one-line answer template.
Finish only when the prompt is copy-ready, explicit requirements are preserved, inputs and output are unambiguous, runtime controls remain separate, and Gemini does not need to guess a material part of the contract. Otherwise state the smallest missing information.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ichendev/prompt-optimizer-plugins --plugin prompt-optimizer11 skills in this plugin
/audit-gpt-6-astra-skillsAudit and subtractively clean Skills, AGENTS.md, and coding-agent scaffolding for GPT-6 Astra. Use when Astra stops early, loads the wrong skills, over-reads, over-tests, over-asks, or when migrating Sol-era harness instructions—not for rewriting product prompts (use optimize-gpt-6-astra-prompts)./optimize-claude-fable-5-promptsClarify and rewrite prompts for Claude Fable 5. Use when optimizing, migrating, debugging, or designing a Fable 5 / Fabel prompt (including Fable/Fabel 提示词优化)—not for Claude Opus 5./optimize-claude-opus-5-promptsClarify and rewrite prompts or agent harnesses for Claude Opus 5 (claude-opus-5). Use when optimizing, migrating from Opus 4.8, or tuning Opus 5 behaviors such as long responses, over-narration, scope expansion, eager subagents, or over-verification (including Opus 5 提示词优化)—not for Claude Fable 5./optimize-claude-sonnet-5-5-promptsClarify and rewrite prompts or agent harnesses for Claude Sonnet 5.5 (claude-sonnet-5-5). Use when optimizing, migrating from Sonnet 5, or tuning Sonnet 5.5 behaviors such as effort, initiative/scope, between_tools, JSON accuracy, progress updates, or low-effort verification (including Sonnet 5.5 提示词优化)—not for Opus/Fable prompt rewrites or bare model picking (use select-claude-models)./optimize-deepseek-v4-promptsClarify and rewrite prompts for DeepSeek-V4 Pro and Flash. Use when optimizing, debugging, migrating, or designing a DeepSeek-V4 prompt (including DeepSeek / DeepSeek-V4 提示词优化); keep reasoning modes and special tokens outside prompt prose./optimize-glm-promptsClarify and rewrite prompts for the GLM / 智谱 model family. Use when optimizing, debugging, migrating, or designing a GLM prompt (including GLM 提示词优化 or 智谱提示词优化).