prompt-optimization-analyzer
БесплатноБез исполняемых скриптовНе проверенActive diagnostic tool for analyzing skill prompts to identify token waste, anti-patterns, trigger issues, and optimization opportunities. Use when reviewing…
Об этом скилле
Prompt Optimization Analyzer
When to Use This Skill
Always use when:
- User asks to "review", "analyze", "optimize", or "improve" a skill prompt
- User says a skill "isn't triggering" or "isn't working as expected"
- User wants to "reduce token usage" in a skill
- User is "preparing a skill for publication" or sharing
- User asks "why isn't my skill being called?"
- User wants to "compare" two skill prompt versions
Consider using when:
- User shares a skill file for any reason (offer to analyze)
- User mentions a skill is "using too many tokens"
- User describes confusing or inconsistent skill behavior
Analysis Framework
Run each skill prompt through this comprehensive diagnostic checklist. Report findings in order of severity (Critical → High → Medium → Low).
1. Trigger Pattern Analysis
Critical Issues:
- ❌ Missing or extremely vague description field
- ❌ Description doesn't match actual skill capabilities
- ❌ No clear trigger patterns identifiable from description
- ❌ Trigger patterns overlap heavily with other common skills
High Priority:
- ⚠️ Description is too generic ("helps with tasks", "assists users")
- ⚠️ Trigger keywords buried in long description
- ⚠️ Missing key verbs or nouns that users would naturally use
- ⚠️ Ambiguous scope (could apply to too many or too few situations)
Optimization Opportunities:
- 💡 Could add explicit trigger examples to description
- 💡 Could make description more action-oriented
- 💡 Could add domain-specific terminology
- 💡 Could clarify when NOT to use skill
Good Patterns:
- ✅ Description starts with clear trigger context
- ✅ Includes specific verbs that map to user intent
- ✅ Provides clear scope boundaries
- ✅ Uses "Use when..." or "This skill should be used when..." patterns
2. Token Efficiency Analysis
Token Waste Patterns:
Redundancy:
- 🔴 Repeating the same concept in multiple ways without adding clarity
- 🔴 Restating information already in the description
- 🔴 Duplicate examples that teach the same pattern
- 🔴 Verbose explanations where concise language would work
Example - Before (wasteful):
This skill helps you create documents. It's useful for document creation.
When you need to make a document, this skill can help. Documents that can
be created include reports, letters, and memos.
Example - After (efficient):
Creates professional documents including reports, letters, and memos.
Over-Politeness:
- 🔴 Excessive apologetic language ("please", "kindly", "if you don't mind")
- 🔴 Unnecessary hedging ("might", "perhaps", "possibly") where direct instruction works
- 🔴 Filler phrases ("it should be noted that", "it's important to mention")
Example - Before:
You might want to perhaps consider possibly using this approach if you think it could help.
Example - After:
Use this approach when [specific condition].
Bloated Structure:
- 🔴 Excessive nested XML tags when flat structure would work
- 🔴 Long prose explanations where bullet points are clearer
- 🔴 Including "meta" instructions about the skill itself (usually unnecessary)
- 🔴 Detailed explanations of concepts Claude already knows
Over-Specified Formatting:
- 🔴 Dictating exact phrasing for every possible response
- 🔴 Template sentences that reduce flexibility
- 🔴 Formatting rules that don't materially impact quality
Efficiency Checklist:
- Calculate estimated token count (rough: 1 token ≈ 4 characters)
- Identify sections that could be condensed by 30%+
- Flag any paragraph longer than 100 words for review
- Look for opportunities to replace prose with structured format
3. Anti-Pattern Detection
Reference the prompting-pattern-library skill for detailed anti-patterns. Key failures to check:
Ambiguity Failures:
- ❌ Unclear success criteria ("make it better", "improve quality")
- ❌ Vague output format requirements
- ❌ Ambiguous scope ("explain X" without audience/depth specification)
- ❌ Undefined technical terms or jargon
Conflicting Instructions:
- ❌ "Be concise but comprehensive"
- ❌ "Be creative but follow strict rules"
- ❌ "Be formal but conversational"
- ❌ Multiple competing priorities without clear hierarchy
Implicit Assumptions:
- ❌ Assuming Claude knows context not provided in skill
- ❌ Assuming knowledge beyond training cutoff
- ❌ Assuming familiarity with domain-specific processes
- ❌ Assuming Claude can access external state/memory
Over-Constraint:
- ❌ So many rules that quality suffers (rule count > 20 is warning sign)
- ❌ Micro-managing phrasing instead of outcomes
- ❌ Restricting Claude's reasoning ability unnecessarily
- ❌ Specifying implementation details instead of desired results
Under-Specification:
- ❌ No examples for complex or novel tasks
- ❌ Missing error handling guidance
- ❌ No quality criteria defined
- ❌ Unclear edge case handling
4. Clarity and Structure Review
Structural Issues:
- ⚠️
Установить prompt-optimization-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prompt-optimization-analyzer?
Active diagnostic tool for analyzing skill prompts to identify token waste, anti-patterns, trigger issues, and optimization opportunities. Use when reviewing skill prompts, debugging why skills aren't triggering, optimizing token usage, or preparing skills for publication. Provides specific, actionable suggestions with examples.
Как установить скилл prompt-optimization-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prompt-optimization-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic