Skip to content

Bug: SKILL.md creation prompts for permission even in bypass mode #36923

Description

@choose27

Description

When running Claude Code with --dangerously-skip-permissions (bypass mode), creating a new skill file (SKILL.md) in ~/.claude/plugins/local/ triggers a permission prompt:

Do you want to create SKILL.md?
1. Yes
2. Yes, and allow Claude to edit its own settings for this session
3. No

This should not prompt in bypass mode. The prompt appears to be a hardcoded check for writes to the .claude/ settings directory that doesn't respect the current permission mode.

Repro

  1. Launch Claude Code with --dangerously-skip-permissions
  2. Ask it to create a skill: mkdir -p ~/.claude/plugins/local/test/skills/test/ && write SKILL.md
  3. Permission prompt appears despite bypass mode

Expected

No prompt. Bypass mode should bypass all permission checks including settings directory writes.

Version

Claude Code v2.1.81

Activity

  1. yurukusa commented on Mar 21, 2026

    @yurukusa

    Same root cause as #35646 and #36887 — v2.1.78 intentionally added prompts for writes to .claude and other protected directories, even with bypassPermissions. An Anthropic team member confirmed a fix is incoming.

  2. github-actions commented on Mar 21, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [BUG] --permission-mode bypassPermissions / --dangerously-skip-permissions not working in print mode (-p) with --resume #36139
    2. --dangerously-skip-permissions does not bypass Edit permission prompts #36192
    3. .claude/skills/ edits prompt for permission despite being documented as exempt (regression in 2.1.79) #36497

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  3. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    has reproHas detailed reproduction steps
    on Mar 24, 2026
  4. github-actions commented on Mar 24, 2026

    @github-actions

    This issue has been automatically closed as a duplicate of #36139.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  5. markshust commented on Mar 25, 2026

    @markshust

    This is not a dupe of #36139 as that is related to print mode

  6. github-actions commented on Apr 1, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  7. locked as resolved and limited conversation to collaborators on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions