Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Skills Plugin

Discovers, catalogs, and manages skills — reusable instruction sets that extend the agent’s behavior without writing code.

Details

IDnexus.skills
DependenciesNone

Configuration

KeyTypeDefaultDescription
scan_pathsstring[](none)Directories to scan for skills. Required — no implicit defaults. If empty, no skills are loaded.
trust_projectstringaskTrust level for project-scoped skills: ask (prompt user), always, never
max_active_skillsint10Maximum number of concurrently active skills
catalog_in_system_promptbooltrueInclude skill catalog in the system prompt
disabled_skillsstring[](none)Skills to exclude from discovery

Events

Subscribes To

EventPriorityPurpose
core.boot10Scans for skills at startup
skill.activate50Activates a skill by name
skill.deactivate50Deactivates a skill
skill.resource.read50Reads a skill’s resource files
before:llm.request15Tags requests with _expects_schema for active skills that declare output_schema

Emits

EventWhen
skill.discoverSkills catalog assembled
skill.loadedSkill content loaded for the agent
skill.resource.resultSkill resource content
before:skill.activateBefore activation (vetoable for trust checks)
schema.registerSkill with output_schema activated
schema.deregisterSkill with output_schema deactivated

Skill Discovery

At boot, the plugin scans only the directories listed in the scan_paths config — there are no implicit defaults. If scan_paths is empty or unset, no skills are loaded.

Each directory containing a SKILL.md file under a configured scan path is recognized as a skill. Scope is inferred from the resolved path: directories under the user’s home .nexus or .agents trees are treated as user scope; everything else is treated as project scope.

Tilde paths (~, ~/...) are expanded to the user’s home directory automatically.

nexus.skills:
  scan_paths:
    - ./skills              # project skills, relative to cwd
    - ~/.agents/skills      # user-scope skills (tilde is expanded)
    - /shared/team-skills   # any other directory you want to include

System Prompt Catalog

When catalog_in_system_prompt: true, the plugin registers a prompt section listing available skills in XML format:

<skills>
  <skill name="code-review" scope="project">Review code for quality, bugs, security issues, and style.</skill>
  <skill name="git-workflow" scope="project">Standard git workflow with branching and PR creation.</skill>
</skills>

This lets the agent know which skills exist and can request activation when appropriate.

Trust Levels

Project-scoped skills may be untrusted. The trust_project setting controls behavior:

ModeBehavior
askShow approval dialog before activating project skills
alwaysTrust all project skills automatically
neverBlock all project skill activation

User-scoped skills (paths under the user’s home .nexus or .agents trees) are always trusted.

Example Configuration

nexus.skills:
  trust_project: ask
  max_active_skills: 5
  catalog_in_system_prompt: true
  scan_paths:
    - ./skills
    - /shared/team-skills
  disabled_skills:
    - experimental-skill

For details on creating skills, see Writing Skills.