Skip to content

feat(install): add --add-skill and --add-mcp for direct module installation#46

Merged
b33eep merged 1 commit intomainfrom
feat/direct-module-install
Feb 9, 2026
Merged

feat(install): add --add-skill and --add-mcp for direct module installation#46
b33eep merged 1 commit intomainfrom
feat/direct-module-install

Conversation

@b33eep
Copy link
Owner

@b33eep b33eep commented Feb 9, 2026

Summary

  • 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 during --update
  • Update /claude-code-setup command to use the new options

Problem

The /claude-code-setup command 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

  1. Direct installation options: --add-skill standards-kotlin and --add-mcp pdf-reader work without any user interaction
  2. Tracking reconciliation: reconcile_tracking() runs at the start of --update to sync installed.json with what's actually on disk

Test 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 pass

Usage

# Install skill directly
./install.sh --add-skill standards-kotlin
./install.sh --add-skill custom:my-skill

# Install MCP directly
./install.sh --add-mcp pdf-reader
./install.sh --add-mcp custom:my-mcp

…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.
@b33eep b33eep requested a review from cheorges February 9, 2026 09:09
@b33eep b33eep merged commit a69a2ad into main Feb 9, 2026
2 checks passed
@b33eep b33eep deleted the feat/direct-module-install branch February 9, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant