Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By thejustinwalshv0.2.1In 1 marketplace
Meta-prompt refinement via local LLM — transforms casual prompts into structured, rules-aware agent instructions
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
A Claude Code plugin that adds verification, tool permissions, rule bootstrapping, CLAUDE.md generation, and — optionally — local-LLM prompt refinement.
Prompt refinement is currently feature-flagged off. All other features are on by default and work without Ollama or any network calls.
| Feature | Default | What it does |
|---|---|---|
| Verification | On | Runs lint/test/build/typecheck after Claude completes a task. Config: .restruct/verify.yaml. Hooks: TaskCompleted, Stop. |
| Tool permissions | On | Intercepts PreToolUse to auto-approve safe commands and log decisions. Config: .restruct/permissions.yaml. |
| Rule bootstrapping | On | Parses CLAUDE.md / agents.md on SessionStart and FileChanged into a deep-context map used by refinement (and available for inspection). |
| CLAUDE.md generation | On-demand | /restruct:init-restruct generates a minimal, research-backed CLAUDE.md for your project. |
| Snapshots | On | Takes a file snapshot on task creation so verification has a baseline to diff against. |
| Prompt refinement | Off (feature-flagged) | Transforms casual prompts into structured, rules-aware instructions via a local Ollama model before Claude sees them. Not ready for external rollout yet — opt in via features.refinement: true. |
darwin-arm64)darwin-x86_64)linux-x86_64)No other runtime dependencies — the restruct binary is pure Go with no CGO.
Add the marketplace in Claude Code, then install the plugin:
/plugin marketplace add thejustinwalsh/claude-plugins
/plugin install restruct@thejustinwalsh
Or install from a local path while developing:
/plugin marketplace add /path/to/claude-restruct-plugin/plugin
/plugin install restruct
Verify the binary is reachable:
${CLAUDE_PLUGIN_ROOT}/bin/restruct doctor
Run the master setup flow in any project where you've installed the plugin:
/restruct:setup-restruct
This walks through four phases:
CLAUDE.md.restruct/verify.yaml.restruct/permissions.yaml with safe defaultsfeatures.refinement: true is setEach phase is also invokable standalone so you can re-run one later:
/restruct:setup-rules-restruct — regenerate or audit CLAUDE.md/restruct:setup-verify-restruct — rediscover verify commands/restruct:setup-permissions-restruct — refresh the permit config/restruct:setup-refine-restruct — install Ollama and enable refinement (feature-flagged)Restruct stores config in ~/.config/restruct/config.yaml. Use the CLI to get/set values:
${CLAUDE_PLUGIN_ROOT}/bin/restruct config list
${CLAUDE_PLUGIN_ROOT}/bin/restruct config get features.refinement
${CLAUDE_PLUGIN_ROOT}/bin/restruct config set features.refinement true
Notable keys:
| Key | Default | Purpose |
|---|---|---|
features.refinement | false | Master feature flag for prompt refinement. |
ollama.url | http://localhost:11434 | Ollama API URL (used when refinement is enabled). |
ollama.model | qwen2.5-coder:14b | Model used for prompt refinement. |
ollama.keep_alive | 60m | How long Ollama keeps the model resident after the last request. |
cache.enabled | true | Cache refined prompts for identical inputs. |
server.port | 8377 | Port the restruct dashboard binds to (if you run it). |
Prompt refinement is off by default because it requires Ollama and a ~9 GB model download, and because the pipeline is still being tuned for external rollout. To opt in:
Flip the feature flag:
${CLAUDE_PLUGIN_ROOT}/bin/restruct config set features.refinement true
Run the refinement setup skill:
/restruct:setup-refine-restruct
This installs Ollama (via Homebrew on macOS or the official installer on Linux),
pulls a Qwen model scaled to your RAM, warms it up, and verifies the pipeline with
restruct doctor.
Optionally toggle refinement on/off at runtime without flipping the feature flag:
${CLAUDE_PLUGIN_ROOT}/bin/restruct disable # pass prompts through unchanged
${CLAUDE_PLUGIN_ROOT}/bin/restruct enable # re-enable
This is useful when you want to keep the feature flag on but temporarily bypass refinement for a session.
Run the doctor to see system readiness:
${CLAUDE_PLUGIN_ROOT}/bin/restruct doctor
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
restruct@thejustinwalsh is listed by thejustinwalsh/claude-plugins — review the source before installing
npx claudepluginhub thejustinwalsh/claude-plugins --plugin restruct