---
name: Claude Code Setup
slug: claude-code-setup
category: DevOps
description: Claude Code Setup checks whether Claude Code CLI is ready in the current environment and can enable or disable the turn-end review gate. Use it for installation, authentication, or review-gate setup requests.
github: "https://github.com/sendbird/cc-plugin-codex/tree/main/skills/setup"
language: JavaScript
stars: 193
forks: 35
install: "npx degit https://github.com/sendbird/cc-plugin-codex/tree/main/skills/setup ~/.claude/skills/setup"
installs_to: ~/.claude/skills/setup
source_path: skills/setup/SKILL.md
collection_size: 7
category_size: 1013
collection_url: "https://dirskills.com/collections/sendbird/cc-plugin-codex"
added: 2026-09-06T05:19:05.747Z
last_synced: 2026-09-06T05:19:05.747Z
canonical_url: "https://dirskills.com/skills/claude-code-setup"
---

# Claude Code Setup

Claude Code Setup checks whether Claude Code CLI is ready in the current environment and can enable or disable the turn-end review gate. Use it for installation, authentication, or review-gate setup requests.

**Install:**

```bash
npx degit https://github.com/sendbird/cc-plugin-codex/tree/main/skills/setup ~/.claude/skills/setup
```

## README

# Claude Code Setup

Use this skill when the user wants to verify Claude Code readiness or toggle the review gate.

Resolve `<plugin-root>` as two directories above this `SKILL.md` file. Always run the companion from that active plugin root.

Supported arguments:
- `--enable-review-gate`
- `--disable-review-gate`

Workflow:
- First run the machine-readable probe:
  `node "<plugin-root>/scripts/claude-companion.mjs" setup --json $ARGUMENTS`
- If it reports that Claude Code is unavailable and `npm` is available, ask whether to install Claude Code now.
- If the user agrees, run `npm install -g @anthropic-ai/claude-code` and rerun setup.
- If Claude Code is already installed or `npm` is unavailable, do not ask about installation.
- If setup reports missing native plugin hook features or hook trust, rerun setup once. The companion repairs `[features].hooks` and this plugin's native hook trust hashes itself.
- If setup adds the plugin-data destination or legacy migration roots to the writable-root list, do not retry in the same Codex session. Tell the user to restart Codex and rerun the same setup command; any requested review-gate change is deliberately deferred until that restart.
- After the decision flow is complete, run the final user-facing command without `--json`:
  `node "<plugin-root>/scripts/claude-companion.mjs" setup $ARGUMENTS`

Output:
- Present the final non-JSON setup output exactly as returned by the companion.
- Use the JSON form only for branching logic such as install or auth decisions.
- Preserve any authentication guidance if setup reports that login is still required.
