#!/bin/sh
# Installs the ClevrGo buyer skill into ~/.agents/skills (read by Codex, Cursor, VS Code and Gemini CLI).
# It holds instructions only: no token. Connect the MCP server separately with your own ClevrGo token.
set -eu
dest="${HOME}/.agents/skills"
tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT
curl -fsSL "https://clevrgo.com/skills/clevrgo-buyer/skill.zip" -o "$tmp/skill.zip"
mkdir -p "$dest"
rm -rf "$dest/clevrgo-buyer"
unzip -q "$tmp/skill.zip" -d "$dest"
echo "Installed clevrgo-buyer to $dest/clevrgo-buyer"
