skills/prompt-improver/SKILL.md
This skill enriches vague prompts with targeted research and clarification before execution. Should be used when a prompt is determined to be vague and requires systematic research, question generation, and execution guidance.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers prompt-improverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform vague, ambiguous prompts into actionable, well-defined requests through systematic research and targeted clarification. This skill is invoked when the hook has already determined a prompt needs enrichment.
This skill is for genuinely vague prompts only — where the user's intent cannot be determined from the message + conversation context + codebase evidence combined. Most "slightly ambiguous" messages should be handled by prompt-architect's normal inference. This skill is the heavy-duty fallback.
Invocation criteria (ALL must be true):
Do NOT invoke for:
Manual invocation:
This skill follows a 4-phase approach to prompt enrichment:
Create a dynamic research plan using TodoWrite before asking questions.
Research Plan Template:
Critical Rules:
Research strategies: Use WebSearch and Grep to gather context. Search the codebase for related patterns, check documentation, and look up best practices online when needed.
Based on research findings, formulate 1-6 questions that will clarify the ambiguity.
Question Guidelines:
Number of Questions:
Question patterns: Ask 2-3 specific multiple-choice questions focused on scope, approach, and constraints. Ground each option in codebase findings or established patterns rather than abstract possibilities.
Use the AskUserQuestion tool to present your research-grounded questions.
AskUserQuestion Format:
- question: Clear, specific question ending with ?
- header: Short label (max 12 chars) for UI display
- multiSelect: false (unless choices aren't mutually exclusive)
- options: Array of 2-4 specific choices from research
- label: Concise choice text (1-5 words)
- description: Context about this option (trade-offs, implications)
Important: Always include multiSelect field (true/false). User can always select "Other" for custom input.
Proceed with the original user request using:
Execute the request as if it had been clear from the start.
Hook evaluation: Determined prompt is vague Original prompt: "fix the bug" Skill invoked: Yes (prompt lacks target and context)
Research plan:
Research findings:
Questions generated:
User answer: Login authentication failure
Execution: Fix the error handling in auth.py:145 that's causing login failures
Original prompt: "Refactor the getUserById function in src/api/users.ts to use async/await instead of promises"
Hook evaluation: Passes all checks
Skill invoked: No (prompt is clear, proceeds immediately without skill invocation)
See the examples above for how prompt types are evaluated and transformed.
This SKILL.md contains the complete workflow, research strategies, question patterns, and examples needed for prompt improvement. All guidance is inline — no external reference files required.
tools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.