Nous.Plugins.Skills (nous v0.13.3)
View SourcePlugin that integrates the Skills system into the agent lifecycle.
This plugin bridges Nous.Skill definitions into the existing plugin
pipeline, handling skill discovery, activation, and injection of
instructions and tools.
Automatic Inclusion
When skills: [...] is provided to Nous.Agent.new/2, this plugin is
automatically added to the plugins list.
Lifecycle
- init — resolves skill specs, builds registry, auto-activates
:autoskills - system_prompt — injects instructions from all active skills
- tools — provides tools from all active skills
- before_request — matches user input against skills for dynamic activation
Example
agent = Agent.new("openai:gpt-4",
skills: [
MyApp.Skills.CodeReview,
"priv/skills/",
{:group, :testing}
]
)