feat(install): add --add-skill and --add-mcp for direct module installation#46
Merged
feat(install): add --add-skill and --add-mcp for direct module installation#46
Conversation
…lation - Add --add-skill <name> for non-interactive skill installation - Add --add-mcp <name> for non-interactive MCP server installation - Add reconcile_tracking() to sync installed.json with filesystem - Call reconcile_tracking() during --update to fix untracked modules - Update /claude-code-setup command to use new options - Add tests for direct installation and reconciliation (v50) Fixes tracking for modules installed before tracking existed or installed manually. Enables reliable module installation from /claude-code-setup without interactive menu navigation.
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
--add-skill <name>for non-interactive skill installation--add-mcp <name>for non-interactive MCP server installationreconcile_tracking()to syncinstalled.jsonwith filesystem during--update/claude-code-setupcommand to use the new optionsProblem
The
/claude-code-setupcommand had to use fragile stdin-based interaction (printf 'none\n2\nn\n' | install.sh --add) to install modules. Module numbers were dynamic, making reliable installation impossible.Additionally, modules installed before tracking existed or installed manually were never tracked in
installed.json, causing them to be skipped during updates.Solution
--add-skill standards-kotlinand--add-mcp pdf-readerwork without any user interactionreconcile_tracking()runs at the start of--updateto syncinstalled.jsonwith what's actually on diskTest plan
./tests/test.sh 22-add-skill- Direct skill installation./tests/test.sh 23-add-mcp- Direct MCP installation./tests/test.sh 24-reconcile- Tracking reconciliation./tests/test.sh- All 27 scenarios passUsage