Use the existing ZCode UI for the user handoff. The agent prepares source and the catalog; the user performs registration, installation, updates and trial. These steps require no global CLI or Node command.
<workspace>/plugins/my-plugin/ editable source
<workspace>/plugins/marketplace.json test catalog
|
user adds market in UI
v
Host-managed market → user installs → installed copy
|
new-task trial
Give the actual absolute market root directory to paste, usually <workspace>/plugins/. It contains marketplace.json; it is not the individual plugin subdirectory. For .claude-plugin/marketplace.json, the market root is the parent of .claude-plugin.
The source, marketplace copy and installed copy are different locations. Registration/installation belongs to the target Host's user inventory. A local dev market is not public publishing or project-exclusive installation.
Do not report a registered market or installed plugin merely because its source files exist. For a first delivery, state that addition, installation and trial are pending.
Give a small acceptance prompt based on the implemented capability and describe an observable expected result. Ask the user to create a new task after installation. For skills, select the installed plugin/skill in the composer picker and send the prompt; do not fabricate an installed file path. For MCP or hooks, describe the intended tool result or trigger and any actual configuration requirement.
Old tasks may retain an earlier capability catalog. A successful installation alone does not prove the capability works. If the user has not run the example, mark the trial as pending; if they report a failure, use that evidence to debug it.
The agent edits the original source, increments its manifest version and synchronizes that version and metadata into the same marketplace entry. Preserve the market name, plugin identity and unrelated entries; do not edit installed caches or re-scaffold implemented source.
Then guide the user to:
Source edits are not hot reload. A market refresh updates the catalog; the installed plugin still needs its update action.
Example Chinese handoff:
源码:〈实际源码目录〉;测试市场清单:〈实际清单文件〉。
请在“插件市场 → 添加 → 添加插件市场”粘贴:〈实际市场根目录〉。
添加后在“个人 → 〈实际市场名〉”找到“〈插件展示名〉”,点击安装。
安装后新建任务,选择该插件/技能并发送:〈具体验收提示〉。预期:〈可观察结果〉。
当前状态:源码和清单已生成;市场待手动添加,插件待安装,试用待验。