Nous.Plugins.Skills (nous v0.13.3)

View Source

Plugin 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

  1. init — resolves skill specs, builds registry, auto-activates :auto skills
  2. system_prompt — injects instructions from all active skills
  3. tools — provides tools from all active skills
  4. 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}
  ]
)