Skip to content

feat: Add skills_dirs config for self-hosted worker skill discovery#51

Open
ianhodge wants to merge 2 commits intomainfrom
04-14-add_skills_dirs_config_and_worker_skills_websocket_message
Open

feat: Add skills_dirs config for self-hosted worker skill discovery#51
ianhodge wants to merge 2 commits intomainfrom
04-14-add_skills_dirs_config_and_worker_skills_websocket_message

Conversation

@ianhodge
Copy link
Copy Markdown
Member

@ianhodge ianhodge commented Apr 14, 2026

Summary

Add support for self-hosted workers to discover and report locally available skills to the server via a new worker_skills WebSocket message, so they appear in the Oz webapp's agent selector dropdown for users with access to the worker.

Problem

Self-hosted workers don't use Warp environments, so the webapp can't auto-populate the skills dropdown. The only workaround was pasting skill paths into the prompt, which is unsustainable for enterprises.

Solution

Config

Add a top-level skills_dirs field to the worker YAML config — a list of filesystem directories containing skill folders:

worker_id: "my-worker"
skills_dirs:
  - /opt/skills
  - /home/user/my-skills

Each directory should contain subdirectories with a SKILL.md file following the standard skill folder convention (<dir>/skill-name/SKILL.md).

Protocol

On each WebSocket connect, the worker:

  1. Scans configured directories for SKILL.md files
  2. Parses YAML frontmatter (name, description) and body content (base prompt)
  3. Sends a worker_skills message to the server with the full skill metadata
{
  "type": "worker_skills",
  "data": {
    "skills": [
      {
        "name": "code-review",
        "description": "Review code changes for bugs and style issues",
        "path": "/opt/skills/code-review/SKILL.md",
        "base_prompt": "You are a code reviewer. Review the diff for..."
      }
    ]
  }
}

Helm Chart

worker.skillsDirs added to values.yaml and rendered in the ConfigMap template.

Files Changed

  • internal/config/config.go — Add SkillsDirs to FileConfig
  • internal/types/messages.go — Add WorkerSkill, WorkerSkillsMessage, MessageTypeWorkerSkills
  • internal/worker/skills.go (new) — Directory scanning and SKILL.md parsing
  • internal/worker/worker.go — Send worker_skills on connect
  • main.go — Wire skills_dirs through mergeConfig
  • charts/oz-agent-worker/ — Helm chart support

Testing

  • Unit tests for SKILL.md parsing (frontmatter extraction, base prompt, error cases)
  • Unit tests for directory scanning (valid skills, invalid/missing/dedup, nonexistent dirs)
  • Config loading tests for skills_dirs

Companion PR

Server-side changes: warpdotdev/warp-server#10385


Oz conversation | Plan

Co-Authored-By: Oz oz-agent@warp.dev

Add support for self-hosted workers to report locally available skills
to the server, so they appear in the webapp's agent selector dropdown.

Changes:
- Add skills_dirs field to FileConfig (list of directories to scan)
- Add WorkerSkill struct with name, description, path, and base_prompt
- Add worker_skills WebSocket message type
- New skills.go: scans directories for SKILL.md files, parses YAML
  frontmatter and body content
- Worker sends worker_skills message on each WebSocket connect
- Wire skills_dirs through main.go mergeConfig
- Add skillsDirs to Helm chart values and ConfigMap template
- Tests for config parsing, frontmatter extraction, directory scanning

Co-Authored-By: Oz <oz-agent@warp.dev>
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ianhodge ianhodge changed the title Add skills_dirs config and worker_skills WebSocket message feat: Add skills_dirs config for self-hosted worker skill discovery Apr 14, 2026
@ianhodge ianhodge requested review from Legoben and bnavetta April 14, 2026 19:46
@ianhodge
Copy link
Copy Markdown
Member Author

Regardless of some nuance with how these skills are applied on warp-server, I'm pretty confident in this flexible approach on the worker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant