refine-prompt

refine-prompt is a skill for Claude Code, Codex from iliaal/whetstone. It costs 62 tokens per session (600 once invoked), scanned A, original, MIT.

A prompt-writing guide that turns rough requests into clear instructions for an AI assistant. It checks the task, constraints, context, output format, examples, and edge cases before rewriting.

In plain words
What is it for?
Use it to improve, rewrite, or structure prompts. It is also useful for checking whether instructions clearly define the task and expected answer.
Why use it?
It helps remove ambiguity and missing details without inventing information. This makes the requested result easier for an AI assistant to understand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to improve, rewrite, or structure prompts. It is also useful for checking whether instructions clearly define the task and expected answer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iliaal/whetstone/refine-prompt
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iliaal/whetstone --skill refine-prompt
Clone the repo
git clone --depth 1 https://github.com/iliaal/whetstone

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for refine-prompt

README.md
[![agentmods](https://agentmods.dev/badge/skills/iliaal/whetstone/refine-prompt/github.svg)](https://agentmods.dev/skills/iliaal/whetstone/refine-prompt)
Your own site
<a href="https://agentmods.dev/skills/iliaal/whetstone/refine-prompt"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/refine-prompt/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refine-prompt

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/whetstone/refine-prompt"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/refine-prompt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 600 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00600
Opus 5 $0.00031 $0.00300
Sonnet 5 $0.00012 $0.00120
Haiku 4.5 $0.00006 $0.00060

Measured 10d ago against content hash 90212f93f9c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

refine-prompt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

distillery/generated-skills/refine-prompt/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Refining Prompts

Process

  1. Assess — Identify what the prompt is missing:
Element Check
Task Is the core action explicit and unambiguous?
Constraints Are length, format, tone, and scope defined?
Output format Does it specify the expected structure?
Context Does the model have enough background to act?
Examples Would a demonstration clarify the expected output?
Edge cases Are failure modes and boundary conditions addressed?
  1. Rewrite — Transform into specification language: precise, imperative, no filler. Treat the prompt as a spec, not conversation.

  2. 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.

Anti-Patterns

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

Read the full file on GitHub · 48 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 48 lines · 62 tokens per session scan A 90212f93f9c5

Subscribe to this mod's changes

refine-prompt is a skill published in the GitHub repository iliaal/whetstone (33 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 600 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories