Commit 889e080
docs(skill-development): add allowed-tools optional frontmatter documentation (#42)
## Summary
Add documentation for the optional `allowed-tools` frontmatter field
that allows skills to restrict which tools Claude can use when the skill
is active.
## Problem
Fixes #39
The official Claude Code documentation includes an `allowed-tools`
frontmatter field for skills, but the skill-development skill didn't
document this optional feature. Users creating skills didn't know about
this option for restricting tool access.
## Solution
Added documentation to SKILL.md explaining the `allowed-tools` feature:
- New "Optional Frontmatter Fields" section after "SKILL.md (required)"
- YAML example showing proper syntax
- Use cases (read-only skills, security-sensitive workflows, limited
scope)
- Updated validation checklist with optional allowed-tools check
### Alternatives Considered
1. **Add to references file** - Rejected because this is a core
frontmatter feature that belongs in the main SKILL.md, not detailed
reference material
2. **Just link to official docs** - Rejected because external links may
break and doesn't provide enough context
## Changes
- `plugins/plugin-dev/skills/skill-development/SKILL.md`: +23 lines
- Added "Optional Frontmatter Fields" section with `allowed-tools`
documentation
- Added optional check in validation checklist
## Testing
- [x] Linting passes (markdownlint)
- [x] Documentation follows existing patterns
- [x] Example uses correct YAML syntax
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent a061ee8 commit 889e080
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
45 | 67 | | |
46 | 68 | | |
47 | 69 | | |
| |||
176 | 198 | | |
177 | 199 | | |
178 | 200 | | |
| 201 | + | |
179 | 202 | | |
180 | 203 | | |
181 | 204 | | |
| |||
0 commit comments