mirror of
https://github.com/apify/agent-skills.git
synced 2026-09-14 20:00:06 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user