/craft-skills:llm-reviewfrom craft-skills
Reference for local-LLM scripts that run bash commands inline. Covers availability check, model loading, script execution, and unloading lifecycle.
Ships in craft-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Full lifecycle wrapper for local LLM operations. Other skills run LLM bash commands directly in the main conversation — no dedicated agents.
Calling skills run the bash commands directly using the Bash tool. The typical pattern:
CRAFT_SCRIPTS=$(find ...) && curl -s --max-time 2 http://127.0.0.1:1234 ... && echo "LLM_AVAILABLE:$CRAFT_SCRIPTS" || echo "LLM_UNAVAILABLE"bash "$CRAFT_SCRIPTS/llm-agent.sh" "<task>" <working-dir> (with run_in_background: true)bash "$CRAFT_SCRIPTS/llm-unload.sh"Each calling skill has the exact commands inline. This skill serves as the detailed reference.
Task types:
explore "<task>" <working-directory> — Autonomous investigation (LLM reads files itself, saves the most tokens)review <file> "<focus>" — Single-file review (focus positional)review <file1> <file2> ... --focus "<focus>" — Multi-file review (use --analyze "<task>" <files...> for task-framed analysis; absorbs the old analyze)The user input is: $ARGUMENTS
/llm-review src/domain/auth/feature/LoginPage.tsx "security"The scripts directory is provided at session start (bootstrap context) as craft-skills scripts directory: <path>. Use that path if available. Otherwise fall back to:
CRAFT_SCRIPTS=$(find ~/.claude/plugins -name "llm-agent.sh" -path "*/craft-skills/*" -exec dirname {} \; 2>/dev/null | head -1)
If neither is available, return: "LLM scripts not found — craft-skills plugin may not be installed."
curl -s --max-time 2 ${LLM_URL:-http://127.0.0.1:1234} > /dev/null 2>&1 && echo "LLM_AVAILABLE" || echo "LLM_UNAVAILABLE"
If LLM_UNAVAILABLE, return: "LLM_UNAVAILABLE: LM Studio server not running."
Note: Scripts auto-detect and fix context length (reload with 64K if loaded with less). No manual check needed.
Choose the script based on task type:
review — file content(s) passed to LLM with thinking mode:
# single file (focus positional)
bash "$CRAFT_SCRIPTS/llm-review.sh" <file-path> "<focus>"
# multiple files (focus as a flag; --analyze "<task>" <files> for task-framed analysis)
bash "$CRAFT_SCRIPTS/llm-review.sh" <file1> <file2> ... --focus "<focus>"
explore — autonomous agent with file access tools (saves the most tokens):
bash "$CRAFT_SCRIPTS/llm-agent.sh" "<task description>" <working-directory>
If the script returns LLM_ERROR or exits non-zero, report the error — do not retry.
If the script returns LLM_THINKING_OVERFLOW, report: "Model used all tokens on reasoning. File may be too large for review mode — try explore mode instead."
Before returning findings, filter out known false positives:
bash "$CRAFT_SCRIPTS/llm-unload.sh"
Skip unloading if the caller passes Keep loaded: true — this means another LLM step is expected soon.
Return the triaged findings to the caller. Be concise — the caller will triage further against their conversation context.
| Variable | Default | Description |
|---|---|---|
LLM_URL | http://127.0.0.1:1234 | LM Studio server URL |
LLM_MODEL | qwen3.6-35b-a3b | Model identifier |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/aesthetic-directionGenerate or verify the project's one-time AESTHETIC_DIRECTION.md — a design-language contract used by ux-brief and design-review. Invoked automatically by architect/craft when UI work is planned and .claude/aesthetic-direction.md does not yet exist. Auto-generates without blocking; user can refine the file later./architectUse when the user needs to plan and architect a new feature before implementation begins. This includes analyzing requirements, asking clarifying questions, and creating a detailed implementation plan aligned with the project's architecture. Invoke BEFORE any coding work starts./bootstrapLoaded at session start. Establishes awareness of craft-skills so the assistant invokes relevant skills before acting. Not invoked directly.npx claudepluginhub alexiolan/craft-skills --plugin craft-skillsOther plugins' skills for the same job