27 lines
816 B
Bash
Executable File
27 lines
816 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SKILL_NAME="open-law-kr-download"
|
|
SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
TARGETS=(
|
|
"$HOME/.codex/skills/$SKILL_NAME"
|
|
"$HOME/.agents/skills/$SKILL_NAME"
|
|
"$HOME/.gemini/config/skills/$SKILL_NAME"
|
|
"$HOME/.claude/skills/$SKILL_NAME"
|
|
)
|
|
|
|
echo "Installing '$SKILL_NAME' from: $SRC_DIR"
|
|
for dest in "${TARGETS[@]}"; do
|
|
mkdir -p "$dest/scripts" "$dest/agents"
|
|
cp "$SRC_DIR/SKILL.md" "$dest/SKILL.md"
|
|
cp "$SRC_DIR/scripts/open_law_cli.py" "$dest/scripts/open_law_cli.py"
|
|
if [[ -f "$SRC_DIR/agents/openai.yaml" ]]; then
|
|
cp "$SRC_DIR/agents/openai.yaml" "$dest/agents/openai.yaml"
|
|
fi
|
|
chmod +x "$dest/scripts/open_law_cli.py"
|
|
echo " [OK] $dest"
|
|
done
|
|
|
|
echo "Done! '$SKILL_NAME' is now installed globally for Codex, Antigravity, and Claude Code."
|