You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Allow skills and commands to define scoped permission overrides #7407
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem:
When creating skills or commands that need specific tool permissions (e.g., a /commit command that needs git commit and git add), there's no way to scope those permissions to the skill/command invocation. Users must either:
Globally allow those commands (reducing safety)
Keep them as ask and manually approve every time the skill/command runs
Proposed solution:
Allow skills and commands to define permission overrides in their frontmatter that apply only during their execution:
What i would like is that tools would not even be visible for an agent until a skill has been loaded.
If i have a skill "calendar/SKILL.md" then i would want that loading it would both give new prompt context AND availablity to tools. I guess this is what this Feature Request is about, but i'd like to emphasis that it should be possible to "load a skill on demand and then suddenly see new tools that it wasnt aware of before".
Question regarding this feature request: why would the permissions be revoked after a skill has been loaded? It makes sense for a command but not for a skill. Once an agent has loaded a skill surely it should keep everything related around? or?
I dont understand, why open a new issue? Feels like it would only create noise.
I think this is still a relevant request. I suppose the main reason not to is to keep some kind of compatibility with other apps using the skill files, but i dont know what the opencode attitude is.
Activity
github-actions commentedon Jan 9, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
einarpersson commentedon Jan 10, 2026
What i would like is that tools would not even be visible for an agent until a skill has been loaded.
If i have a skill "calendar/SKILL.md" then i would want that loading it would both give new prompt context AND availablity to tools. I guess this is what this Feature Request is about, but i'd like to emphasis that it should be possible to "load a skill on demand and then suddenly see new tools that it wasnt aware of before".
Question regarding this feature request: why would the permissions be revoked after a skill has been loaded? It makes sense for a command but not for a skill. Once an agent has loaded a skill surely it should keep everything related around? or?
github-actions commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
einarpersson commentedon Mar 25, 2026
I dont understand, why open a new issue? Feels like it would only create noise.
I think this is still a relevant request. I suppose the main reason not to is to keep some kind of compatibility with other apps using the skill files, but i dont know what the opencode attitude is.