Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
HOST=""
for arg in "$@"; do
case "$arg" in
--host) shift; HOST="$1"; shift;;
--host=*) HOST="${arg#*=}"; shift;;
esac
done
case "$HOST" in
claude|codex) ;;
*) echo "Usage: $0 --host <claude|codex>" >&2; exit 1 ;;
esac
SKILL_DIR="$HOME/.${HOST}/skills/simplify-codebase"
mkdir -p "$SKILL_DIR"
cp -a SKILL.md agents openai.yaml "$SKILL_DIR/" 2>/dev/null || true
cp -a references docs LICENSE README.md README.en.md "$SKILL_DIR/" 2>/dev/null || true
echo "Installed simplify-codebase to $SKILL_DIR for host $HOST"