Agent skill · Code Review & Quality

when-optimizing-prompts-use-prompt-optimization-analyzer

Active diagnostic tool for analyzing prompt quality, detecting anti-patterns, identifying token waste, and providing optimization recommendations

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill when-optimizing-prompts-use-prompt-optimization-analyzer-dnyouss --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/ai-llm/when-optimizing-prompts-use-prompt-optimization-analyzer-dnyouss/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Prompt Optimization Analyzer **Purpose:** Analyze prompt quality and provide actionable optimization recommendations to reduce token waste, improve clarity, and enhance effectiveness. ## When to Use This Skill - Before publishing new skills or slash commands - When prompts exceed token budgets - When responses are inconsistent or unclear - During skill maintenance and refinement - When analyzing existing prompt libraries ## Analysis Dimensions ### 1. Token Efficiency Analysis - Redundancy detection (repeated concepts, phrases) - Verbosity measurement (word count vs. information density) - Compression opportunities (equivalent shorter forms) - Example bloat (excessive or redundant examples) ### 2. Anti-Pattern Detection - Vague instructions ("do something good") - Ambiguous terminology (undefined jargon) - Conflicting requirements (contradictory rules) - Missing context (insufficient background) - Over-specification (unnecessary constraints) ### 3. Trigger Issue Analysis - Unclear activation conditions - Overlapping trigger patterns - Missing edge cases - Too broad/narrow scope ### 4. Structural Optimization - Information architecture (logical flow) - Section organization (groupin

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Analysis Dimensions
  3. 1. Token Efficiency Analysis
  4. 2. Anti-Pattern Detection
  5. 3. Trigger Issue Analysis
  6. 4. Structural Optimization
  7. Execution Process
  8. Phase 1: Token Waste Detection
  9. Phase 2: Anti-Pattern Detection
  10. Phase 3: Trigger Analysis
  11. Phase 4: Optimization Recommendations
  12. Phase 5: Before/After Comparison
  13. Concrete Example: Real Analysis
  14. Input Prompt (Fragment)
Ships with 1 file
  • metadata.json
Commands it runs
Analyze prompt for redundancy
npx claude-flow@alpha hooks pre-task --description "Analyzing prompt for token waste"
Store original metrics
npx claude-flow@alpha memory store --key "optimization/original-tokens" --value "{
Spawn analyzer agent
Agent instructions:
npx claude-flow@alpha memory store --key "optimization/recommendations" --value "{
npx claude-flow@alpha hooks pre-task --description "Optimizing new skill prompt"
Agent performs full analysis as documented above
npx claude-flow@alpha memory retrieve --key "optimization/recommendations"
More from claude-skill-registry
All skills →
About this skill
What does the when-optimizing-prompts-use-prompt-optimization-analyzer skill do?

Active diagnostic tool for analyzing prompt quality, detecting anti-patterns, identifying token waste, and providing optimization recommendations

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill when-optimizing-prompts-use-prompt-optimization-analyzer-dnyouss --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.

Keep going