Agent skill

Prompt Improver

by severity1 in severity1/claude-code-prompt-improver

This skill enriches vague prompts with targeted research and clarification before execution.

MITAuto-check passedAI & LLM Engineering

Install Prompt Improver

skills CLI
$ npx skills add severity1/claude-code-prompt-improver --skill prompt-improver -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install severity1/claude-code-prompt-improver prompt-improver --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/severity1/claude-code-prompt-improver.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/prompt-improver .claude/skills/prompt-improver && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prompt-improver
GitHub stars
1.9k
Used in
2 other repos
Token cost
~1.7k tokens
SKILL.md length
711 words
Files
4 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

This skill enriches vague prompts with targeted research and clarification before execution.

  • Works in 4 steps: Research → Generate Targeted Questions → Get Clarification → …
  • Tasks that involve Prompt engineering
  • SKILL.md covers Purpose, When This Skill is Invoked, Core Workflow and Examples, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Prompt Improver is an agent skill from severity1/claude-code-prompt-improver. This skill enriches vague prompts with targeted research and clarification before execution. Should be used when a prompt is determined to be vague and requires systematic research, question generation, and execution guidance.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/examples.md`, `references/question-patterns.md` and `references/research-strategies.md`).

It sits in AI & LLM Engineering, covering Prompt engineering and Hypothesis generation. The repository describes itself as: Intelligent prompt improver hook for Claude Code. Type vibes, ship precision. The licence is MIT.

When your agent uses it

  • Tasks that involve Prompt engineering
  • Tasks that involve Hypothesis generation

Example prompts

  • “/prompt-improver”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Research
  2. Generate Targeted Questions
  3. Get Clarification
  4. Execute with Context

What it can do on your machine

Read from SKILL.md and the folder at commit 50aae18. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Prompt Improver loads about 1.7k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 711 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from severity1/claude-code-prompt-improver at commit 50aae18, republished under its MIT licence (© severity1). 711 words, ~1,661 tokens.

Download SKILL.mdSave it as .claude/skills/prompt-improver/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
prompt-improver
description
This skill enriches vague prompts with targeted research and clarification before execution. Should be used when a prompt is determined to be vague and requires systematic research, question generation, and execution guidance.

Prompt Improver Skill

Purpose

Transform vague, ambiguous prompts into actionable, well-defined requests through systematic research and targeted clarification. This skill is invoked when the hook has already determined a prompt needs enrichment.

When This Skill is Invoked

Automatic invocation:

  • UserPromptSubmit hook evaluates prompt
  • Hook determines prompt is vague (missing specifics, context, or clear target)
  • Hook invokes this skill to guide research and questioning

Manual invocation:

  • To enrich a vague prompt with research-based questions
  • When building or testing prompt evaluation systems
  • When prompt lacks sufficient context even with conversation history

Assumptions:

  • Prompt has already been identified as vague
  • Evaluation phase is complete (done by hook)
  • Proceed directly to research and clarification

Core Workflow

This skill follows a 4-phase approach to prompt enrichment:

Phase 1: Research

Create a dynamic research plan using TodoWrite before asking questions.

Research Plan Template:

  1. Check conversation history first - Avoid redundant exploration if context already exists
  2. Review codebase if needed:
    • Task/Explore for architecture and project structure
    • Grep/Glob for specific patterns, related files
    • Check git log for recent changes
    • Search for errors, failing tests, TODO/FIXME comments
  3. Gather additional context as needed:
    • Read local documentation files
    • WebFetch for online documentation
    • WebSearch for best practices, common approaches, current information
  4. Document findings to ground questions in actual project context

Critical Rules:

  • NEVER skip research
  • Check conversation history before exploring codebase
  • Questions must be grounded in actual findings, not assumptions or base knowledge
  • Route Glob, Grep, WebSearch, WebFetch, and multi-file Read through Task/Explore — never call them directly in main context
  • Include conversation-relevant context (file paths, errors, prior decisions) in every Explore prompt — Explore cannot see prior turns

For detailed research strategies, patterns, and examples, see references/research-strategies.md.

Phase 2: Generate Targeted Questions

Based on research findings, formulate 1-6 questions that will clarify the ambiguity.

Question Guidelines:

  • Grounded: Every option comes from research (codebase findings, documentation, common patterns)
  • Specific: Avoid vague options like "Other approach"
  • Multiple choice: Provide 2-4 concrete options per question
  • Focused: Each question addresses one decision point
  • Contextual: Include brief explanations of trade-offs

Number of Questions:

  • 1-2 questions: Simple ambiguity (which file? which approach?)
  • 3-4 questions: Moderate complexity (scope + approach + validation)
  • 5-6 questions: Complex scenarios (major feature with multiple decision points)

For question templates, effective patterns, and examples, see references/question-patterns.md.

Phase 3: Get Clarification

Use the AskUserQuestion tool to present your research-grounded questions.

AskUserQuestion Format:

- question: Clear, specific question ending with ?
- header: Short label (max 12 chars) for UI display
- multiSelect: false (unless choices aren't mutually exclusive)
- options: Array of 2-4 specific choices from research
  - label: Concise choice text (1-5 words)
  - description: Context about this option (trade-offs, implications)

Important: Always include multiSelect field (true/false). User can always select "Other" for custom input.

Phase 4: Execute with Context

Proceed with the original user request using:

  • Original prompt intent
  • Clarification answers from user
  • Research findings and context
  • Conversation history

Execute the request as if it had been clear from the start.

Show full SKILL.md (273 more words)Show less

Examples

Example 1: Skill Invocation → Research → Questions → Execution

Hook evaluation: Determined prompt is vague Original prompt: "fix the bug" Skill invoked: Yes (prompt lacks target and context)

Research plan:

  1. Check conversation history for recent errors
  2. Explore codebase for failing tests
  3. Grep for TODO/FIXME comments
  4. Check git log for recent problem areas

Research findings:

  • Recent conversation mentions login failures
  • auth.py:145 has try/catch swallowing errors
  • Tests failing in test_auth.py

Questions generated:

  1. Which bug are you referring to?
    • Login authentication failure (auth.py:145)
    • Session timeout issues (session.py:89)
    • Other

User answer: Login authentication failure

Execution: Fix the error handling in auth.py:145 that's causing login failures

Example 2: Clear Prompt (Skill Not Invoked)

Original prompt: "Refactor the getUserById function in src/api/users.ts to use async/await instead of promises"

Hook evaluation: Passes all checks

  • Specific target: getUserById in src/api/users.ts
  • Clear action: refactor to async/await
  • Success criteria: use async/await instead of promises

Skill invoked: No (prompt is clear, proceeds immediately without skill invocation)

For comprehensive examples showing various prompt types and transformations, see references/examples.md.

Key Principles

  1. Assume Vagueness: Skill is only invoked for vague prompts (evaluation done by hook)
  2. Research First: Always gather context before formulating questions
  3. Ground Questions: Use research findings, not assumptions or base knowledge
  4. Be Specific: Provide concrete options from actual codebase/context
  5. Stay Focused: Max 1-6 questions, each addressing one decision point
  6. Systematic Approach: Follow 4-phase workflow (Research → Questions → Clarify → Execute)

Progressive Disclosure

This SKILL.md contains the core workflow and essentials. For deeper guidance:

Load these references only when detailed guidance is needed on specific aspects of prompt improvement.

© severity1, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/prompt-improver of severity1/claude-code-prompt-improver.

  • SKILL.md
  • references/examples.md
  • references/question-patterns.md
  • references/research-strategies.md

Open the folder on GitHubat commit 50aae18

Used in 2 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in severity1/claude-code-prompt-improver, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Prompt Improver next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prompt Improver compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prompt Improver this skillseverity1/claude-code-prompt-improver1.9k2 repos~1.7kAutomated safety check: PassMIT
Harness Geparuvnet/ruflo74k—~826Automated safety check: NotesMIT
AI Research WritingCitrus-bit/Anaxa120—~886Automated safety check: PassMIT
Prompt Engineering Patternsynulihao/AgentSkillOS61715 repos~1.7kAutomated safety check: PassNone
Patch CreationPiebald-AI/tweakcc2.5k—~1.6kAutomated safety check: PassMIT
LLM Application DevMoizIbnYousaf/ai-agent-skills1.1k2 repos~1.3kAutomated safety check: PassMIT

Similar skills

  • Harness Gepa

    ruvnet/ruflo

    Inspect and audit GEPA genomes via the @metaharness/darwin/gepa library entry (darwin 0.8.0) — load/validate a genome (default is the shipped cand-6 promotion), render the system prompt a genome…

    74k GitHub stars~826 tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • AI Research Writing

    Citrus-bit/Anaxa

    A skill your agent uses when the user wants academic writing prompts, paper polishing workflows, translation/rewrite guidance, reviewer-style paper critique, experiment write-up help, title/caption…

    120 GitHub stars~886 tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Prompt Engineering Patterns

    ynulihao/AgentSkillOS

    Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production.

    617 GitHub starsUsed in 15 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Patch Creation

    Piebald-AI/tweakcc

    Create and register new patches for tweakcc. An agent skill from Piebald-AI/tweakcc.

    2.5k GitHub stars~1.6k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • LLM Application Dev

    MoizIbnYousaf/ai-agent-skills

    Building applications with Large Language Models - prompt engineering, RAG patterns, and LLM integration.

    1.1k GitHub starsUsed in 2 repos~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Senior Prompt Engineer

    maslennikov-ig/claude-code-orchestrator-kit

    Provides reference guides and Python scripts for prompt optimization, RAG evaluation, and agent orchestration when building or tuning LLM systems.

    260 GitHub starsUsed in 4 repos~1.4k tokens
    AI & LLM EngineeringAuto-check passed

Questions about Prompt Improver

What does Prompt Improver do?

This skill enriches vague prompts with targeted research and clarification before execution. Prompt Improver is an agent skill from severity1/claude-code-prompt-improver. This skill enriches vague prompts with targeted research and clarification before execution.

When should I use Prompt Improver?

Prompt Improver fits situations like: tasks that involve Prompt engineering; tasks that involve Hypothesis generation.

How do I install Prompt Improver in Claude Code?

Run `npx skills add severity1/claude-code-prompt-improver --skill prompt-improver -a claude-code`. Or copy the skill folder (skills/prompt-improver in severity1/claude-code-prompt-improver) into .claude/skills/prompt-improver in your project. Claude Code loads it when a task matches its description.

How do I install Prompt Improver in Codex?

Run `npx skills add severity1/claude-code-prompt-improver --skill prompt-improver -a codex`. Or copy the skill folder (skills/prompt-improver in severity1/claude-code-prompt-improver) into .agents/skills/prompt-improver in your project. Codex loads it when a task matches its description.

Can I use Prompt Improver in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add severity1/claude-code-prompt-improver --skill prompt-improver -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prompt-improver, .gemini/skills/prompt-improver, .github/skills/prompt-improver and .opencode/skills/prompt-improver in your project.

What does Prompt Improver need to run?

SKILL.md names no scripts, command-line tools or credentials: Prompt Improver is instructions for the agent only.

Does Prompt Improver access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Prompt Improver safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Prompt Improver use?

Prompt Improver is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Prompt Improver use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.

What are the alternatives to Prompt Improver?

Skills that share tags, products or a category with Prompt Improver: Harness Gepa (ruvnet/ruflo, 74k stars), AI Research Writing (Citrus-bit/Anaxa, 120 stars), Prompt Engineering Patterns (ynulihao/AgentSkillOS, 617 stars) and Patch Creation (Piebald-AI/tweakcc, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prompt Improver?

severity1 (a GitHub user) maintains it in severity1/claude-code-prompt-improver, which has 1,939 GitHub stars. The repository was last updated on October 1, 2026.

Source: severity1/claude-code-prompt-improver on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.