smithery.ai

prompt-enhancer

Enhance and refine prompts for AI coding agents using Chain-of-Thought reasoning. Use when user asks to improve, optimize, rewrite, or enhance a prompt. Transforms vague requests into structured, high-context instructions for Codex, Claude Code, or Gemini CLI.

First seen Mar 16, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code codex gemini

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,772 B
  • docs SUMMARY.md 283 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 32 installs

SKILL.md

Prompt Enhancer Skill

Transforms vague or simple prompts into structured, high-context instructions optimized for AI coding agents.

When to Use

  • User asks to "improve my prompt" or "make this prompt better"
  • User wants to "optimize this instruction for Codex"
  • User needs help writing a better prompt for an AI agent
  • User mentions "prompt engineering" or "rewrite this"

Quick Start

Run the enhance script with the user's prompt:

python3 ~/.codex/skills/prompt-enhancer/scripts/enhance.py "user's raw prompt here"

How It Works

The enhancer applies these principles:

  1. Add Context: What project/tech stack is involved?
  2. Clarify Objective: What exactly should be accomplished?
  3. Chain of Thought: Add step-by-step reasoning instructions
  4. Define Constraints: What are the boundaries and requirements?
  5. Specify Output: What format should the result be in?

Output Format

The enhanced prompt follows this structure:

# Context
[Refined context description]

# Objective
[Precise task definition]

# Step-by-Step Instructions
1. [Step 1]
2. [Step 2]
...

# Constraints
- [Constraint 1]
- [Constraint 2]

Additional Resources

  • For the system prompt template, see [TEMPLATE.md](TEMPLATE.md)

Alternative: Use pe CLI

If you have the pe CLI installed globally:

pe "user's raw prompt here"

Install via: npm install -g prompt-enhancer (or clone repo and npm link)