From contextstellar
Score a prompt for context engineering quality. Use when the user asks to score, analyze, or optimize a prompt, or when reviewing prompt quality before sending to an LLM.
How this skill is triggered — by the user, by Claude, or both
Slash command
/contextstellar:scoreThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Score the provided prompt text for context engineering quality using the ContextStellar scoring API.
Score the provided prompt text for context engineering quality using the ContextStellar scoring API.
Take the prompt text from $ARGUMENTS. If no arguments provided, ask the user to paste or describe the prompt they want scored.
Call the ContextStellar hooks endpoint to score the prompt:
curl -s -X POST "${CONTEXTSTELLAR_BASE_URL:-https://contextstellar.com}/api/v1/hooks/claude-code" \
-H "Authorization: ${CONTEXTSTELLAR_API_KEY}" \
-H "Content-Type: application/json" \
-d "{
\"sessionId\": \"manual-score-$(date +%s)\",
\"type\": \"PreToolUse\",
\"toolName\": \"ManualScore\",
\"toolInput\": { \"content\": $(echo "$PROMPT_TEXT" | jq -Rs .) }
}"
Present the results clearly:
If the score is below B (< 70), proactively suggest specific improvements the user can make.
| Dimension | What It Measures |
|---|---|
| Token Utilization (25%) | Waste: politeness, filler, intensifiers, redundancy |
| Structural Clarity (23%) | XML tags, lists, headers, code blocks, imperative keywords |
| Specificity (20%) | Numbers, format keywords, role assignment, examples, constraints |
| Content Density (17%) | Lexical diversity, n-gram repetition |
| Cache-Friendliness (15%) | Timestamps, UUIDs, date refs, volatile data positioning |
npx claudepluginhub sunnypatneedi/claude-code-contextstellarAnalyzes 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 by analyzing ambiguity, information integration, enforcement, and traceability. Useful for refining prompts for AI agents.
Evaluates prompt quality across clarity, specificity, structure, and completeness, then generates optimized versions using 58 prompting techniques like CoT, few-shot, and role-play.