lwy-prompt-optimizer
This skill acts as a prompt coach, evaluating every instruction you send to an AI system across seven key dimensions: clarity, specificity, context, structure, examples, constraints, and completeness. It scores each area, identifies gaps, and delivers a rewritten version designed to produce better results on the first try. Works with any prompt type—code generation, writing, analysis, or creative tasks.
lwy-prompt-optimizer analyzes your AI prompts across 7 dimensions and rewrites them for clarity and precision.
AI-generated summary based on this skill's SKILL.md
Install
learnwy/skills/lwy-prompt-optimizer · repository language: TypeScript
git clone https://github.com/learnwy/skills
cp -r skills/skills/lwy-prompt-optimizer ~/.claude/skills/lwy-prompt-optimizerFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I write better prompts for AI with lwy-prompt-optimizer?
lwy-prompt-optimizer teaches you to craft more effective AI instructions by analyzing your prompts across seven key dimensions: clarity, specificity, context, structure, examples, constraints, and completeness. The skill scores each area, identifies gaps, and provides a rewritten version designed to produce better results on the first try—whether you're generating code, writing content, analyzing data, or creating something creative.
What does lwy-prompt-optimizer check when reviewing my prompt?
lwy-prompt-optimizer evaluates your prompt on seven dimensions: clarity (is it easy to understand?), specificity (are details precise?), context (is background provided?), structure (is it well-organized?), examples (are sample inputs/outputs included?), constraints (are limits and rules stated?), and completeness (does it cover all needed information?). You receive a score for each area plus actionable rewrite suggestions.
Can lwy-prompt-optimizer detect weak prompts before I send them?
Yes. lwy-prompt-optimizer automatically detects weak prompts and suggests improvements before execution. This helps you avoid wasted AI calls and refine your instructions upfront, saving time and improving output quality across any prompt type—from technical requests to creative tasks.
Does lwy-prompt-optimizer help non-native English speakers?
lwy-prompt-optimizer includes vocabulary learning support to help non-native English speakers refine their prompt phrasing. Beyond grammar fixes, it teaches clearer word choices and more precise instruction patterns, making your prompts more effective while improving your English communication skills.
What types of prompts can lwy-prompt-optimizer improve?
lwy-prompt-optimizer works with any prompt type: code generation, writing assignments, data analysis, creative projects, research requests, and more. The same seven-dimension framework applies universally, so whether you're asking an AI to write a story or debug code, you'll get structured feedback and a stronger rewrite.
How does lwy-prompt-optimizer help me learn prompt best practices?
lwy-prompt-optimizer acts as a prompt coach, providing structured feedback on every instruction you submit. By seeing your prompts scored and rewritten across clarity, specificity, context, structure, examples, constraints, and completeness, you learn which patterns work best and gradually build stronger prompt-writing habits.
SKILL.md
rendered from the published skill — quoted content, verbatim
Prompt Optimizer
A pre-flight prompt checker that analyzes, critiques, and improves prompts before they are sent to an AI system. It plays the role of a coach — teaching users to write better prompts by showing what can be improved across 7 key dimensions.
> Core principle: analyze before acting. This skill is invoked at the start of a conversation, whenever the user's message looks like a prompt or instruction for an AI system. Analyze first, then improve, then let the user decide.
Prerequisites
- No runtime dependencies (a pure methodology skill,
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 5 files
skills/lwy-prompt-optimizer/SKILL.md
skills/lwy-prompt-optimizer/hooks.json
skills/lwy-prompt-optimizer/references/conditional-reflection.md
skills/lwy-prompt-optimizer/scripts/cli.cjs
skills/lwy-prompt-optimizer/scripts/hooks/user-prompt-scan.cjs