/restruct:setup-restructfrom restruct
First-time setup for restruct. Runs rule generation (CLAUDE.md), verify wiring, permission defaults, and — if the feature flag is on — prompt refinement setup.
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 is the master setup flow for restruct. It orchestrates per-feature sub-skills
so you can configure the plugin end-to-end in one pass. Each sub-skill is also
directly invokable (e.g. /restruct:setup-verify-restruct) so you can re-run a single phase later.
Execute the steps in order. At each step, invoke the named sub-skill and wait for it to complete before moving on. Report progress briefly between steps.
Invoke the setup-rules-restruct skill. It generates or audits the project's CLAUDE.md file.
If the user declines or CLAUDE.md already exists and they are happy with it, continue.
Invoke the setup-verify-restruct skill. It discovers lint/typecheck/test/build commands
and writes .restruct/verify.yaml so Claude Code automatically runs them on task completion.
Invoke the setup-permissions-restruct skill. It writes an initial .restruct/permissions.yaml
with safe defaults for the detected ecosystem.
Check whether the refinement feature is enabled:
${CLAUDE_PLUGIN_ROOT}/bin/restruct config get features.refinement 2>/dev/null
If the value is true: invoke the setup-refine-restruct skill to install Ollama, pull a model, and enable refinement.
If the value is not true: print the following and skip to the summary:
"Prompt refinement is feature-flagged off in this release. Skipping Ollama / model setup. To opt in, set
features.refinement: truein~/.config/restruct/config.yamland run/restruct:setup-refine-restruct."
Print a summary of what was configured:
.restruct/verify.yaml checks (count and names).restruct/permissions.yaml status (created / skipped)Point the user at the plugin README (plugin/README.md in the repo, or the installed
plugin directory) for further configuration options.
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