Skip to content

[Feature]: Add skills field to agents for auto-loading relevant skills #118

@sjnims

Description

@sjnims

Problem or Need

The plugin's 3 agents (agent-creator, plugin-validator, skill-reviewer) don't leverage the skills frontmatter field to auto-load relevant context when invoked.

Currently, if a user invokes agent-creator, the agent doesn't automatically have access to the agent-development skill's knowledge. The user would need to manually load the skill first, or the agent operates without that context.

Proposed Solution

Add the skills field to each agent's frontmatter to auto-load relevant skills:

agent-creator.md:

skills: agent-development

plugin-validator.md:

skills: plugin-structure, hook-development, command-development, skill-development, agent-development

skill-reviewer.md:

skills: skill-development

This would ensure agents have access to the plugin's own best practices documentation when performing their tasks.

Which component would this affect?

Agent

Specific Component (if applicable)

  • plugins/plugin-dev/agents/agent-creator.md
  • plugins/plugin-dev/agents/plugin-validator.md
  • plugins/plugin-dev/agents/skill-reviewer.md

Alternatives Considered

  1. Status quo: Users manually load skills before invoking agents (current behavior)
  2. Document in agent prompts: Add references to skills in the system prompt text (doesn't auto-load)
  3. Single skill per agent: Only load the most relevant skill to minimize context size

Additional Context

The skills field is documented in official Claude Code docs (sub-agents.md):

skills (optional): Comma-separated list of skill names to auto-load when the subagent starts. Skills are loaded into the subagent's context automatically.

This is a straightforward enhancement that would make the agents more self-contained and effective.

Found during comprehensive subagent review against official Claude Code plugin documentation.

How important is this feature to you?

Low - Just a suggestion

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions