feat: add Codex CLI installer (symlinks into ~/.agents/skills)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Murphy Freelance
2026-07-10 19:24:52 +02:00
parent a7dcc361c0
commit ec853559af

16
install-codex.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# Install the gw-triage skills for OpenAI Codex CLI by symlinking them
# into ~/.agents/skills. Safe to re-run; updates arrive via `git pull`
# in this clone (symlinks keep pointing at the updated files).
set -eu
repo_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
dest="${HOME}/.agents/skills"
mkdir -p "$dest"
for skill in triage setup map-repo; do
ln -sfn "$repo_dir/skills/$skill" "$dest/$skill"
echo "linked $dest/$skill -> $repo_dir/skills/$skill"
done
echo "Fatto. Per aggiornare in futuro: git -C \"$repo_dir\" pull"