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
- AI Surface — Find and govern AI attack surfaces in application code, at PR time and inside your AI coding tool (MCP server 131 ★
- Langchain Langgraph Tutorial — Comprehensive tutorials for LangChain, LangGraph, and LangSmith using Groq LLM 108 ★
- Claude Prompt — Answer a few sharp, skippable questions about what you're building — and get back a clean, complete prompt rea 67 ★
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
Freetoken
🆓 Free AI tokens by V Groups — pool every free LLM API (Gemini, Groq, OpenRouter, NVIDIA, Cohere, GitHub Mode
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.
Claude Code Secret Guard
Claude Code mod that keeps API keys, tokens and passwords out of the model's context: gitleaks scans every too
Local Secure Prompt Agent
Browser extension that redacts PII (emails, phone numbers, Aadhaar/PAN, API keys, names, locations) from promp
Freeroute
Get up to 50M+ or virtually unlimited free AI tokens daily! Universal OpenAI gateway that pools free-tier mode
Related Agents
Continuity Supervisor
Cinema Studio continuity supervisor and QA scorer. Keeps the continuity ledger, shot ID tracking, the realism
Prompt Engineer Agent
Specialist in crafting, testing, and systematically optimizing prompts for LLMs — turning vague instructions i
Engineering Prompt Engineer
Specialist in crafting, testing, and systematically optimizing prompts for LLMs — turning vague instructions i