prompt-optimizer

Analyze prompt intent and gaps to generate a refined, copy-paste-ready prompt.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xxih/ai-harness-zh --skill prompt-optimizer-xxih
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/xxih/ai-harness-zh/tree/main/references/translations/everything-claude-code/docs/zh-CN/skills/prompt-optimizer
Command: npx skills add https://github.com/xxih/ai-harness-zh --skill prompt-optimizer-xxih

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Users often craft prompts that are vague, incomplete, or misaligned with ECC components, leading to sub‑optimal results. This Skill evaluates raw prompts, identifies intent gaps, and produces a refined, copy‑paste‑ready prompt.

Core Features & Use Cases

  • Intent & Gap Analysis: Detects missing information and mismatched ECC components in the original prompt.
  • ECC Component Matching: Suggests appropriate skills, commands, agents, or hooks to fulfill the identified intent.
  • Optimized Prompt Generation: Returns a single, ready‑to‑use prompt that aligns with ECC best practices.
  • Use Cases: Improving prompts for code generation, troubleshooting, research planning, or any scenario where clear ECC instructions are needed.

Quick Start

Ask the prompt‑optimizer skill to improve your draft prompt and receive a ready‑to‑paste optimized version.

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 ECC tasks to get better results?

To optimize prompts for ECC tasks, you need to analyze intent and identify gaps in your raw instructions. This process refines vague wording by matching it with appropriate skills, commands, or hooks to produce a copy-paste ready prompt aligned with ECC best practices.

What is prompt intent and gap analysis for AI assistants?

Prompt intent and gap analysis is the process of detecting missing information and mismatched components in your original prompt. It evaluates your raw input to identify misalignments with ECC components, ensuring the final prompt contains all necessary details for the AI assistant.

How do I rewrite or translate prompts to match ECC components?

Rewriting or translating prompts to match ECC components involves evaluating your draft and suggesting appropriate skills, commands, agents, or hooks. The analysis produces a single, ready-to-use prompt that fulfills the identified intent without requiring external tools.

Can I improve code generation prompts without using external tools?

You can improve code generation prompts without external tools by using internal analysis to evaluate your raw instructions. The system identifies missing information and returns a refined, copy-paste-ready prompt that aligns with ECC best practices for your troubleshooting or research planning scenarios.

What is the best way to align vague instructions with ECC best practices?

The best way to align vague instructions with ECC best practices is to analyze the prompt's intent and identify missing information. By evaluating the raw text, you can suggest appropriate skills, commands, agents, or hooks to generate a refined prompt that resolves the original misalignment.

Why does my AI assistant return sub-optimal results for ECC tasks?

Your AI assistant returns sub-optimal results for ECC tasks because your prompts are often vague, incomplete, or misaligned with ECC components. Evaluating the raw prompt to detect intent gaps and producing a refined version resolves this mismatch.