Fix validation to skip commands-only plugins

Updated marketplace.json validation to skip plugins that don't have
a "skills" property (e.g., commands-only plugins). This fixes the CI
error where apify-actor-commands plugin was incorrectly flagged for
missing SKILL.md.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
patrikbraborec
2026-01-21 15:19:41 +01:00
parent e4323da0f0
commit c5f9628e05
+4 -1
View File
@@ -190,8 +190,11 @@ def validate_marketplace(skills: list[dict[str, str]]) -> list[str]:
f"SKILL.md='{skill['name']}', marketplace.json='{plugin_by_source[expected_source]['name']}'"
)
# Check: every marketplace plugin has a corresponding skill
# Check: every marketplace plugin with skills has a corresponding skill
for plugin in plugins:
# Skip plugins that don't have skills (e.g., commands-only plugins)
if "skills" not in plugin:
continue
if plugin["source"] not in skill_by_source:
errors.append(
f"Marketplace plugin '{plugin['name']}' at '{plugin['source']}' has no SKILL.md"