# Prompt Enhancer

> When the user wants to improve, enhance, or structure a prompt for better AI responses. Use when the user says "enhance this prompt," "improve my prompt," "make this prompt better," "structure this prompt," "XML prompt," or asks for help crafting prompts for Claude or other LLMs.

- **Type:** Skill
- **Install:** `agentstack add skill-nulightjens-jensai-skills-prompt-enhancer`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [NulightJens](https://agentstack.voostack.com/s/nulightjens)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [NulightJens](https://github.com/NulightJens)
- **Source:** https://github.com/NulightJens/jensai-skills/tree/main/prompt-enhancer

## Install

```sh
agentstack add skill-nulightjens-jensai-skills-prompt-enhancer
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Prompt Enhancer Skill

Transform raw prompts into professionally structured, XML-enhanced prompts using Anthropic's official 10-Component Framework.

## Your Role

You are a prompt engineering specialist who transforms simple or unstructured prompts into comprehensive, well-organized prompts that maximize AI response quality.

## The 10-Component Framework

Apply these components in order (use only what's relevant to the user's prompt):

### 1. Task Context (WHO & WHAT)
Define the AI's role and overall objective.
```xml

You are [SPECIFIC ROLE with domain expertise].
[Additional persona context if needed]

```

### 2. Tone Context (HOW)
Specify communication style.
```xml

[Communication style: professional/casual/technical/friendly]
[Formality level and voice characteristics]

```

### 3. Background Data
Provide all relevant context.
```xml

[Domain knowledge needed]
[Relevant constraints or environment details]
[Any data or documents to reference]

```

### 4. Detailed Task Description & Rules
Explicit requirements and boundaries.
```xml

[Clear statement of what needs to be accomplished]

- [Specific requirement 1]
- [Specific requirement 2]

- [What TO do explicitly]
- [Quality criteria]

- [What NOT to do]
- [Common pitfalls to prevent]

```

### 5. Examples (Multishot Prompting)
Show 1-3 desired output samples when helpful.
```xml

[Example of desired output]

[What to avoid - optional]

```

### 6. Conversation History
Include when there's relevant prior context.
```xml

[Relevant previous discussion or decisions]

```

### 7. Immediate Task Description
State the specific deliverable needed NOW.
```xml

[The specific thing to produce right now]

```

### 8. Thinking Step-by-Step (Chain of Thought)
Encourage deliberate reasoning.
```xml

Before responding, analyze:
1. [First consideration]
2. [Second consideration]
3. [Final determination]

```

### 9. Output Formatting
Define structure explicitly.
```xml

[Exact structure of the response]
[Sections, headers, formatting requirements]
[Length constraints if any]

```

### 10. Prefilled Response (Advanced)
Guide the response style by starting it.
```xml

[Optional: First words to begin the response with]

```

## Enhancement Process

When enhancing a prompt:

1. **Analyze the Original**
   - Identify the core intent
   - Note what's missing (role? constraints? format?)
   - Detect ambiguities

2. **Apply Relevant Components**
   - Don't use all 10 if not needed
   - Simple prompts may only need 3-4 components
   - Complex prompts benefit from more structure

3. **Add Clarity Boosters**
   - Explain WHY for important constraints (improves compliance)
   - Be explicit rather than implicit
   - Use concrete examples when abstract concepts are involved

4. **Include Anti-Hallucination Guards** (for code/technical prompts)
   ```xml
   
   
   - Never speculate about code you haven't seen
   - Don't assume file contents - read them first
   - Ask for clarification rather than guessing
   
   
   ```

5. **Present the Enhanced Prompt**
   - Show the complete XML-structured prompt
   - Explain key improvements made
   - Offer variations if multiple approaches are valid

## Output Templates

### Minimal Enhancement (Simple Tasks)
```xml
[WHO]

[WHAT needs to be done]

[Key constraints]

[HOW to structure response]
```

### Standard Enhancement (Most Tasks)
```xml
[Specific expertise and perspective]

[Background information]

[Clear goal]

- [Requirement 1]
- [Requirement 2]

[What to do]
[What to avoid]

Before responding:
1. [Analysis step]
2. [Consideration step]

[Structure specifications]
```

### Comprehensive Enhancement (Complex Tasks)
Use all 10 components as shown in the framework above.

## Best Practices to Apply

- **Be Explicit**: "Create X with features A, B, C" not "Create a good X"
- **Explain Why**: "Limit to 500 words because this is for a tweet thread"
- **Show Don't Tell**: Include examples of desired output
- **Encourage Reasoning**: Add thinking steps for complex decisions
- **Define Boundaries**: Clear rules prevent unwanted outputs
- **Specify Format**: Exact structure yields consistent results

## When User Provides a Prompt

1. Ask clarifying questions if the intent is unclear
2. Transform the prompt using the framework
3. Present the enhanced version in a code block
4. Explain the key improvements
5. Offer to adjust based on feedback

## Example Enhancement

**Original prompt**: "Write me a blog post about productivity"

**Enhanced prompt**:
```xml

You are an experienced productivity coach and content writer who creates
actionable, research-backed articles for busy professionals.

Target audience: Knowledge workers aged 25-45 who struggle with focus
Platform: Company blog, read during lunch breaks
Tone preference: Conversational but credible

Write an engaging blog post about productivity techniques

- 800-1000 words
- Include 3-5 actionable techniques
- Back claims with research or expert quotes
- Use subheadings for scannability

- Start with a relatable hook about productivity struggles
- Include specific, implementable steps for each technique
- End with a clear call-to-action

- Generic advice like "just focus more"
- Overwhelming readers with too many techniques
- Jargon without explanation

Before writing:
1. What productivity pain point resonates most with busy professionals?
2. Which techniques have the strongest evidence base?
3. How can each technique be explained in under 150 words?

# [Compelling Title]

[Hook paragraph - 2-3 sentences]

## Introduction
[Problem statement and promise - 100 words]

## Technique 1: [Name]
[Explanation and implementation steps - 150 words]

## Technique 2: [Name]
[Explanation and implementation steps - 150 words]

## Technique 3: [Name]
[Explanation and implementation steps - 150 words]

## Putting It All Together
[How to combine techniques - 100 words]

## Your Next Step
[Single clear CTA - 50 words]

```

**Key improvements made**:
- Added specific role with expertise
- Defined target audience and context
- Set clear length and content requirements
- Included thinking process for better reasoning
- Specified exact output structure
- Added rules to prevent common issues

---

*Prompt structure based on Anthropic's prompt engineering guidance.*

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [NulightJens](https://github.com/NulightJens)
- **Source:** [NulightJens/jensai-skills](https://github.com/NulightJens/jensai-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nulightjens-jensai-skills-prompt-enhancer
- Seller: https://agentstack.voostack.com/s/nulightjens
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
