Repository navigation
docs(solutions): how one plugin runs another plugin's CLI (core/ops split learning) - #39
Merged
Merged
Conversation
Learning from the Kaizen core/ops split (PRs #36-#38): a resolver shim at the path the moved skills already use, its resolution order and refusals, the version gate, core-root for shared docs, gates kept with the CLI and hooks, doctor as the migration signal; pitfalls hit (macOS realpath, cross-plugin contracts, stubs vs git rename detection, allowed-tools in stubs, repeatable --plugin-dir). Plan definition of done updated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Learning from the Kaizen core/ops split (#36, #37, #38), in
docs/solutions/architecture-patterns/plugin-reaching-another-plugins-cli.md, same format as the two existing solutions:${CLAUDE_PLUGIN_ROOT}is per plugin and there is no declared plugin dependency, so moved skills lose the CLI, references and config docs they used.git config kaizen.cli→$KAIZEN_CLI→ sibling checkout → newest cache semver, each checked by name), a wrong explicit pointer refused rather than replaced, version gate fromrequires.json, full forwarding,core-rootfor shared docs, every gate kept with the CLI and hooks (contract-enforced),doctoras the migration signal./var→/private/var(realpath on both sides), cross-plugin contract rules for old names, stubs defeating git rename detection (commit the puregit mvfirst),allowed-toolsin stubs, repeatable--plugin-dir.Docs only: no plugin file changes, so the Kaizen workflow does not run.
Test plan
node plugins/kaizen/scripts/kaizen.mjs plan check docs/plans/2026-10-20-1515-refactor-kaizen-core-ops-split-plan.md— green.requires.json,ops_plugin, 1,549-line diff before splitting the commits, 74–100 % rename similarity).Generated by Claude Code