Files
useosint dd98f68e40 Initial release: 28 OSINT Agent Skills
10 user-invoked investigation workflows (person, company, domain, username,
email, phone, GEOINT photo, social media, plus a router and report compiler)
and 18 model-invoked reconnaissance knowledge skills. Includes ethics charter,
installer, and elite README.
2026-08-02 19:21:17 +10:00

46 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# Install the OSINT skills into your Cursor / Claude skills directory.
#
# Usage:
# ./install.sh # symlink every skill into ~/.cursor/skills
# ./install.sh --copy # copy instead of symlink
# ./install.sh --target DIR # install into a custom skills dir
# ./install.sh --claude # install into ~/.claude/skills
#
# Symlinking (default) lets `git pull` update every skill in place.
set -euo pipefail
SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")/skills" && pwd)"
TARGET="${HOME}/.cursor/skills"
MODE="link"
while [[ $# -gt 0 ]]; do
case "$1" in
--copy) MODE="copy"; shift ;;
--claude) TARGET="${HOME}/.claude/skills"; shift ;;
--target) TARGET="$2"; shift 2 ;;
-h|--help) grep '^#' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
*) echo "unknown arg: $1" >&2; exit 1 ;;
esac
done
mkdir -p "$TARGET"
count=0
for dir in "$SRC"/*/; do
name="$(basename "$dir")"
dest="$TARGET/$name"
rm -rf "$dest"
if [[ "$MODE" == "copy" ]]; then
cp -R "$dir" "$dest"
else
ln -s "$dir" "$dest"
fi
count=$((count + 1))
echo " installed $name"
done
echo ""
echo "Installed $count skills into $TARGET ($MODE mode)."
echo "Restart Cursor (or your agent) to pick them up."