/restruct:setup-permissions-restructfrom restruct
Write an initial .restruct/permissions.yaml with safe defaults so the restruct permit hook can auto-approve common tool use without repeated dialogs.
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.
Generate an initial permissions config that auto-approves safe, common tool operations
inside the project root. Pattern analysis of historical decisions is handled separately
by the /restruct:review-permissions-restruct skill — this skill is for first-time seeding.
Use the current working directory as the project root. Confirm with the user if uncertain.
cat .restruct/permissions.yaml 2>/dev/null
If it exists, show the current contents and ask whether to replace, merge, or skip. Default to "skip" if the user doesn't respond — do not clobber existing configs.
Look at the root for signals that shape the defaults:
package.json + lock file → allow pnpm, npm, yarn, node command familiesgo.mod → allow go test, go vet, go build, go runCargo.toml → allow cargo test, cargo check, cargo buildMakefile / justfile → allow make, just invocationsCreate .restruct/permissions.yaml with:
# Auto-approve common safe operations inside the project root.
# Use /restruct:review-permissions-restruct later to expand this from historical decision data.
allowed_paths:
- "." # reads/writes inside the project root
allowed_commands:
# Ecosystem-specific — include lines that match detected tooling, drop the rest.
- "pnpm test"
- "pnpm lint"
- "pnpm build"
- "pnpm exec tsc --noEmit"
- "go test ./..."
- "go vet ./..."
- "go build ./..."
- "cargo test"
- "cargo check"
- "make test"
- "make build"
trusted_urls:
# Add package registries used by the project
- "https://registry.npmjs.org/"
- "https://proxy.golang.org/"
Only include the lines relevant to the ecosystems you actually detected.
Print the written file and suggest they run /restruct:review-permissions-restruct after a few
sessions to expand it based on real usage patterns.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./refine-restructManually 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./review-permissions-restructReview tool permission decisions across sessions and propose auto-approval rules. Analyzes which tools the user consistently approves, then suggests additions to .restruct/permissions.yaml to eliminate repetitive permission dialogs./setup-refine-restructInstall 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.restruct@thejustinwalsh is listed by thejustinwalsh/claude-plugins — review the source before installing
npx claudepluginhub thejustinwalsh/claude-plugins --plugin restruct