claude-skills/scripts/vibe-install.sh
Claude 636e435563
feat(install): add Mistral Vibe cross-platform sync (closes #705)
Mistral Vibe (https://github.com/mistralai/mistral-vibe) is Mistral AI's
open-source Apache-2.0 CLI coding agent. It uses the agentskills.io
SKILL.md + YAML frontmatter standard, identical to Claude Code and
Hermes, so this integration ships with zero format conversion.

Mirrors the existing Hermes pattern (sync-hermes-skills.py + .hermes/
committed tree + INSTALLATION.md section). New cross-platform target #6
slots in alongside .claude / .codex / .gemini / .hermes / .openclaw.

Changes:
- scripts/sync-vibe-skills.py — symlink installer, targets
  ~/.vibe/skills/claude-skills/<domain>/<skill>/. Same flags as
  sync-hermes-skills.py: --verbose, --domain, --dry-run, --copy, --json,
  --target. Stdlib only.
- scripts/vibe-install.sh — bash wrapper for parity with
  gemini-install.sh / codex-install.sh, surfaces Vibe usage tips.
- .vibe/skills/claude-skills/ — pre-generated tree: 306 skill symlinks
  across 14 domains plus skills-index.json. Mirrors .hermes/ precedent
  so users can inspect install surface before running the script.
- INSTALLATION.md — new "Mistral Vibe Installation" section (setup,
  Python invocation flags, verify, uninstall), TOC entry, cross-tool
  table row.
- README.md — Mistral Vibe added to Works-with line, BYO-sync footnote
  mirroring Hermes pattern, Multi-Tool Support table row, FAQ updated
  12 → 13 tools, twelve-platforms callout.
- CHANGELOG.md — [Unreleased] entry.

Smoke tests (all pass):
- `--help` exits 0
- end-to-end sync to /tmp creates 306 valid symlinks + index
- SKILL.md frontmatter readable through symlinks
- idempotent: second run skips all 320, creates 0
- `--domain finance` correctly isolates to 4 finance skills
2026-05-23 02:04:17 +00:00

58 lines
1.7 KiB
Bash
Executable file

#!/bin/bash
#
# Mistral Vibe Installation Script for Claude Skills Library
#
# Syncs all skills into ~/.vibe/skills/claude-skills/ for discovery by
# Mistral Vibe (https://github.com/mistralai/mistral-vibe). Uses the
# agentskills.io SKILL.md standard — no format conversion needed.
#
# Usage:
# ./scripts/vibe-install.sh [--dry-run] [--verbose] [--domain engineering] [--copy]
#
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(dirname "$SCRIPT_DIR")"
VIBE_SYNC_SCRIPT="$SCRIPT_DIR/sync-vibe-skills.py"
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
print_info() { echo -e "${BLUE}[INFO]${NC} $1"; }
print_success() { echo -e "${GREEN}[SUCCESS]${NC} $1"; }
echo ""
echo "========================================"
echo " Claude Skills - Mistral Vibe Setup"
echo "========================================"
echo ""
if ! command -v python3 &> /dev/null; then
echo "Error: python3 is required for this setup."
exit 1
fi
print_info "Synchronizing skills for Mistral Vibe..."
python3 "$VIBE_SYNC_SCRIPT" "$@"
echo ""
print_success "Mistral Vibe setup complete!"
echo ""
echo "How to use these skills in Mistral Vibe:"
echo "----------------------------------------"
echo "1. List available skills inside Vibe:"
echo " > /skills"
echo ""
echo "2. Invoke a skill by name:"
echo " > /senior-architect"
echo ""
echo "3. Or describe a task — Vibe will auto-load matching skills via the"
echo " description field in each SKILL.md frontmatter."
echo ""
echo "Skills install to ~/.vibe/skills/claude-skills/ as symlinks back to"
echo "this repo (or copies, if you passed --copy)."
echo ""
print_info "Docs: https://docs.mistral.ai/mistral-vibe/agents-skills"
echo ""