Add skills installation to all 3 installers (manual, auto, prompt)
FEATURES: - All 3 installation methods now include skills installation - Skills are user-invocable slash commands (like /ui-ux-pro-max) CHANGES: 1. Interactive Installer (interactive-install-claude.sh) - Added skills directory creation - Automatic skills installation from repository - Copies all skills to ~/.claude/skills/ - Makes Python scripts executable - Displays skills count in summary 2. Master Prompt (MASTER-PROMPT.md) - Updated Step 1.5 with current repository structure - Simplified skills installation instructions - Removed deprecated external repository references - Uses local repository files 3. Manual Installation (README.md) - Updated Step 4 with skills installation - Clear verification steps - Explains what skills provide - Proper chmod +x for scripts SKILLS NOW INCLUDED: - ui-ux-pro-max: Design patterns, colors, typography - 50+ design styles (minimalism, glassmorphism, etc.) - Search 8 domains: landing, style, product, color, typography - Python script search.py for design recommendations TESTING: - All 3 installers tested and working - Skills install to correct location: ~/.claude/skills/ - Python scripts are executable - Skills count shows in installation summary Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -612,7 +612,7 @@ backup_config() {
|
||||
create_directories() {
|
||||
log_info "Creating directory structure..."
|
||||
|
||||
mkdir -p "$CLAUDE_DIR"/{agents,plugins/cache,plugins/marketplaces,hooks,debug,file-history,paste-cache,projects,session-env,shell-snapshots,todos}
|
||||
mkdir -p "$CLAUDE_DIR"/{skills,agents,plugins/cache,plugins/marketplaces,hooks,debug,file-history,paste-cache,projects,session-env,shell-snapshots,todos}
|
||||
|
||||
if [ "$INSTALL_ENGINEERING" = true ]; then mkdir -p "$CLAUDE_DIR/agents/engineering"; fi
|
||||
if [ "$INSTALL_MARKETING" = true ]; then mkdir -p "$CLAUDE_DIR/agents/marketing"; fi
|
||||
@@ -725,6 +725,33 @@ install_agents() {
|
||||
log_info "Installing agent-updater for automatic sync..."
|
||||
fi
|
||||
|
||||
# ============================================
|
||||
# INSTALL SKILLS
|
||||
# User-invocable skills (slash commands)
|
||||
# ============================================
|
||||
if [ -d "$SCRIPT_DIR/skills" ]; then
|
||||
log_info "Installing skills..."
|
||||
mkdir -p "$CLAUDE_DIR/skills"
|
||||
|
||||
# Copy all skill directories
|
||||
for skill_dir in "$SCRIPT_DIR/skills"/*; do
|
||||
if [ -d "$skill_dir" ]; then
|
||||
skill_name=$(basename "$skill_dir")
|
||||
log_info " → Installing skill: $skill_name"
|
||||
cp -r "$skill_dir" "$CLAUDE_DIR/skills/"
|
||||
|
||||
# Make scripts executable
|
||||
if [ -d "$CLAUDE_DIR/skills/$skill_name/scripts" ]; then
|
||||
chmod +x "$CLAUDE_DIR/skills/$skill_name/scripts"/*.py 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
log_success "✓ Skills installed to: $CLAUDE_DIR/skills/"
|
||||
else
|
||||
log_warning "Skills directory not found at $SCRIPT_DIR/skills"
|
||||
fi
|
||||
|
||||
# Install sync-agents.sh script
|
||||
if [ -f "$SCRIPT_DIR/sync-agents.sh" ]; then
|
||||
log_info "Installing sync-agents.sh script..."
|
||||
@@ -733,6 +760,11 @@ install_agents() {
|
||||
log_success "sync-agents.sh installed (run: ~/.claude/sync-agents.sh)"
|
||||
fi
|
||||
|
||||
if [ -d "$CLAUDE_DIR/skills" ]; then
|
||||
skill_count=$(find "$CLAUDE_DIR/skills" -maxdepth 1 -type d | wc -l)
|
||||
skill_count=$((skill_count - 1)) # Subtract 1 for the skills directory itself
|
||||
log_success "Skills installed: $skill_count skill(s)"
|
||||
fi
|
||||
log_success "Agents installed: $SELECTED_AGENTS"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user