#!/usr/bin/env bash # Link every skill in this repo into Codex and Claude Code, so a `git pull` here # is all it takes to get the latest lessons. Safe to re-run. set -euo pipefail repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" for target in "$HOME/.codex/skills" "$HOME/.claude/skills"; do mkdir -p "$target" for skill in "$repo"/skills/*/; do name="$(basename "$skill")" link="$target/$name" if [ -e "$link" ] && [ ! -L "$link" ]; then echo "skip $link: a real directory is there (an old copy?); remove it and re-run" continue fi ln -sfn "${skill%/}" "$link" echo "linked $link" done done echo echo "Done. Each person still needs their own swads MCP token (see README)."