when-optimizing-prompts-use-prompt-optimization-analyzer
تحسين التعليمات لتحقيق أقصى كفاءة للرموز
كتابة تعليمات فعالة أمر صعب عندما تكون ميزانيات الرموز محدودة والوضوح مهم. تحلل هذه المهارة تعليماتك لاكتشاف التكرار والتعليمات الغامضة والأنماط السلبية، ثم تقدم توصيات تحسين محددة يمكنها تقليل استخدام الرموز بنسبة 20-50% مع تحسين الوضوح.
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「when-optimizing-prompts-use-prompt-optimization-analyzer」。 Analyze this prompt: You are a code reviewer. Your job is to review code and make sure it's good. You should look at the code and find problems.
預期結果:
Analysis Results:
Token Waste Detected:
- Redundancy score: 45/100
- Issues: Phrase you should appears 4 times, vague terms (good, problems) used without definition
Anti-Patterns Found:
- Vague instruction: make sure it's good (replace with specific criteria)
- Missing context: What types of problems? What review standards?
Recommendations:
- Remove repeated you should, use imperative mood
- Define specific review criteria (logic errors, style compliance, test coverage)
- Structure output format explicitly
Estimated savings: 46% token reduction possible
正在使用「when-optimizing-prompts-use-prompt-optimization-analyzer」。 Optimize this trigger: when working with code stuff
預期結果:
Trigger Analysis:
Issues Detected:
- Vague term: stuff (severity: high)
- Missing explicit condition (no when/if clause structure)
- Too narrow scope (only 4 words)
Recommendations:
- Replace stuff with specific entity: when working with source code files or when analyzing code repositories
- Add specificity: when reviewing pull requests for code quality
- Consider broader applicability to cover edge cases
Improved trigger: when reviewing code for quality issues or optimization opportunities
安全審計
安全This skill is safe for publication. All 87 static findings are false positives. The skill contains only documentation files (markdown) and a process diagram (GraphViz). The 23 high-severity findings for weak cryptographic algorithms are file extension detections (MD in .md files). The 62 medium-severity findings for shell execution are documentation code examples in markdown blocks, not executable code. No actual security risks exist.
品質評分
你能建構什麼
مراجعة المهارات قبل النشر
تحليل تعليمات المهارات الجديدة قبل النشر للتأكد من استيفائها لمعايير الجودة وأهداف كفاءة الرموز. تحديد وإصلاح الأنماط السلبية التي قد تسبب استجابات غير متسقة.
الامتثال لميزانية الرموز
تقليل استخدام رموز التعليمات عند الاقتراب من حدود السياق أو قيود الميزانية. تحديد المحتوى المكرر ودمج الأمثلة لتحقيق تخفيض بنسبة 20-50% في الرموز مع الحفاظ على الوظيفة.
صيانة مكتبة التعليمات
مراجعة وتحسين مكتبات التعليمات الموجودة للاتساق والكفاءة. اكتشاف أنماط التعليمات الغامضة أو التعريفات المفقودة عبر تعليمات متعددة وتوحيد التحسينات.
試試這些提示
Analyze this prompt for optimization opportunities: [paste your prompt text here]
Analyze this prompt with focus on token reduction. Current token count is [X]. Target is [Y]. Identify redundancy and suggest consolidation: [paste prompt]
Review this prompt for anti-patterns including vague instructions, ambiguous terms, and conflicting requirements. Provide specific examples and fixes: [paste prompt]
Perform full optimization analysis on this skill prompt including token efficiency, anti-patterns, trigger clarity, and structural improvements. Provide before/after comparison with savings estimate: [paste prompt]
最佳實務
- قم بتشغيل التحليل قبل نشر مهارات جديدة لاكتشاف الأنماط السلبية مبكراً والتأكد من استيفاء معايير الجودة
- ركز على المشاكل عالية الخطورة أولاً، ثم عالج النتائج متوسطة ومنخفضة الخطورة في التكرارات اللاحقة
- قارن المقاييس قبل وبعد للتحقق من أن التحسينات تحسن الوضوح فعلياً دون فقدان المعلومات الأساسية
避免
- تطبيق جميع التوصيات بشكل أعمى دون فهم السياق أو التحقق من أن التغييرات تحافظ على المعنى المقصود
- المبالغة في التحسين لتقليل الرموز على حساب الوضوح الضروري أو الأمثلة أو تعليمات معالجة الأخطاء
- تجاهل المصطلحات الخاصة بالمجال التي تبدو مطولة ولكنها في الواقع دقيقة وضرورية لحالة الاستخدام