Install Agent Skills into all 3 AI CLIs, and use Bun instead of npm
Adds scripts/install-skills.sh: pulls this repo's extensions/ skill bundles (SKILL.md-format) at workspace startup and installs them into Claude Code (~/.claude/skills), GitHub Copilot CLI (~/.copilot/skills), and Antigravity CLI (~/.gemini/config/skills). Every env gets the common awesome-skills-plugin bundle; COBOL/3D/TTRPG additionally get their matching skill(s) from custom-specialty-plugin via a per-template SPECIALTY_SKILLS value. Each template also installs Bun via a coder_script and hooks ~/.bun/bin onto PATH in .bashrc (the bun.sh installer doesn't reliably do this in a scripted shell). The CLI setup wizard now uses `bun install -g` instead of `npm install -g` for GitHub Copilot CLI and Claude Code CLI. All six templates re-validated with terraform init/validate against the real coder-server container on octo-winsrv. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,8 @@ WIZARD_DONE_FILE="${HOME}/.cache/coder-cli-wizard/done"
|
||||
FORCE=0
|
||||
[ "${1:-}" = "--force" ] && FORCE=1
|
||||
|
||||
export PATH="${HOME}/.local/bin:${PATH}"
|
||||
export BUN_INSTALL="${HOME}/.bun"
|
||||
export PATH="${BUN_INSTALL}/bin:${HOME}/.local/bin:${PATH}"
|
||||
|
||||
# Only bother interactive shells with a real terminal attached, and only until
|
||||
# the user marks the wizard as done.
|
||||
@@ -53,16 +54,16 @@ echo "==================================================================="
|
||||
# --- GitHub Copilot CLI ---
|
||||
if command -v copilot >/dev/null 2>&1; then
|
||||
echo "GitHub Copilot CLI already installed, skipping."
|
||||
elif command -v npm >/dev/null 2>&1; then
|
||||
elif command -v bun >/dev/null 2>&1; then
|
||||
if ask_yes_no "Install GitHub Copilot CLI and log in?"; then
|
||||
if npm install -g @github/copilot; then
|
||||
if bun install -g @github/copilot; then
|
||||
copilot login || echo "Install succeeded but login didn't complete. Retry any time with: copilot login"
|
||||
else
|
||||
echo "Copilot CLI install failed. Retry later with: npm install -g @github/copilot && copilot login"
|
||||
echo "Copilot CLI install failed. Retry later with: bun install -g @github/copilot && copilot login"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "Skipping GitHub Copilot CLI: npm not found on this workspace image."
|
||||
echo "Skipping GitHub Copilot CLI: bun not found on this workspace image."
|
||||
fi
|
||||
|
||||
# --- Google Antigravity CLI (agy) ---
|
||||
@@ -82,17 +83,17 @@ fi
|
||||
# --- Claude Code CLI ---
|
||||
if command -v claude >/dev/null 2>&1; then
|
||||
echo "Claude Code CLI already installed, skipping."
|
||||
elif command -v npm >/dev/null 2>&1; then
|
||||
elif command -v bun >/dev/null 2>&1; then
|
||||
if ask_yes_no "Install Claude Code CLI and log in?"; then
|
||||
if npm install -g @anthropic-ai/claude-code; then
|
||||
if bun install -g @anthropic-ai/claude-code; then
|
||||
echo "Launching 'claude' once to complete sign-in (use /login if not prompted; Ctrl+C to exit when done)..."
|
||||
claude || echo "Sign-in didn't complete. Retry any time by running: claude"
|
||||
else
|
||||
echo "Claude Code CLI install failed. Retry later with: npm install -g @anthropic-ai/claude-code"
|
||||
echo "Claude Code CLI install failed. Retry later with: bun install -g @anthropic-ai/claude-code"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "Skipping Claude Code CLI: npm not found on this workspace image."
|
||||
echo "Skipping Claude Code CLI: bun not found on this workspace image."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user