pub fn validate_plugin(plugin_path: &Path) -> ValidationResultExpand description
Validates a plugin directory.
Checks that:
- The path exists and is a directory
- It contains a
.claude-plugin/subdirectory - The
.claude-plugin/plugin.jsonfile exists and is valid JSON - Required fields (
name,version,description) are present and non-null - The
versionfield is valid semver - If an
extends-plugin.jsonexists, it is also validated