-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·31 lines (27 loc) · 924 Bytes
/
setup
File metadata and controls
executable file
·31 lines (27 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
set -euo pipefail
echo "opus-codex setup"
echo "================"
echo ""
# Check codex CLI
if ! command -v codex &>/dev/null; then
echo "WARNING: OpenAI Codex CLI not found."
echo "Install it: npm i -g @openai/codex"
echo ""
fi
# Detect install scope
INSTALL_DIR=$(cd "$(dirname "$0")" && pwd)
if [[ "$INSTALL_DIR" == "$HOME/.claude/skills/"* ]]; then
echo "Installed globally (all projects): $INSTALL_DIR"
elif [[ "$INSTALL_DIR" == *".claude/skills/"* ]]; then
echo "Installed at project scope: $INSTALL_DIR"
else
echo "NOTE: This skill should live under ~/.claude/skills/opus-codex/ (global)"
echo " or .claude/skills/opus-codex/ (project-level) for Claude Code to discover it."
fi
echo ""
echo "Setup complete! Usage:"
echo " 1. Start Claude Code"
echo " 2. Switch to Opus: /model opus"
echo " 3. Run: /opus-codex"
echo " 4. Describe your task — Opus plans, Codex executes"