Prompt Refiner

Prompt Refiner is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 21 tokens per session (1,612 once invoked), scanned A, original, MIT.

A method for rewriting instructions given to an AI model so they are clearer, more specific, and more consistent.

In plain words
What is it for?
Use it to improve prompts for one-off tasks or production systems, especially when current responses are vague, inconsistent, or frequently wrong.
Why use it?
It addresses missing context, unclear requests, and unspecified output formats that can cause an AI model to misunderstand the task or respond differently each time.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Use it to improve prompts for one-off tasks or production systems, especially when current responses are vague, inconsistent, or frequently wrong.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/prompt-refiner
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 Notysoty/openagentskills --skill prompt-refiner
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

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 Prompt Refiner

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/prompt-refiner/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/prompt-refiner)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/prompt-refiner"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/prompt-refiner/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 Prompt Refiner

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/prompt-refiner"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/prompt-refiner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,612 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.
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.00021 $0.01612
Opus 5 $0.00010 $0.00806
Sonnet 5 $0.00004 $0.00322
Haiku 4.5 $0.00002 $0.00161

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

Security

Grade A, and why

Prompt Refiner 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.

skills/prompt-refiner/SKILL.md · 175 lines

How it starts

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

Prompt Refiner

What this skill does

This skill takes a rough or underperforming AI prompt and rewrites it to be clearer, more specific, and more likely to produce consistent, high-quality output from a language model. It identifies the root causes of vague or ineffective prompts — missing context, absent output format specs, ambiguous instructions — and systematically addresses each one. It also explains every change so you can learn the principles, not just get a one-time fix.

Use this when your prompts produce inconsistent results, when the model frequently misunderstands what you want, or when you're building a prompt that will run in production.

How to use

Claude Code / Cline

Copy this file to .agents/skills/prompt-refiner/SKILL.md in your project root.

Then paste your prompt and ask:

  • "Use the Prompt Refiner skill to improve this prompt."
  • "Refine this system prompt using the Prompt Refiner skill — it's producing inconsistent outputs."

Include what the prompt is for (the model it targets, the task, what's going wrong with current outputs) to get more targeted improvements.

Cursor

Add the "Prompt / Instructions" section to your .cursorrules file. Paste your prompt into the chat and ask for a refinement.

Codex

Paste your original prompt and a description of what output you're trying to achieve, then include the instructions below.

The Prompt / Instructions for the Agent

When asked to refine a prompt, follow these steps:

  1. Analyze the original prompt for these weaknesses:

    • Vague task definition — the model has to guess what "good" looks like
    • No role assignment — not telling the model what persona or expertise to adopt
    • Missing output format — no specification of length, structure, format (JSON, markdown, bullet list, etc.)
    • Missing context — no background about the user, use case, or constraints
    • Ambiguous pronouns or references — "it", "this", "the thing" without clear antecedents
    • Conflicting instructions — asking for brevity and comprehensiveness in the same breath
    • No examples — complex tasks benefit from at least one example of desired input/output
    • No constraints — no guidance on what to avoid or exclude
    • Negative-only instructions — "don't use jargon" without specifying the preferred alternative

Read the full file on GitHub · 175 lines

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 · 175 lines · 21 tokens per session scan A 6d4ba315ab25

Subscribe to this mod's changes

Prompt Refiner is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 26d ago), licensed MIT. It adds 21 tokens to every session and 1,612 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

encargo

Use when a raw prompt needs rewriting or sharpening, when the user says "rewrite this prompt", "make this prompt better", or asks for a prompt to hand to another agent. Also use before launching any autonomous, long-running, parallel or expensive run (/loop, subagent fan-out, worktrees, overnight work), and whenever a…

stgomoyaa/encargo · 105 tokens

llm-prompting

Write effective LLM prompts — role framing, few-shot examples, constraints, system/user placement, and a repeatable evaluation loop.

vikasudasi/skill-vault · 32 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

firebase-ai

Use when setting up firebaseai, generating text/chat with Gemini, streaming AI output, building multimodal prompts, or handling AI errors.

evanca/flutter-ai-rules · 30 tokens

prompt-enhancer

Transform poor or overly simple prompts with expert-level framing. Use when the user explicitly asks to improve, refine, or rewrite a prompt, or wants help framing a request for another AI system. Do NOT use for authoring, reviewing, or migrating system prompts or skills targeting a specific Claude model…

sammcj/agentic-coding · 67 tokens