/restruct:setup-refine-restructfrom restruct
Install Ollama, pull the right model for your hardware, warm it up, and enable the restruct prompt refinement pipeline. Only runs when features.refinement is enabled in config.yaml.
Ships in restruct. 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.
This skill sets up the local LLM that powers restruct's prompt refinement.
It is only relevant when features.refinement: true is set in ~/.config/restruct/config.yaml.
Execute ALL of the following steps immediately using the Bash tool. Do not describe what you're going to do — just do it. Run each command yourself, report results briefly, and move to the next step. Only pause if a command fails and you cannot fix it.
${CLAUDE_PLUGIN_ROOT}/bin/restruct config get features.refinement 2>/dev/null
If the value is not true, stop and tell the user:
"Refinement is feature-flagged off in this release. To enable it, edit
~/.config/restruct/config.yamland setfeatures.refinement: true, then re-run this skill."
Do not proceed with Ollama installation if the flag is off.
Run which ollama or command -v ollama.
If not found, install it:
brew install ollamacurl -fsSL https://ollama.com/install.sh | shCheck if Ollama is running: curl -sf http://localhost:11434/api/version
If not running:
brew services start ollamaollama serve in the backgroundWait 2 seconds, then confirm it responds.
Run sysctl -n hw.memsize (macOS) or grep MemTotal /proc/meminfo (Linux) to get total system RAM.
Select the model based on available memory:
qwen2.5-coder:14b (best quality, ~9GB model, needs ~16GB for inference)qwen2.5-coder:7b (good quality, ~4.5GB model, needs ~8GB for inference)qwen2.5-coder:3b (acceptable quality, ~2GB model)Report the detected RAM and your model choice to the user.
Run ollama pull <selected-model> directly. This downloads the model weights.
It may take several minutes for larger models.
Run ollama run <selected-model> "hello" --keepalive 60m to load the model into GPU/RAM
and keep it resident. This ensures the first real refinement is fast.
Only needed if the model differs from the default (qwen2.5-coder:14b):
${CLAUDE_PLUGIN_ROOT}/bin/restruct config set ollama.model <selected-model>
${CLAUDE_PLUGIN_ROOT}/bin/restruct enable
This removes the runtime disable sentinel if present. (With the feature flag on and sentinel absent, refinement is live.)
Run ${CLAUDE_PLUGIN_ROOT}/bin/restruct doctor to confirm everything is green.
If all_good is true and refinement_feature_enabled is true, tell the user:
"Restruct refinement is ready. Your prompts will be automatically refined via <selected-model>."
If not, report what's still failing and attempt to fix it.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/disable-restructDisable restruct prompt refinement. Prompts pass through to Claude without local LLM preprocessing./enable-restructEnable restruct prompt refinement. Re-enables the local LLM preprocessing of prompts./init-restructGenerate a minimal, research-backed CLAUDE.md for this project. Analyzes the codebase for non-obvious commands and conventions, interviews you for team knowledge, and produces a concise file that stays under 30 rules.Other plugins' skills for the same job
restruct@thejustinwalsh is listed by thejustinwalsh/claude-plugins — review the source before installing
npx claudepluginhub thejustinwalsh/claude-plugins --plugin restruct