Skip to content

feat: add /setup-permissions command and userConfig (#40)#78

Merged
gringolito merged 1 commit into
masterfrom
feat/setup-permissions-command-40
May 25, 2026
Merged

feat: add /setup-permissions command and userConfig (#40)#78
gringolito merged 1 commit into
masterfrom
feat/setup-permissions-command-40

Conversation

@gringolito
Copy link
Copy Markdown
Owner

Summary

  • Adds userConfig.permission_mode field to plugin.json — Claude Code prompts for yolo/safe/off at install time
  • Adds commands/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)
  • Collapses README's 70-line "Configure Claude Code permissions" section into a one-paragraph pointer to /setup-permissions; original JSON blocks preserved in a <details> manual fallback

Acceptance Criteria coverage

  • plugin.json declares userConfig.permission_mode with values yolo/safe/off and default: "off"
  • commands/setup-permissions.md exists, follows standard command spec style ((MANDATORY)/(STRICT) flags, Rules & Constraints, Output Expectations)
  • When mode is off or unset, /setup-permissions prints a one-line note and exits without writing
  • When mode is yolo or safe, command prompts for target file (3 options), writes matching allowlist block idempotently
  • Re-running with same mode and target is a silent no-op (idempotent)
  • Optional argument /setup-permissions <mode> overrides userConfig for that invocation only
  • README's "Authentication & Permissions" section collapsed: JSON blocks in <details> fallback, primary path is /setup-permissions

Notes

  • setup-permissions intentionally omits the .claude/backlog-project.json preflight — it is a first-time setup utility that runs before /initialize-backlog
  • TODO.md and an unrelated pre-existing change to execute-backlog-item.md are NOT included in this PR

Closes #40

🤖 Generated with Claude Code

…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
@gringolito gringolito self-assigned this May 25, 2026
@gringolito gringolito merged commit aa11eb9 into master May 25, 2026
1 check passed
@gringolito gringolito deleted the feat/setup-permissions-command-40 branch May 25, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add /setup-permissions command and userConfig to streamline first-run permission setup

1 participant