Commit 8ad84d4
feat: add skills field to agents for auto-loading relevant skills (#120)
## Summary
- Adds the `skills` frontmatter field to all 3 agents to auto-load
relevant skill documentation when invoked
- Makes agents more self-contained and effective by providing them with
domain-specific best practices
## Problem
Fixes #118
The plugin's agents don't leverage the `skills` frontmatter field to
auto-load relevant context. Users need to manually load skills first, or
agents operate without that documentation context.
## Solution
Add `skills` field to each agent's frontmatter:
| Agent | Skills Auto-loaded |
|-------|-------------------|
| `agent-creator` | agent-development |
| `plugin-validator` | plugin-structure, hook-development,
command-development, skill-development, agent-development |
| `skill-reviewer` | skill-development |
### Alternatives Considered
1. **Status quo**: Users manually load skills (current behavior)
2. **Document in prompts**: Add references in system prompt text
(doesn't auto-load)
3. **Single skill per agent**: Only load most relevant skill (less
comprehensive for plugin-validator)
Chose the approach from the issue which provides comprehensive coverage
while being targeted to each agent's needs.
## Changes
- `agent-creator.md`: Added `skills: agent-development`
- `plugin-validator.md`: Added `skills: plugin-structure,
hook-development, command-development, skill-development,
agent-development`
- `skill-reviewer.md`: Added `skills: skill-development`
## Testing
- [x] All modified files pass markdownlint
- [x] Skills referenced exist in the plugin
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3ac8d5b commit 8ad84d4
3 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments