Install
openclaw skills install @lq434239/prompt-refinerUse when user input is vague, underspecified, lacks boundaries or acceptance criteria, or would benefit from being reframed into a more executable prompt before work begins. Also use when user explicitly asks to optimize/refine/improve a prompt.
openclaw skills install @lq434239/prompt-refinerA prompt is not just wording polish — it is task clarification, boundary setting, and verification shaping.
Refine vague user prompts into clear, actionable, verifiable versions. Show the refined result and let the user confirm before execution. Works as a closed loop with session-learner, which captures user choice preferences over time.
| Situation | Action |
|---|---|
| Vague request | Refine first |
| Complete prompt | Execute directly, no popup |
| Substantial improvement | Show refined + popup choose |
| No substantial improvement | Skip popup, execute original |
| User says "just do it" | Auto-apply |
| User says "only optimize" | Return refined, don't execute |
session-learner — capture preference pattern, never record full prompt text.Include the following blocks as needed (trim, don't mechanically stack):
For detailed patterns and examples, see references/prompt-patterns.md.
First, judge whether refinement adds real value. If the refined prompt only tweaks wording without adding explicit goals/constraints/output format/acceptance criteria, and doesn't significantly reduce ambiguity, it has no substantial optimization value.
Step 1 (required): Output the refined prompt as plain text in the chat area first.
Optimized Prompt
Step 2 (required, after step 1): Call AskUserQuestion popup for user to choose. Options:
Forbidden:
Execute after user chooses.
Optimized Prompt
Then execute immediately.
Optimized Prompt
Do not execute the task.
session-learner.session-learner should only summarize rules (e.g., "user prefers seeing refined version before confirming"), never record full prompt text.session-learner builds a preference profile that makes prompt-refiner increasingly aligned with user habits.