#!/usr/bin/env bash set -euo pipefail # ============================================================ # Qovery Skills — Installer # Installs qovery-deploy and qovery-troubleshoot skills. # Compatible with Claude Code, OpenCode, Cursor, VS Code # Copilot, Gemini CLI, Roo Code, and 30+ more agent tools. # https://github.com/Qovery/qovery-skills # ============================================================ SKILLS=("qovery-onboard" "qovery-deploy" "qovery-troubleshoot" "qovery-optimize" "qovery-speedup") REPO_RAW_URL="https://skill.qovery.com" # Colors (if terminal supports them) if [ -t 1 ]; then GREEN='\033[0;32m' BLUE='\033[0;34m' YELLOW='\033[0;33m' RED='\033[0;31m' BOLD='\033[1m' NC='\033[0m' else GREEN='' BLUE='' YELLOW='' RED='' BOLD='' NC='' fi usage() { cat </dev/null; then echo -e " ${RED}Error:${NC} Failed to download $skill/SKILL.md" echo " Make sure the repo is public: https://github.com/Qovery/qovery-skills" continue fi echo -e " ${GREEN}Downloaded${NC} ($(wc -c < "$SOURCE" | tr -d ' ') bytes)" fi # Install to all target directories while IFS= read -r base; do target="$base/$skill" mkdir -p "$target" cp "$SOURCE" "$target/SKILL.md" echo -e " ${GREEN}Installed${NC} $target/SKILL.md" installed=$((installed + 1)) done < <(get_base_dirs "$MODE") echo "" done echo -e "${GREEN}${BOLD}Successfully installed ${#SKILLS[@]} skills to $installed locations.${NC}" echo "" if [ "$MODE" = "global" ]; then echo -e "Skills are now available ${BOLD}globally${NC} in all your projects." else echo -e "Skills are now available in ${BOLD}this project${NC} only." fi echo "" echo -e "${BOLD}Skills installed:${NC}" echo -e " ${YELLOW}qovery-onboard${NC} — Guided onboarding for new Qovery users" echo -e " ${YELLOW}qovery-deploy${NC} — Deploy any app to Kubernetes with Qovery" echo -e " ${YELLOW}qovery-troubleshoot${NC} — Diagnose and fix deployment issues" echo -e " ${YELLOW}qovery-optimize${NC} — Optimize costs and right-size resources" echo -e " ${YELLOW}qovery-speedup${NC} — Speed up deployments and builds" echo "" echo -e "${BOLD}Compatible with:${NC}" echo " Claude Code, OpenCode, Cursor, VS Code Copilot, Gemini CLI," echo " Roo Code, Goose, Amp, Junie (JetBrains), Kiro, OpenHands," echo " and 20+ more tools supporting the Agent Skills standard." echo "" echo -e "${BOLD}Try it:${NC} ask your AI agent:" echo -e " ${YELLOW}\"I'm new to Qovery, help me get started\"${NC}" echo -e " ${YELLOW}\"deploy my application with Qovery\"${NC}" echo -e " ${YELLOW}\"my Qovery deployment is failing, can you help?\"${NC}" echo -e " ${YELLOW}\"optimize my Qovery costs\"${NC}" echo -e " ${YELLOW}\"my deployments are slow, can you speed them up?\"${NC}" echo "" echo -e "Documentation: ${BLUE}https://github.com/Qovery/qovery-skills${NC}"