From cook-en
Evaluates and improves AI prompt quality by analyzing ambiguity, information integration, enforcement, and traceability. Useful for refining prompts for AI agents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cook-en:check-promptThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A comprehensive collection of best practices for evaluating and improving the quality of prompts for AI Agents. It systematizes knowledge gained from actual prompt improvement processes, covering all important aspects such as ambiguity elimination, information integration, enforcement enhancement, tracking systems, and continuous improvement.
A comprehensive collection of best practices for evaluating and improving the quality of prompts for AI Agents. It systematizes knowledge gained from actual prompt improvement processes, covering all important aspects such as ambiguity elimination, information integration, enforcement enhancement, tracking systems, and continuous improvement.
# Check the quality of a prompt file
cat your-prompt.md
/check-prompt
"Check the quality of this prompt and suggest improvements"
--category <name>: Check only specific category (structure/execution/restrictions/quality/roles/improvement)--score: Calculate quality score only--fix: Automatically suggest fixes for detected issues--deep: Deep analysis mode (focus on ambiguity, information dispersion, and enforcement)# Evaluate overall prompt quality
cat devin/playbooks/code-review.md
/check-prompt
"Evaluate this prompt across 6 categories and suggest improvements"
# Deep analysis mode
/check-prompt --deep
"Focus on checking ambiguity, information dispersion, and lack of enforcement to suggest fundamental improvements"
# Check specific category
/check-prompt --category structure
"Check this prompt from the perspective of structure and clarity"
# Detect and fix ambiguous expressions
/check-prompt --fix
"Detect ambiguous expressions and suggest corrections for clarity"
# ❌ Before Improvement (Ambiguous)
"Comments should be, in principle, written as inline comments at the corresponding change points on GitHub"
# ✅ After Improvement (Clear)
"Comments must be written as inline comments at the corresponding change points on GitHub. Exceptions are only the 3 conditions defined in section 3.3"
# ❌ Before Improvement (Dispersed)
Section 2.1: "Use mandatory 6 sections"
Section 3.5: "📊 Comprehensive evaluation, 📋 Comments..."
Section 4.2: "Prohibition of section deletion"
# ✅ After Improvement (Integrated)
Execution Checklist:
□ 10. Post summary comment (using mandatory 6 sections)
🔴 Mandatory 6 sections: 1) 📊 Comprehensive evaluation 2) 📋 Classification of comments 3) ⚠️ Main concerns 4) ✅ Evaluable points 5) 🎯 Conclusion 6) 🤖 Self-evaluation of AI review quality
❌ Absolutely prohibited: Section deletion, addition, name change
# Strict tracking of execution results
POSTED_COMMENTS=0
FAILED_COMMENTS=0
TOTAL_COMMENTS=0
# Record results of each operation
if [ $? -eq 0 ]; then
echo "✅ Success: $OPERATION" >> /tmp/execution_log.txt
POSTED_COMMENTS=$((POSTED_COMMENTS + 1))
else
echo "❌ Failure: $OPERATION" >> /tmp/execution_log.txt
FAILED_COMMENTS=$((FAILED_COMMENTS + 1))
fi
# Prevent false reporting
if [ $POSTED_COMMENTS -ne $REPORTED_COMMENTS ]; then
echo "🚨 Warning: Mismatch between reported and actual posted comments"
exit 1
fi
Basic score = Σ(category score × weight) / 100
Fatal problem penalties:
- Level 1 problem: -20 points per case
- Level 2 problem: -10 points per case
- Level 3 problem: -5 points per case
Bonus elements:
- Automation support: +5 points
- Learning function implementation: +5 points
- Proven improvement cases: +5 points
Final score = Basic score + Bonus - Penalties
95-100 points: World's highest standard (Recommended as industry standard)
90-94 points: Excellent (Production ready)
80-89 points: Good (Ready for operation with minor improvements)
70-79 points: Average (Needs improvement)
60-69 points: Needs improvement (Requires significant correction)
50-59 points: Needs major correction (Requires fundamental review)
49 points or below: Prohibited from use (Requires complete redesign)
Quality score: 70/100 points
- Ambiguous expressions: 15 detected
- Information dispersion: Important information scattered in 6 locations
- Lack of enforcement: 80% of expressions at recommended level
- Tracking function: No execution result recording
- Error handling: Unclear countermeasures for failures
# 1. Ambiguity elimination (2 days)
- "In principle" → "Exceptions are only the 3 conditions in section 3.3"
- "Recommended" → "Mandatory" (for importance level 2 and above)
- "As appropriate" → Explicit indication of specific judgment criteria
# 2. Information integration (1 day)
- Dispersed mandatory 6-section information → Integrated into execution checklist
- Related prohibited items → Aggregated into one section
- Eliminated circular references → Linear information flow
# 3. Tracking system implementation (1 day)
- Automatic log recording of execution results
- Verification function to prevent false reporting
- Real-time statistics display
# 4. Error handling enhancement (Half a day)
- Complete cataloging of expected error patterns
- Documentation of step-by-step handling processes
- Implementation of automatic recovery functions
Quality score: 90/100 points (+20 points improvement)
- Ambiguous expressions: 0 (completely eliminated)
- Information integration: Important information aggregated into 3 locations
- Enforcement: 95% of expressions at mandatory level
- Tracking function: Fully automated
- Error handling: 90% of problems solved automatically
Actual improvement effects:
- Assessment errors: 85% reduction
- Execution time: 40% reduction
- Error occurrence rate: 70% reduction
- User satisfaction: 95% improvement
# Quality check combined with prompt file
cat your-prompt.md
/check-prompt
"Evaluate the quality of this prompt and suggest improvements"
# Comparison of multiple prompt files
cat prompt-v1.md && echo "---" && cat prompt-v2.md
/check-prompt
"Compare the two versions and analyze improved points and remaining issues"
# Analysis combined with actual error logs
cat execution-errors.log
/check-prompt --deep
"Identify potential prompt issues that may have caused this error"
This checklist is a complete version of knowledge proven in actual prompt improvement projects and continues to evolve.
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-enAnalyzes and enhances AI prompt quality by detecting ambiguity, dispersion, and weak mandatory language. Includes scoring, categories, and deep analysis. Activated by 'verificar prompt' or 'avaliar qualidade do prompt'.
Evaluates and improves AI prompt quality, covering ambiguity elimination, information integration, compliance, and tracking. Use /check-prompt or activate with 'revisar prompt'.
Évalue et améliore la qualité des prompts IA via 6 catégories (structure/exécution/restrictions/qualité/rôles/amélioration). Utile pour vérifier et corriger des prompts.