Skill Frontmatter Configuration
CoreCreate and configure custom slash commands and skills · Difficulty 3/5
0%
frontmatterskillsconfigurationforkallowed-tools
Prerequisites
Skill files support YAML frontmatter that controls execution behavior, tool access, and user interaction.
Frontmatter Options
---
argument-hint: "migration name"
context: fork
allowed-tools:
- write_file
model: haiku
---context: fork
Runs the skill in an isolated sub-agent context:
allowed-tools
Restricts tool access during skill execution (principle of least privilege):
argument-hint
Shows expected parameters during autocomplete:
argument-hint: "migration name" tells the developer to provide a migration nameKey Takeaways
- ✓context: fork isolates skill execution from main conversation
- ✓allowed-tools restricts tool access for safety (principle of least privilege)
- ✓argument-hint prompts developers for required parameters
- ✓Use fork for exploration skills to prevent verbose output from polluting context