Analyze existing prompt and suggest improvements using the Seven Levels framework
Analyzes prompt files using the Seven Levels framework to identify missing sections and suggest structural improvements. Use this to evaluate and upgrade prompts for better clarity and effectiveness.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install google-ecosystem@melodic-softwareprompt-file-pathAnalyze existing prompt and suggest improvements.
$1: Path to prompt fileYou are analyzing an existing prompt to classify it and suggest improvements.
If no $1 provided, STOP and ask user for prompt file path.
Read the prompt file at $1 completely.
Check for presence of:
Based on sections and patterns:
| Indicators | Level |
|---|---|
| Simple prompt, no sections | 1 |
| Has Workflow section | 2+ |
| Has conditionals/loops | 3+ |
| Delegates to agents | 4+ |
| Accepts prompt as input | 5+ |
| Has Template section | 6+ |
| Has Expertise section | 7 |
Check:
Suggest:
## Prompt Analysis
**File:** [path]
**Current Level:** [1-7] ([name])
### Sections Found
- [x] Section 1
- [ ] Section 2 (missing)
...
### Quality Score
**Score:** [X/10]
| Criteria | Status |
| --- | --- |
| Variables naming | [Pass/Fail] |
| Workflow structure | [Pass/Fail] |
| STOP conditions | [Pass/Fail] |
| Frontmatter | [Pass/Fail] |
| Purpose clarity | [Pass/Fail] |
### Improvements Suggested
**High Priority:**
1. [improvement 1]
2. [improvement 2]
**Medium Priority:**
1. [improvement 3]
### Level Upgrade Opportunity
Current: Level [N]
Potential: Level [M] if [condition]
### Refactored Version (if requested)
[Improved prompt structure]