prompt-generator

prompt-generator is a skill for Claude Code from alonbaron/claude-skills. It costs 109 tokens per session (1,097 once invoked), scanned A, original, MIT.

A prompt-writing tool that turns a vague task or rough instructions into a short, testable prompt for another AI agent.

In plain words
What is it for?
Use it when preparing a coding task or specification for an AI model. It can define the role, objective, completion checks, evidence rules, and output limits.
Why use it?
It reduces unclear requirements, unsupported guesses, excessive output, and weak definitions of what counts as finished.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the alon-skills plugin — 6 skills shipped together

Good fit Use it when preparing a coding task or specification for an AI model. It can define the role, objective, completion checks, evidence rules, and output limits.

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

Made for: Claude Code.

Or install alon-skills, the plugin that ships this one along with the rest of its 6 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alonbaron/claude-skills/prompt-generator"><img src="https://agentmods.dev/badge/skills/alonbaron/claude-skills/prompt-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 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.00109 $0.01097
Opus 5 $0.00055 $0.00549
Sonnet 5 $0.00022 $0.00219
Haiku 4.5 $0.00011 $0.00110

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

Security

Grade A, and why

prompt-generator 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 11d 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-generator/SKILL.md · 104 lines

How it starts

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

Prompt Generator

Produce the prompt the user should have written. A good prompt is precise, grounded, and short — every token earns its place. You output a prompt, not an essay about prompting.

Proactive use

If the user hands over text another agent or LLM will run — a rough prompt, a task spec, a "have it do X" — invoke this without being asked: announce in one line ("Tightening this into a rigorous prompt") and proceed. Never ask permission to run the skill.

Process

  1. Read the intent. What outcome does the user actually want, and who runs the prompt (a coding agent, a chat model, a one-shot task)?
  2. Ask only if blocked. At most 1–2 questions, and only when a missing fact would change the prompt's structure. Otherwise proceed and list assumptions in one line.
  3. Draft using the section menu — include only the sections the task needs (a one-shot classifier doesn't need "When blocked").
  4. Self-check against the rubric below. Cut anything that doesn't change the model's behavior.
  5. Output the finished prompt in a fenced block, then ≤3 lines on key choices and what to tune.

Section menu (use what the task needs)

  • Role — who the model is and its single objective.
  • Context / Inputs — what it's given; mark placeholders as {{like_this}}.
  • Ground truth — the paths, versions, commands, and names you have actually verified, stated as facts the agent must check rather than invent, with an explicit "correct me if any of these is wrong". A coding-agent prompt without this section is where hallucinated file paths come from.
  • Rules — the grounding + efficiency rules below, plus task-specific ones.
  • Steps — ordered, only if the task is genuinely multi-step.
  • Output format — exact shape; lead with the answer.
  • When blocked — what to do on ambiguity or missing data.
  • Done when — testable success criteria.

Rules every generated prompt must carry

Grounding (no hallucination):

  • Use only what's given or verifiably checked. Never invent file paths, APIs, function names, numbers, or citations.
  • Unknown? Say "I don't know" or state the assumption — don't fill the gap with a plausible guess.
  • Separate fact from inference. Claims that need checking are flagged, not asserted.

Read the full file on GitHub · 104 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. 11d ago First seen · 104 lines · 109 tokens per session scan A de4884e2882b

Subscribe to this mod's changes

prompt-generator is a skill published in the GitHub repository alonbaron/claude-skills (13 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,097 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-08-30.

Related

Other skills, from other repositories

meta-tags-optimizer

Optimize title tags, meta descriptions, Open Graph, and Twitter cards for maximum click-through rate. Generates multiple A/B test variations with character counting and SERP preview. Use when asked to "optimize title tag", "write meta description", "improve CTR", "Open Graph tags", "fix my meta tags", "social media…

nowork-studio/notfair-plugin · 91 tokens

google-ads-audit

Google Ads account audit and business context setup. Use for account-health audits and business-context setup. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should I fix in my ads", or when the user is new to NotFair and hasn't run…

nowork-studio/notfair-plugin · 86 tokens

sxo

Search Experience Optimization (SXO) — the bridge between SEO and UX/CRO. Audits the full journey from the SERP click to the on-page goal: SERP click-through factors (title/meta/rich results that win the click), then post-click experience signals that keep users and drive conversions — above-the-fold relevance and…

nowork-studio/notfair-plugin · 235 tokens

critical-code-reviewer

Rigorously review code or pull requests for correctness, security, accessibility, maintainability, tests, and edge cases. Use when users request a critical code review, want a guided walkthrough of findings, need implementer-facing feedback, or want to prepare, create, or submit a GitHub pull request review.

posit-dev/skills · 67 tokens

shiny-bslib

Build modern Shiny dashboards and applications using bslib (Bootstrap 5). Use when creating new Shiny apps, modernizing legacy apps (fluidPage, fluidRow/column, tabsetPanel, wellPanel, shinythemes), or working with bslib page layouts, grid systems, cards, value boxes, navigation, sidebars, filling layouts, theming…

posit-dev/skills · 107 tokens

elixir-idioms

OTP/BEAM patterns and Elixir idioms — GenServer, Supervisor, Task, Registry, pattern matching, with chains, pipes. Use when designing processes or debugging BEAM issues.

oliver-kriska/claude-elixir-phoenix · 44 tokens