feat: add /setup-permissions command and userConfig (#40)#78
Merged
Conversation
…st-run permission setup Collapses the 70-line manual 'Configure Claude Code permissions' README section into a single /setup-permissions command that writes the allowlist idempotently into the user's chosen settings file. plugin.json gains a userConfig block so Claude Code can prompt for the mode at install time. Refs #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
userConfig.permission_modefield toplugin.json— Claude Code prompts foryolo/safe/offat install timecommands/setup-permissions.md— on-demand command that writes the matching allowlist block idempotently into the user's chosen settings file (per-project gitignored, per-project shared, or user-global)/setup-permissions; original JSON blocks preserved in a<details>manual fallbackAcceptance Criteria coverage
plugin.jsondeclaresuserConfig.permission_modewith valuesyolo/safe/offanddefault: "off"commands/setup-permissions.mdexists, follows standard command spec style ((MANDATORY)/(STRICT)flags,Rules & Constraints,Output Expectations)offor unset,/setup-permissionsprints a one-line note and exits without writingyoloorsafe, command prompts for target file (3 options), writes matching allowlist block idempotently/setup-permissions <mode>overrides userConfig for that invocation only<details>fallback, primary path is/setup-permissionsNotes
setup-permissionsintentionally omits the.claude/backlog-project.jsonpreflight — it is a first-time setup utility that runs before/initialize-backlogTODO.mdand an unrelated pre-existing change toexecute-backlog-item.mdare NOT included in this PRCloses #40
🤖 Generated with Claude Code