X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/blobdiff_plain/ff2ea1e70c415b567555f727c30d2dcc04a0d90e..7d3179a815ee8761b2720a3dc303cb2dc4318ad0:/install-claude.sh?ds=inline diff --git a/install-claude.sh b/install-claude.sh index 55ba91f..863adb2 100755 --- a/install-claude.sh +++ b/install-claude.sh @@ -16,12 +16,18 @@ fi ln -sf "$SCRIPT_DIR/claude/CLAUDE.md" "$CLAUDE_DIR/CLAUDE.md" echo " ✓ CLAUDE.md" -# Symlink commands -mkdir -p "$CLAUDE_DIR/commands" -for cmd in "$SCRIPT_DIR"/claude/commands/xdev-*.md; do - [ -f "$cmd" ] || continue - ln -sf "$cmd" "$CLAUDE_DIR/commands/$(basename "$cmd")" - echo " ✓ commands/$(basename "$cmd")" -done +# Install xdev plugin from devloop marketplace +# Plugin includes: skills (xdev-implement, xdev-draft, xdev-setup) +# hooks (commit validation, sensitive file protection) +echo "" +echo "Installing xdev plugin..." +if command -v claude &>/dev/null; then + claude plugin marketplace add XinqiBao/devloop 2>/dev/null || true + claude plugin install xdev@devloop 2>/dev/null || true + echo " ✓ xdev@devloop plugin (skills + hooks)" +else + echo " ⚠ claude CLI not found, skipping plugin install" +fi +echo "" echo "Done. Claude Code xdev workflow installed."