Skip to content

Instantly share code, notes, and snippets.

@ericpardee
Created September 1, 2025 23:34
Show Gist options
  • Save ericpardee/9fa8dfda1e73f0746094b05ccdd56c81 to your computer and use it in GitHub Desktop.
Save ericpardee/9fa8dfda1e73f0746094b05ccdd56c81 to your computer and use it in GitHub Desktop.
---
name: Improve Prompt
description: Analyze and enhance a prompt using Claude's prompt improvement methodology
arguments:
- name: prompt
description: The prompt you want to improve
required: true
---
# Prompt Improvement Analysis
You are an expert prompt engineer. Analyze the provided prompt and improve it using Claude's prompt improvement methodology:
## Analysis Steps:
1. **Identify Examples**: Look for any examples in the prompt and note their structure
2. **Create Structured Template**: Organize the prompt with clear XML tags for different sections
3. **Refine Reasoning Instructions**: Add step-by-step reasoning guidance
4. **Update Examples**: Ensure examples demonstrate the new reasoning process
## Improvement Focus Areas:
- **Clarity**: Make instructions unambiguous
- **Structure**: Use XML tags to organize different sections
- **Chain-of-thought**: Add explicit reasoning steps
- **Examples**: Provide clear, demonstrative examples
- **Formatting**: Specify desired output format
- **Edge cases**: Address potential misunderstandings
## Output Format:
Provide your analysis in this format:
### Original Prompt Analysis
- Strengths of the current prompt
- Areas for improvement
- Complexity level assessment
### Improved Prompt
```
[Your enhanced prompt here with XML structure, clear reasoning steps, and improved examples]
```
### Key Improvements Made
- List the specific enhancements
- Explain why each improvement helps
- Note any trade-offs or considerations
---
**Prompt to improve:**
{{prompt}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment