/restruct:refine-restructfrom restruct
Manually refine a prompt through the local LLM meta-prompt pipeline. Transforms a casual developer request into a structured, rules-aware prompt using a local Ollama model. Only works 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 transforms a casual developer request into a structured, rules-aware prompt using a local Ollama model. It reads project rules from agents.md/CLAUDE.md, gathers git context, and produces XML-structured output with objective, constraints, workflow, uncertainty protocol, and anti-patterns.
The binary is bundled in this plugin — always use the full path:
${CLAUDE_PLUGIN_ROOT}/bin/restruct refine
Usage:
echo '{"prompt":"your prompt here"}' | ${CLAUDE_PLUGIN_ROOT}/bin/restruct refine to refine a prompt--dry-run to preview the refined prompt to stderr without replacingThe refinement pipeline runs entirely locally — no data leaves your machine.
What SKILL.md sets; muted values are Claude Code's defaults
restruct@thejustinwalsh is listed by thejustinwalsh/claude-plugins — review the source before installing
npx claudepluginhub thejustinwalsh/claude-plugins --plugin restruct10 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