prompt-optimizer
Analyze raw prompts, identify intent and gaps, match ECC components (skills/commands/agents/hooks), and output a ready-to-paste optimized prompt. Advisory role only — never executes the task itself. TRIGGER when: user says "optimize prompt", "improve my prompt", "how to write a prompt for", "help me prompt", "rewrite this prompt", or explicitly asks to enhance prompt quality. Also triggers on Chinese equivalents: "优化prompt", "改进prompt", "怎么写prompt", "帮我优化这个指令". DO NOT TRIGGER when: user wants th
Security Assessment
About prompt-optimizer
The prompt-optimizer skill is designed to assist users in refining and enhancing their draft prompts without executing any tasks directly. It addresses a common challenge where users struggle to articulate precise prompts for AI or ECC ecosystem components, often leading to suboptimal results. By analyzing the user's input, identifying intent and gaps, and mapping the prompt to relevant ECC skills, commands, agents, or hooks, this skill generates a polished, ready-to-use prompt that maximizes clarity and effectiveness. Importantly, it functions in an advisory capacity and never runs the tasks described in the prompt itself, ensuring a clear separation between optimization and execution.
Key features of prompt-optimizer include multi-phase analysis, beginning with project context detection, which identifies tech stacks and project conventions to tailor suggestions. It then classifies user intent into categories such as new features, bug fixes, refactoring, research, testing, documentation, and review. The skill provides actionable feedback by highlighting gaps, suggesting improvements, and producing a refined prompt. It supports both English and Chinese trigger phrases, and explicitly avoids triggering for unrelated requests such as code optimization or direct task execution, maintaining precise focus on prompt quality enhancement.
This skill is particularly useful for developers, technical writers, and AI practitioners who need guidance on how to phrase their prompts for ECC ecosystem tools effectively. Typical use cases include improving a prompt for generating code snippets, research instructions, test cases, or documentation. It also supports users who are new to ECC or AI prompting, providing a structured approach to crafting well-formed prompts. By using prompt-optimizer, users can save time, reduce trial-and-error in prompt design, and ensure that their instructions are clear, context-aware, and actionable.
FAQ
When should I use the prompt-optimizer skill?
Use it when you want to enhance or refine a prompt, such as asking 'optimize this prompt', 'help me write a better prompt for...', or pasting a draft prompt for feedback. It is triggered by specific English and Chinese phrases listed in the skill documentation.
Can prompt-optimizer execute the tasks described in my prompt?
No, this skill is advisory only. It analyzes and optimizes prompts but does not run commands, write code, or perform implementations.
Which programming languages or tech stacks does it support?
The skill detects project files for languages like JavaScript/TypeScript/React/Next.js, Python, Go, Rust, Java/Kotlin, Swift, Ruby, PHP, .NET, C/C++, and Perl to provide context-aware suggestions. If no project files are found, it flags the tech stack as unknown.
What types of prompts should I avoid using with this skill?
Avoid using it for requests that are about direct execution, code optimization, performance tuning, ECC configuration, or skill inventories. The skill is specifically for improving prompt clarity and effectiveness.
Does prompt-optimizer support languages other than English?
Yes, it also supports Chinese trigger phrases for prompt enhancement, including '优化prompt', '改进prompt', '怎么写prompt', and '帮我优化这个指令'.
Install prompt-optimizer
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
affaan-m/everything-claude-code