enhancing-prompts
Analyze prompt quality, classify task type, and enhance with optimized templates while preserving original intent. Provides transparent feedback showing what was enhanced and why.
npx skills add majiayu000/claude-skill-registry --skill enhancing-prompts --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Enhancing Prompts <objective> Analyze prompt quality, classify task type, and enhance with optimized templates while preserving original intent. Provides transparent feedback showing what was enhanced and why. </objective> <inputs> - `prompt`: The user's original prompt to analyze and enhance - `--analyze-only`: (optional) Show analysis without enhancement - `--task-type <type>`: (optional) Force a specific task type </inputs> <workflow> ## Phase 1: Analysis Analyze the prompt for components using the PTCF framework (Persona + Task + Context + Format). ### Component Detection | Component | Patterns | Weight | |-----------|----------|--------| | **Persona** | `^(act as\|you are\|as a\|pretend\|imagine you're)` | 2 | | **Task** | Action verbs: `(create\|review\|analyze\|fix\|summarize\|write\|debug\|refactor\|optimize\|draft\|investigate\|compare)` | 3 (required) | | **Context** | `@\w+`, file paths (`\.ts\|\.js\|\.py\|\.md`), "given that", "based on", "from the", "in the" | 3 | | **Format** | `(as bullets\|in JSON\|formatted as\|limit to\|with examples\|step by step\|list\|table)` | 2 | ### Quality Score Calculation ``` score = 0 if has_task_verb: score += 3 if has_context: score
- Phase 1: Analysis
- Component Detection
- Quality Score Calculation
- Gap Identification
- Phase 2: Classification
- Classification Rules (priority order)
- Classification Algorithm
- Phase 3: Enhancement
- Template Loading
- Merge Algorithm
- Phase 4: Output
- Output Structure
- Status Icons
- Feedback-Driven Refinement Loop
What does the enhancing-prompts skill do?
Analyze prompt quality, classify task type, and enhance with optimized templates while preserving original intent. Provides transparent feedback showing what was enhanced and why.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill enhancing-prompts --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
