Groq Prompt Scorer — AI skill for Claude Code
Claude Code hook that uses Groq free LLM API to catch vague prompts before they waste tokens.
How to install Groq Prompt Scorer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jl-cmd/groq-prompt-scorer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Groq Prompt Scorer does
Claude Code hook that uses Groq free LLM API to catch vague prompts before they waste tokens.
Alternatives in AI
- Prompt Master — A Claude skill that writes the accurate prompts for any AI tool 4.9k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Free GPT4 WEB API — Not just GPT4 690 ★
README
groq-prompt-scorer
A Claude Code hook that uses Groq's free LLM API to catch vague prompts before they waste tokens. Clear prompts pass through instantly. Underspecified prompts get flagged so Claude asks you clarifying questions first.
How it works
You type a prompt
|
Hook fires (UserPromptSubmit)
|
Bypass? (slash commands, short prompts, * prefix)
|-- yes --> pass through silently
|-- no --> send to Groq for classification
|
verdict: "pass" --> silent pass-through
verdict: "guide" --> inject guidance context
|
Claude asks clarifying questions
You refine, Claude executes
The hook uses Groq's `llama-3.3-70b-versatile` as the primary classifier, falling back to `llama-3.1-8b-instant` on rate limits. Both are free tier.
**Fail-open:** If Groq is unreachable, the API key is missing, or anything errors, the hook exits silently and your prompt passes through unchanged. No disruption.
Examples
| Your prompt | Verdict | What happens |
|---|---|---|
fix the TypeError in src/auth.ts line 42 |
pass | Passes through, Claude acts immediately |
refactor getUserData to handle null returns |
pass | Specific target + action, passes through |
add dark mode |
guide | Claude asks: which components? toggle mechanism? color system? |
build me a full stack app |
guide | Claude asks: which stack? what features? starting state? |
it's broken fix everything |
guide | Claude asks: what error? which file? reproduction steps? |
Requirements
- Claude Code v2.0+
- Python 3.10+
- Free Groq API key
Install
1. Install the groq package
pip install groq
2. Copy the hook
Copy `groq-prompt-scorer.py` to your Claude Code hooks directory:
# macOS / Linux
cp groq-prompt-scorer.py ~/.claude/hooks/session/
#
Related Skills
Sharpen Claude Prompt Refiner
A Claude skill that rewrites vague prompts into tight specs before any work starts. Locks the target, kills ha
Promptdiff
Git for prompts. Semantic diff, lint, score & Claude Code hook for LLM prompt files.
Free AI Token
AI money-saver as an Agent Skill 全球AI省钱管家技能 — free AI API tokens, free-tier LLM APIs & cheapest AI memberships
Tokopt Upload
TokOpt — LLM Cost Intelligence Platform. Analyze LLM API logs to identify token waste and deliver actionable c
Aigate
AI Prompt Secret Scanner: local proxy and Claude Code hook that blocks secrets before they reach AI APIs
Claude Code Prompt Optimizer
AI-powered prompt optimization hook for Claude Code. Transforms simple prompts into comprehensive, structured
Related Agents
Prompt Engineer Agent
Specialist in crafting, testing, and systematically optimizing prompts for LLMs — turning vague instructions i
AI Prompt Architect
Designs and versions LLM system prompts for ai-system / agent-product archetypes. Outputs docs/decisions/ADR-{
LLM Specialist
Prompt engineering specialist and LLM expert. Use when crafting prompts, optimizing AI responses, or implement