prompt-optimizer

prompt-optimizer is a skill for Claude Code from shennawardana23/skillme. It costs 94 tokens per session (1,558 once invoked), scanned A, original, Apache-2.0.

A guide for improving a draft prompt by finding missing details and matching the request to relevant skills. It produces a revised prompt for someone else to use and does not perform the requested task.

In plain words
What is it for?
Use it when you want feedback on a prompt or a ready-to-paste version for a coding or project task.
Why use it?
It turns vague requests into clearer instructions, reducing the chance that an agent misunderstands the scope or produces incomplete work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it when you want feedback on a prompt or a ready-to-paste version for a coding or project task.

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

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

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-optimizer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/prompt-optimizer"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/prompt-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,558 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.00094 $0.01558
Opus 5 $0.00047 $0.00779
Sonnet 5 $0.00019 $0.00312
Haiku 4.5 $0.00009 $0.00156

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

Security

Grade A, and why

prompt-optimizer 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 8d 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-optimizer/SKILL.md · 107 lines

How it starts

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

Prompt Optimizer

Turn a vague or underspecified prompt into one that's specific enough to get a good result on the first try — without doing the task itself.

When to Use

  • "Optimize this prompt", "improve my prompt", "rewrite this prompt"
  • "How should I ask for X", "what's the best way to prompt for..."
  • A draft prompt is pasted with a request for feedback or enhancement

Do not use when: the user wants the task done directly ("just do it") — tell them this skill only produces an optimized prompt, and to make a normal task request instead if they want execution.

Role: Advisory Only

Never write code, create files, run commands, or take any implementation action from within this skill. The only output is a diagnosis plus an optimized prompt the user can paste elsewhere to actually run the task.

The Pipeline

Run these phases in order.

Phase 0: Project Detection

Check whether a rules file (CLAUDE.md or equivalent) exists in the working directory and read it for conventions. Detect the tech stack from manifest files present: go.mod → Go, package.json → Node/TypeScript, pyproject.toml/requirements.txt → Python, Cargo.toml → Rust, and so on. If no manifest is found (the prompt is abstract or for a brand-new project), skip detection and flag "tech stack unknown" in Phase 4 rather than guessing one.

Phase 1: Intent Detection

Classify the task into one or more categories: new feature, bug fix, refactor, research, testing, review, documentation, infrastructure, or design. The category shapes which phase-5 workflow steps matter most.

Phase 2: Scope Assessment

Estimate size from the prompt and, if a project was detected, from the affected codebase: trivial (single file, <50 lines), low (single module), medium (multiple components, same domain), high (cross-domain, 5+ files), epic (multi-session, architectural). If no project context exists, estimate from the description alone and mark the estimate as uncertain.

Phase 3: Existing-Skill Matching

Read the full file on GitHub · 107 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. 8d ago First seen · 107 lines · 94 tokens per session scan A b2c5e7de8b8c

Subscribe to this mod's changes

prompt-optimizer is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 13d ago), licensed Apache-2.0. It adds 94 tokens to every session and 1,558 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

changelog

Generates a personal markdown changelog of merged or closed pull requests authored by the current user and Linear tickets the user closed or worked on, over a configurable window (default 7 days), grouped by feature area (e.g. Dashboards, Agent0). Inputs sourced from gh search prs --author=@me and the Linear MCP. Use…

mthines/agent-skills · 123 tokens

dx

Developer Experience (DX) review and advisory skill for CLI tools, shell scripts, developer tooling, and automation. Analyzes code against established CLI design guidelines (clig.dev, Heroku CLI Style Guide, 12 Factor CLI), composability principles, error handling best practices, and developer ergonomics. Triggers on…

mthines/agent-skills · 155 tokens

disk-cleaner

A Mac disk-cleaning assistant built around the Mole cleanup tool. It checks the environment, previews removable files, and can run cleanup using different safety levels with reports and protected paths.

sutchan/Agent-Skills-Hub · 34 tokens

life-design

Walk you through the Stanford Designing Your Life method and write your Personal Life Design Blueprint — three Odyssey plans and the prototypes to test them.

coolTheWorld/evolution-skills · 30 tokens

timeboxed-work

Work under an explicit time budget with deterministic deadline tracking, useful stretch work, scope control, isolated timers for parallel sessions/agents/apps, and handoff. Use when the user asks for a timebox, fixed duration, deadline, work for N minutes/hours, use the full time, keep improving until the deadline…

Gzh0821/timeboxed-work · 133 tokens

lark-meeting

A tool for finding and working with online meeting records and related documents in Lark, a workplace collaboration platform. It handles summaries, transcripts, recordings, searchable meeting notes, and live meeting interaction.

sutchan/Agent-Skills-Hub · 118 tokens