Generate or update plugin.json from discovered components
/plugin marketplace add astoeffer/moodle-plugin-marketplace/plugin install plugin-builder@astoeffer-dev-plugins<plugin-path>pb/Generate or update the plugin.json manifest for the plugin at: $ARGUMENTS
Pattern: skills/*/SKILL.md
For each skill found:
name from frontmatterdescription from frontmatterPattern: commands/**/*.md
For each command found:
description from frontmatterPattern: agents/*.md
For each agent found:
name from frontmatterdescription from frontmatterCheck for: hooks/hooks.json
Check for: .mcp.json
{
"name": "[ask if not existing]",
"version": "[increment patch if existing, else 1.0.0]",
"description": "[ask if not existing]",
"author": {
"name": "[ask if not existing]"
},
"license": "MIT",
"keywords": ["[derive from content]"],
"commands": "./commands/",
"agents": "./agents/",
"skills": "./skills/"
}
If plugin.json already exists:
Show the generated/updated manifest and ask for confirmation before writing.
Display summary:
Optionally generate a marketplace.json entry:
{
"name": "[plugin-name]",
"source": "./plugins/[plugin-name]",
"description": "[plugin description]",
"version": "[version]",
"keywords": ["[keywords]"]
}