Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
iliaal avatar

Refine Prompt

  • 119 installs
  • 31 repo stars
  • Updated August 4, 2026
  • iliaal/ai-skills

Transform vague prompts into precise, structured AI instructions by assessing missing elements and rewriting them as a specification.

About

The refine-prompt skill assesses a prompt for missing task, constraints, output format, context, and edge cases, then rewrites it in specification language. A developer uses it to refine or sharpen prompts, do prompt engineering, or write effective system prompts.

  • Assessment checklist for task, constraints, format, context, examples
  • Rewrites prompts as precise imperative specs, not conversation

Refine Prompt by the numbers

  • 119 all-time installs (skills.sh)
  • +8 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #3,837 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/iliaal/ai-skills --skill refine-prompt

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs119
repo stars31
Last updatedAugust 4, 2026
Repositoryiliaal/ai-skills

What it does

Transform vague prompts into precise, structured AI instructions by assessing missing elements and rewriting them as a specification.

Files

SKILL.mdMarkdownGitHub ↗

Refining Prompts

Process

1. Assess -- Identify what the prompt is missing:

ElementCheck
TaskIs the core action explicit and unambiguous?
ConstraintsAre length, format, tone, and scope defined?
Output formatDoes it specify the expected structure?
ContextDoes the model have enough background to act? Check: audience, input format, success criteria, scope boundaries, technical constraints
ExamplesWould a demonstration clarify the expected output?
Edge casesAre failure modes and boundary conditions addressed?

2. Rewrite -- Transform into specification language: precise, imperative, no filler. Treat the prompt as a spec, not conversation.

3. Validate -- Check the rewrite against the assessment table. Every gap identified in step 1 must be addressed.

Rules

  • Length: 0.75x–1.5x the original. Conciseness is a feature -- add only what's missing, cut what's vague.
  • Never invent -- only use information present in the original prompt or conversation context. If critical info is missing, ask instead of assuming.
  • Instruction hierarchy -- order sections by priority: task → constraints → examples → input data → output format. Place the most important instruction first.
  • Progressive complexity -- start with the simplest prompt that could work. Add few-shot examples, chain-of-thought, or role framing only when the task demands it, not by default.
  • Specific verbs -- replace vague actions ("analyze", "process", "handle") with measurable ones ("list the top 3", "classify as A/B/C", "return JSON with keys X, Y").
  • One output format -- specify exactly one format (JSON schema, markdown template, numbered list). Ambiguous format expectations cause inconsistent results.
  • No meta-commentary -- output only the refined prompt as markdown. No preamble ("Here's an improved version..."), no explanation of changes unless explicitly requested.

Persistence

After refining, offer to save the result to .ai/PROMPT.md -- do not write without user confirmation. If approved, append with a heading and date:

## [Prompt Name] -- YYYY-MM-DD

[refined prompt content]

Anti-Patterns

ProblemFix
Vague verbs ("look into", "deal with")Replace with concrete actions ("list", "compare", "extract")
Missing output specAdd explicit format section with example structure
Examples contradict instructionsAlign examples to match every stated rule
Over-engineered from the startStrip to simplest working version, then add complexity only where output quality requires it
Prompt exceeds context with examplesLimit to 2–3 diverse examples; use one simple, one edge case

Constraints

  • Stop refining if the original intent is unclear -- clarify first
  • Do not refine prompts for harmful or illegal tasks

Verify

  • Rewrite addresses every gap identified in the assessment
  • Length ratio within 0.75x-1.5x of original (unless structural change justified)
  • No invented constraints or assumptions not in the original

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.