Exports a dev-forge marketplace into a new standalone repository. Creates a personal or team marketplace with selected plugins pointing to their original sources. Use when you want to "export marketplace", "create new marketplace", "fork dev-forge", "new forge repo", "scaffold marketplace", "generate marketplace repo", "create team marketplace", "export plugins". Uninstall after use.
Guided exporter: interviews you, then generates a new standalone marketplace repo.
Ask the user:
source.url entries in marketplace.json — a placeholder is fine)Validate the destination path does not already exist. If it does, stop and report — do not proceed.
Read .claude-plugin/marketplace.json in this repo. Classify each plugin as:
upstream key (sourced from a third-party repo)upstream key (authored here)For each plugin, check whether plugins/<name>/.claude-plugin/customizations.json exists and count
its entries.
customizationsSee references/interview-guide.md § Plugin classification.
Present the detected plugins in a categorized table (external vs native) showing name, type, and customizations count. Ask which to include. Default: all.
Validate dependencies — if forge-extended-dev is selected without forge-superpowers, warn and offer to add forge-superpowers automatically.
See references/interview-guide.md § Plugin selection and § Dependency validation.
For each selected external plugin that has a customizations.json, present each customization
entry (id, type, target, summary) and ask which to carry over to the new marketplace.
See references/interview-guide.md § Customization interview.
For each selected native plugin, ask:
origin tracking in the generated customizations.jsonSee references/interview-guide.md § Native plugin interview.
Detect ALL hooks in .claude/settings.json. Classify each as plugin-associated
(travels with its plugin) or project-level (candidate for packaging). For each
project-level hook, diagnose its trigger, scope of action, and portability.
Present a diagnostic table and ask which to package as a
<marketplace-name>-hooks plugin.
See references/interview-guide.md § Settings/hooks detection.
Build the complete output plan in memory. Present a summary showing:
DO NOT write files until the user explicitly confirms.
See references/output-schema.md for all generated file shapes.
On confirmation, generate the new marketplace:
marketplace.json, CLAUDE.md, README.md, docs/dependencies.md,
commands/install-all.mdplugins/<name>/.claude-plugin/customizations.json
with only the carried customizationscustomizations.json recording origin and authorshipplugins/<marketplace-name>-hooks/ plugin
with hooks.json, copied scripts, and README. Add to marketplace.json and install-all.git init and create an initial commitPost-write: print a summary of what was generated, then display the uninstall reminder:
To uninstall forge-export (no longer needed):
/plugin → Manage and uninstall plugins → forge-export → Uninstall
See references/output-schema.md § Generation rules.
references/interview-guide.mdreferences/output-schema.md