judge-llm
БесплатноБез исполняемых скриптовНе проверенUltrathink LLM-as-Judge validation of completed work. Uses extended thinking by DEFAULT for thorough evaluation.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
/sw:judge-llm - Ultrathink LLM-as-Judge Validation
ULTRATHINK BY DEFAULT - Validate completed work using extended thinking and the LLM-as-Judge pattern.
Implementation: Opus Model + Timeout Handling
Model: opus for deepest analysis
Timeout: 60 seconds default (configurable with --timeout)
Progress Log: .specweave/logs/judge-llm.log
Implementation in src/core/skills/skill-judge.ts:
- Uses Anthropic SDK with user's ANTHROPIC_API_KEY
- AbortController-based timeout to prevent stuck states
- Progress logging for visibility during evaluation
- Fallback to basic pattern matching if no API key
CRITICAL: Extended Thinking is DEFAULT
This command ALWAYS uses ultrathink (extended thinking) for thorough LLM-as-Judge evaluation:
DEFAULT BEHAVIOR = ULTRATHINK MODE
- Extended thinking enabled
- Deep chain-of-thought reasoning
- Thorough multi-dimensional analysis
- ~60-90 seconds for comprehensive evaluation
- Uses Opus model for maximum quality
Use --quick only if you explicitly need faster (but less thorough) validation.
Purpose
Use when you've completed work and want maximum-quality AI validation:
- Works on any files (not just SpecWeave increments)
- Uses ultrathink extended thinking for deepest analysis
- Returns clear verdict with detailed reasoning
Usage
# DEFAULT: Ultrathink validation (recommended)
/sw:judge-llm src/file.ts
/sw:judge-llm "src/**/*.ts"
# Validate git changes (ultrathink by default)
/sw:judge-llm --staged # Staged changes
/sw:judge-llm --last-commit # Last commit
/sw:judge-llm --diff main # Diff vs branch
# Quick mode (ONLY if you need speed over thoroughness)
/sw:judge-llm src/file.ts --quick
# Timeout control (default: 60s)
/sw:judge-llm src/file.ts --timeout 120000 # 120 seconds
/sw:judge-llm src/file.ts --timeout 30000 # 30 seconds (faster cutoff)
# Additional options
/sw:judge-llm src/file.ts --strict # Fail on any concern
/sw:judge-llm src/file.ts --fix # Include fix suggestions
/sw:judge-llm src/file.ts --export # Export report to markdown
/sw:judge-llm src/file.ts --verbose # Show progress to console
Visibility & Stuck Detection
Progress is always logged to .specweave/logs/judge-llm.log:
[2026-01-19T10:30:00.000Z] [0.0s] [INFO] Starting LLM Judge evaluation for domain: backend
[2026-01-19T10:30:00.001Z] [0.0s] [INFO] Task: Validate authentication implementation...
[2026-01-19T10:30:00.002Z] [0.0s] [INFO] Using model: opus
[2026-01-19T10:30:00.003Z] [0.0s] [INFO] Timeout: 60000ms
[2026-01-19T10:30:00.004Z] [0.0s] [PROGRESS] Sending request to Opus...
[2026-01-19T10:30:45.000Z] [45.0s] [PROGRESS] Response received, parsing...
If evaluation gets stuck:
- Check
.specweave/logs/judge-llm.logfor last progress - Default timeout (60s) will abort if stuck
- Increase timeout with
--timeoutif legitimately slow - Result will show
timedOut: trueif aborted
How It Works
When you invoke /sw:judge-llm, Claude will:
Step 1: Gather Input
Determine what to validate:
- If file paths provided → read those files
- If
--staged→ get staged git changes - If
--last-commit→ get files from last commit - If
--diff <branch>→ get diff against branch - If no args → validate recent work in conversation context
Step 2: ULTRATHINK Analysis (Default)
MANDATORY: Use extended thinking for deep LLM-as-Judge evaluation:
Claude MUST use ultrathink/extended thinking to:
1. **DEEP READ**: Thoroughly understand all code, context, and intent
2. **MULTI-DIMENSIONAL ANALYSIS**: Evaluate across ALL dimensions:
- Correctness: Does it work exactly as intended?
- Completeness: ALL edge cases handled? ALL requirements met?
- Security: ANY vulnerabilities? OWASP Top 10 checked?
- Performance: Algorithmic complexity? Memory usage? Bottlenecks?
- Maintainability: Clean? Clear? Follows conventions?
- Testability: Can it be tested? Are tests adequate?
- Error handling: All failure modes covered?
3. **CRITICAL EVALUATION**: Weigh ALL findings by severity
4. **REASONED VERDICT**: Form verdict based on thorough analysis
Step 3: Return Verdict
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
JUDGE-LLM VERDICT: APPROVED | CONCERNS | REJECTED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Mode: ULTRATHINK (extended thinking)
Confidence: 0.XX
Files Analyzed: N
REASONING:
[Detailed chain-of-thought from extended thinking]
ISSUES (if any):
🔴 CRITICAL: [title]
[description]
📍 [file:line]
💡 [suggestion]
🟡 HIGH: [title]
...
🟢 LOW: [title]
...
VERDICT: [summary sentence]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Verdict Meanings
| Verdict | Meaning | Action |
|---|---|---|
| APPROVED | Work is solid, no significant issues | Safe to proceed |
| CONCERNS | Issues found worth addressing | Review and fix recommended |
| **REJECTE |
Установить judge-llm в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл judge-llm?
Ultrathink LLM-as-Judge validation of completed work. Uses extended thinking by DEFAULT for thorough evaluation.
Как установить скилл judge-llm?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл judge-llm запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic