Skip to content

fix: surface installed plugin components at ZCode user scope - #25

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/install-user-scope-components
Jul 18, 2026
Merged

fix: surface installed plugin components at ZCode user scope#25
rldyourmnd merged 1 commit into
mainfrom
fix/install-user-scope-components

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Problem

ZCode 3.3.6 loads user skills/commands/agents only from ~/.zcode/skills, ~/.zcode/commands, ~/.zcode/agents — it never reads ~/.zcode/marketplaces/<mp>/plugins/. The installer built a complete ~/.zcode but left every plugin's components inside the marketplace tree, so a headless install placed files the client loaded from nothing: the setup appeared to install, yet none of its skills or commands showed up in ZCode.

(Confirmed against a real ZCode 3.3.6 install: zcode skills list / plugins list showed none of our content; ZCode's built-in guide documents the user-scope + UI-only-marketplace loading; its CLI has no plugin add, so file-based marketplace install isn't possible — unlike Codex, which the installer correctly drives through codex plugin add.)

Fix

The build now surfaces each installed plugin's skills/commands/agents at user scope (~/.zcode/{skills,commands,agents}) while keeping the marketplaces/<mp>/ tree intact for the plugin model and any later UI-managed install. A name collision (two plugins, or a plugin vs a direct user-scope component) fails closed rather than silently shadowing one — important as setups grow to many plugins. remove still backs up and deletes the whole managed ~/.zcode, so uninstall stays clean.

Verification

Isolated target: install surfaces all 13 builder skills + 13 commands + the reviewer agent at user scope; the ZCode CLI then loads them (zcode skills list / commands list); remove leaves no residue. Private harness: the full nddev-zcode-app slice passes, including a new test_install_surfaces_plugin_components_at_user_scope.

https://claude.ai/code/session_01Y29c9sJRhChvxDcUjab5Xo

ZCode 3.3.6 loads user skills, commands, and agents only from
~/.zcode/skills, ~/.zcode/commands, and ~/.zcode/agents; it never reads
~/.zcode/marketplaces/<mp>/plugins/. The installer built a complete ~/.zcode
but left every plugin's components inside the marketplace tree, so a headless
install placed files the client loaded from nothing -- the setup appeared to
install yet none of its skills or commands showed up.

The build now surfaces each installed plugin's skills/commands/agents at user
scope while keeping the marketplace tree intact for the plugin model and any
later UI-managed install. A name collision between two plugins, or between a
plugin and a direct user-scope component, fails closed rather than silently
shadowing one, which matters as setups grow to many plugins. remove still
backs up and deletes the whole managed ~/.zcode, so uninstall stays clean.

Verified in an isolated target: install surfaces all 13 builder skills, 13
commands, and the reviewer agent at user scope; the ZCode CLI then loads them
(`zcode skills list` / `commands list`); remove leaves no residue.

Claude-Session: https://claude.ai/code/session_01Y29c9sJRhChvxDcUjab5Xo
@rldyourmnd
rldyourmnd merged commit 790a4b9 into main Jul 18, 2026
8 checks passed
@rldyourmnd
rldyourmnd deleted the fix/install-user-scope-components branch July 18, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant