Analyze prompts for clarity, effectiveness, and optimization opportunities
Analyzes prompts for clarity, effectiveness, and optimization opportunities using the TCRTE framework.
/plugin marketplace add standardbeagle/standardbeagle-tools/plugin install prompt-engineer@standardbeagle-toolsAnalyze a prompt or system prompt for improvement opportunities using state-of-the-art prompt engineering principles from 2026.
First, obtain the prompt to analyze:
Evaluate the prompt structure using the TCRTE Framework (Task, Context, Role, Tone, Examples):
| Component | Present? | Quality (1-5) | Notes |
|---|---|---|---|
| Task | Clear directive of what to do | ||
| Context | Background information and constraints | ||
| Role | Who the model should act as | ||
| Tone | Style and voice guidance | ||
| Examples | Few-shot demonstrations |
Check for common clarity issues:
Claude 4.x models follow instructions precisely. Check for:
Evaluate token efficiency:
Look for opportunities to apply:
Produce a structured analysis report:
## Prompt Analysis Report
### Overall Score: X/10
### Strengths
- [List what the prompt does well]
### Critical Issues
1. **[Issue name]**: [Description and impact]
- **Fix**: [Specific recommendation]
### Optimization Opportunities
1. **[Opportunity]**: [How it would improve results]
### Recommended Rewrite
[If significant changes needed, provide optimized version]
### Quick Wins
- [Small changes with high impact]
### Token Efficiency
- Current estimated tokens: ~X
- Potential reduction: ~Y tokens (Z%)
- Key areas for compression: [List]
Poor Prompt:
Help me write better code
Analysis:
Optimized:
Review this Python function and improve its performance, readability, and error handling.
Focus on:
1. Time complexity optimization
2. PEP 8 style compliance
3. Proper exception handling with specific exception types
4. Clear variable names and docstrings
Return the improved code with inline comments explaining each change.
<code>
[code here]
</code>
Score: 8/10 - Clear task, specific focus areas, defined output format