Skip to content

docs: document how to reduce Claude Code skill read prompts#36793

Merged
bobbyiliev merged 3 commits into
MaterializeInc:mainfrom
bobbyiliev:docs-coding-agent-skills-permissions
Jun 1, 2026
Merged

docs: document how to reduce Claude Code skill read prompts#36793
bobbyiliev merged 3 commits into
MaterializeInc:mainfrom
bobbyiliev:docs-coding-agent-skills-permissions

Conversation

@bobbyiliev
Copy link
Copy Markdown
Contributor

Globally installed agent skills live outside the project directory, so Claude Code prompts to approve reads each time the skill opens a new docs subdirectory. So adding a short section to the Coding Agent Skills page explaining how to scope read access via additionalDirectories (or auto mode) to stop the prompts.

@bobbyiliev bobbyiliev requested a review from a team as a code owner May 29, 2026 18:15
@bobbyiliev bobbyiliev requested review from kay-kim and maheshwarip May 29, 2026 18:15
## Reduce permission prompts (Claude Code)

Claude Code prompts before reading files outside your project. Since globally
installed skills live under `~/.claude/skills/`, it may ask to approve reads
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering ... whether we should tighten this to mention materialize-documentation skill ... since:

  • we actually have 2 skills currently
  • it ties to the "opens a new documentation subdirectory"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ... heh heh ... I meant something like:

Claude Code prompts before reading files outside your project. Since globally
installed skills live under `~/.claude/skills/`, if you installed
`materialize-docs` skills globally, Claude Code may ask to approve reads each
time the skill opens a new documentation subdirectory.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, reworded to spell out the global-install condition!

installed skills live under `~/.claude/skills/`, it may ask to approve reads
each time the skill opens a new documentation subdirectory.

To stop these prompts, grant read access to just the Materialize skill in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove "just"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kay! Just updated this.

## Reduce permission prompts (Claude Code)

Claude Code prompts before reading files outside your project. Since globally
installed skills live under `~/.claude/skills/`, it may ask to approve reads
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ... heh heh ... I meant something like:

Claude Code prompts before reading files outside your project. Since globally
installed skills live under `~/.claude/skills/`, if you installed
`materialize-docs` skills globally, Claude Code may ask to approve reads each
time the skill opens a new documentation subdirectory.

}
```

This grants the narrowest access needed. If you have multiple skills installed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And per-Claude, the "narrowest access" isn't quite correct. and it suggested "This grants access to just that one skill's directory." instead, which does flow nicely with the next sentence of multiple skills.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, "narrowest access" wasn't quite right. Changed this. Lat me know what you think!

@bobbyiliev bobbyiliev requested a review from kay-kim June 1, 2026 11:01
@bobbyiliev bobbyiliev merged commit a3ca36e into MaterializeInc:main Jun 1, 2026
15 checks passed
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.

2 participants