Skip to content

Commit 26a1154

Browse files
sjnimsclaude
andcommitted
docs: add allowed-tools frontmatter documentation to plugin-structure skill
Document the allowed-tools frontmatter field in the Skills section of the plugin-structure skill. This capability allows skills to restrict tool access for read-only workflows, security-sensitive tasks, or limited-scope operations. Fixes #91 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 29f2607 commit 26a1154

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • plugins/plugin-dev/skills/plugin-structure

plugins/plugin-dev/skills/plugin-structure/SKILL.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,18 @@ description: When to use this skill
200200
Skill instructions and guidance...
201201
```
202202

203+
**Tool restrictions**: Skills can include `allowed-tools` in frontmatter to limit tool access:
204+
205+
```yaml
206+
---
207+
name: safe-reader
208+
description: Read-only file access skill
209+
allowed-tools: Read, Grep, Glob
210+
---
211+
```
212+
213+
Use for read-only workflows, security-sensitive tasks, or limited-scope operations.
214+
203215
**Supporting files**: Skills can include scripts, references, examples, or assets in subdirectories
204216

205217
**Usage**: Claude Code autonomously activates skills based on task context matching the description

0 commit comments

Comments
 (0)