Write permission for skill .md files keeps prompting despite settings.local.json authorization
Status Open
Reported on v2.1.20
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 9 comments · opened Jan 27, 2026
Environment
- Claude Code version: 2.1.20
- OS: Windows 10
- Terminal: Windows Terminal
- Working directory: ~/.claude
Description
When editing skill-related .md files in the ~/.claude directory, Claude Code repeatedly prompts for write permission even after the permission has been granted in settings.local.json.
Steps to Reproduce
- Run
claudein the~/.claudedirectory - Ask Claude to edit a skill
.mdfile (e.g.,skills/design-plan/skill.md) - Grant write permission when prompted
- The permission is saved to
settings.local.json - Continue editing or edit another skill
.mdfile - Claude prompts for write permission again, despite it being already authorized
Expected Behavior
Once write permission is granted and saved to settings.local.json, subsequent write operations to skill .md files should not require additional permission prompts.
Actual Behavior
Write permission prompts appear repeatedly for skill .md files, even when the permission has been previously granted and saved.
9 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This issue is NOT a duplicate of the referenced issues. Here's why:
Key Differences
| Aspect | This Issue (#21242) | Referenced Issues |
|--------|---------------------|-------------------|
| Tool |
Writetool (editing .md files) |Bashcommands || Working Directory |
~/.claude(Claude Code's own config directory) | Regular project directories || Target Files | Skill
.mdfiles in~/.claude/skills/| Various shell command targets |Why This May Require Different Handling
The
~/.claudedirectory is Claude Code's own configuration directory, not a regular project. This special directory:.claude/→~/.claude)The Write tool permission for skill
.mdfiles keeps prompting despite being saved insettings.local.json, which suggests the permission matching logic may not correctly handle paths within the~/.claudedirectory.Reproduction Context
claudedirectly in~/.claudedirectoryskills/design-plan/skill.mdsettings.local.json.mdfile prompts againThis appears to be a Write tool permission issue specific to the ~/.claude directory, not a general Bash command permission issue.
I see this on macos as well.
Additional repro:
Edit/Writepath-scoped permissions in project settings ignoredVersion: Claude Code 2.1.63 (Opus)
Platform: Linux (WSL2), bash
Setup
Project
.claude/settings.json:Steps
.claude/rules/(e.g.,.claude/rules/client-spa.md)Notes
Read(.claude/**)works fine — onlyEditandWriteare affected.claude/has hardcoded special-case protection that bypasses the permission matching logic entirelyI see it on wsl/ubuntu 24
Is there any fix for this yet?
Am seeing this as well.
Claude keeps prompting for edit permission inside the .claude directory. This might be a safeguard due to the special nature of .claude, but this is getting in my way of setting .claude the way I want.
This is driving me insane approving individual edits whenever claude code is writing or updating skills in
~/.claude/skillsIt's so annoying
Confirming this behaviour is still present on macOS as of April 2026, not just for skill
.mdfiles but for Edit, Write, and Bash operations generally.Environment
Configuration
My
~/.claude/settings.jsonincludes, among others:Observed behaviour
Despite these patterns matching, "Allow once / Allow always" permission prompts appear routinely for Edit / Write operations on .md files inside ~/lucie/, and for Bash commands like mkdir, cp, chmod on paths within approved directories. The prompts fire as if the allowlist entries were not present.
Impact
I maintain a carefully configured allowlist specifically to avoid interruption during long working sessions. In a typical ~8-hour session I click through ~100+ permission prompts that should have been covered by existing allowlist entries. This is not friction at the margin — it materially degrades the tool's usability for disciplined users.
Related issues
#15921 (Windows) and #27139 (closed as duplicate) describe the same underlying bug.
Workaround adequacy
The April 2026 /less-permission-prompts skill helps at the margin by scanning transcripts and suggesting allowlist entries, but it addresses the symptom (prompts fire) rather than the cause (matching allowlist entries are ignored). On my machine, running that skill produced an allowlist that still doesn't suppress the bulk of prompts, because the entries it adds share the same broken matching as the ones already there.
This has been an open regression for 3+ months. Would be grateful for any acknowledgement from the team on whether this is being triaged.