feat: add skills auto-discovery configuration#533
Conversation
|
I'll analyze this and get back to you. |
Review SummaryVerdict: APPROVE | Value: 43% | Size: TRIVIAL What This PR DoesAdds an auto-discovery config field ( Must Fix
Questions for Author
Bottom LineCode looks good. Rebase to resolve stale-base build failure, then this is ready to merge. Automated review — 4 rounds | Primary: claude |
AliceLJY
left a comment
There was a problem hiding this comment.
Review: feat: add skills auto-discovery configuration
Verdict: Approve
What I checked
-
Backward compatibility — Adding
"skills": ["./skills"]toopenclaw.plugin.jsonis additive. Theskills/directory already exists on main with thelessonskill. Previously skills had to be registered manually; this enables automatic discovery. -
Schema correctness — The
"skills"field is placed at the top level of the plugin manifest (alongsideid,name,kind, etc.), which is the correct location per the OpenClaw plugin specification. The value["./skills"]is a relative path array pointing to the existing directory. -
SKILL.md metadata — The added
metadata: { "openclaw": { "requires": { "config": ["plugins.entries.memory-lancedb-pro.enabled"] } } }inskills/lesson/SKILL.mddeclares a config dependency so the skill only loads when the plugin is enabled. This is a sensible guard that prevents the skill from appearing in contexts where the memory plugin isn't active. -
Risk assessment — 2 lines changed across 2 files, both config/metadata only, no logic code touched. Very low risk.
-
CI — cli-smoke pass, version-sync pass.
LGTM. Clean, minimal change that enables proper skill auto-discovery.
Add 'skills' field to openclaw.plugin.json to enable OpenClaw automatically discover skills in plugin directory - openclaw.plugin.json: add "skills": ["./skills"] configuration - skills/lesson/SKILL.md: add metadata config dependency declaration
95a6a4f to
4c087dd
Compare

Summary
This PR adds support for OpenClaw to automatically discover skills in the plugin directory.
Changes
openclaw.plugin.json: Added
"skills": ["./skills"]configuration fieldskills/lesson/SKILL.md: Added metadata configuration dependency declaration
plugins.entries.memory-lancedb-pro.enabledconfigMotivation
Currently, OpenClaw requires manual skill registration. This change enables automatic skill discovery from the plugin directory, simplifying plugin development and maintenance.
Testing
Related