Skip to content
Skills Library
AI & agents · Tool integration

code-env-setup

/code-env-setup

Interactive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code".

Licence
MIT
Last repository change
14.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
1
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 14.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/detect_setup.py

What it does and when to use it

Interactive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code".

Triggers from the description

setup claude codeconfigure claudeclaude code setupenvironment setupinitialize claude code
Original author description

Interactive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code".

How it works

  1. Pre-flight
  2. Two-Phase Workflow
  3. Key Rules
  4. Guide Reference
  5. References
Original SKILL.md headings · 78 lines, 429 words
SKILL.md preview
---
name: code-env-setup
description: >-
  Interactive Claude Code environment setup wizard. Detects existing configuration,
  guides through best-practice setup for Global CLAUDE.md, project scaffolding,
  MCP servers, hooks, custom agents, keybindings, and settings.
  Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude",
  "claude code setup", "environment setup", or "initialize claude code".
disable-model-invocation: true
---

# Claude Code Setup Wizard

Interactive environment setup following the Claude Code Guide.

## Pre-flight

Run the detection script to understand current state:
```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/detect_setup.py
```

## Two-Phase Workflow

### Phase 1: Detect

1. **Run the detector** on the project root:
   ```bash
   python3 ${CLAUDE_SKILL_DIR}/scripts/detect_setup.py <project-root>
   ```

2. **Fetch the guide** via WebFetch:
   ```
   https://raw.githubusercontent.com/joaquimscosta/arkhe-claude-plugins/main/docs/CLAUDE_CODE_GUIDE.md
   ```
   If WebFetch fails (network error, 404), warn the user and proceed using LLM knowledge only.

3. **Cross-reference** detection JSON against guide recommendations to identify what is missing or incomplete.

4. **Detect MCP servers** separately via Bash:
   ```bash
   claude mcp list
   ```

### Phase 2: Configure

1. **Present category selection** using `AskUserQuestion` (multiSelect: true). Show detection status for each category (configured / partially configured / not configured):

| # | Category | Guide Section | What It Configures |
|---|----------|---------------|--------------------|
| 1 | Global CLAUDE.md | Section 1 | `~/.claude/CLAUDE.md` — security NEVER rules, account config |
| 2 | Project Scaffolding | Section 2 | `.claude/` dirs, `.env.example`, `.gitignore`, `CLAUDE.md` |
| 3 | MCP Servers | Section 3 | Install recommended servers via `claude mcp add` |
| 4 | Hooks | Section 7 | `~/.claude/hooks/block-secrets.py`, hooks in settings.json |
| 5 | Custom Agents | Section 10 | `~/.claude/agents/` starter agent files |
| 6 | Keybindings | Section 13 | `~/.claude/keybindings.json` |
| 7 | Settings | Section 13 | Language, background tasks in settings.json |

   If user passed a specific category as argument (e.g., `/devtools:code-env-setup hooks`), skip the selection and go directly to that category.

2. **Walk through each selected category** with targeted `AskUserQuestion` calls. See [WORKFLOW.md](WORKFLOW.md) for per-category question flows.

3. **Show confirmation summary** — table of all proposed CREATE/MODIFY/SKIP actions. Ask user to confirm before executing.

4. **Execute changes** — create files, install MCP servers, update settings.

5. **Post-setup summary** — show what was configured, next steps, and remind user they can re-run `/devtools:code-env-setup` for incremental updates.

## Key Rules

- **Never overwrite** existing files without asking. Always offer merge/replace/skip.
- **Detect first** — skip items already configured.
- **Use AskUserQuestion** for every decision. Do not assume user preferences.
- **Merge settings** — when updating settings.json, read existing content first and deep-merge.
- **MCP servers** — ask scope (global `-s user` vs project `-s project`) before installing.

## Guide Reference

Fetch at runtime — do not cache or embed:
- **Claude Code Guide**: `https://raw.githubusercontent.com/joaquimscosta/arkhe-claude-plugins/main/docs/CLAUDE_CODE_GUIDE.md`

## References

- **Workflow**: See [WORKFLOW.md](WORKFLOW.md) for per-category setup flows
- **Examples**: See [EXAMPLES.md](EXAMPLES.md) for example setup sessions
- **Troubleshooting**: See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for common issues
- **Detection Script**: See [scripts/detect_setup.py](scripts/detect_setup.py) for detection logic
Files in this package (5)
  • EXAMPLES.md 4 KB
  • SKILL.md 4 KB
  • TROUBLESHOOTING.md 3 KB
  • WORKFLOW.md 9 KB
  • scripts/detect_setup.py 4 KB

Versions

The database has no other skills named code-env-setup.

Database snapshot: 13.11.2026 · package version deb90feeb309 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100setup
    Set up, finish or re-tune the Claude Code configuration (CLAUDE.md, rules, settings, MCP servers, agents, hooks) for a project or for this device. Use when a "[cct]" session notice says setup is pending, right after installing the Claude Code kit, when the user runs /setup, or…
  • 100env-setup
    Claude Code 环境一键同步工具。从 GitHub 仓库同步所有配置到本地:output-styles 风格、CLAUDE.md 全局提示词、MCP 服务器配置、Agent 配置、Plugin 配置。适用于多设备统一环境、换电脑恢复、团队共享配置等场景。当用户需要从 GitHub 仓库同步 Claude Code/OpenClaw 环境配置时使用此 skill。
  • 100working-with-claude-code
    Use when working with Claude Code CLI, plugins, hooks, MCP servers, skills, configuration, or any Claude Code feature - provides comprehensive official documentation for all aspects of Claude Code
  • 100working-with-claude-code
    Use when working with Claude Code CLI, plugins, hooks, MCP servers, skills, configuration, or any Claude Code feature - provides comprehensive official documentation for all aspects of Claude Code
  • 100configure
    Interactive wizard for OrchestKit settings: MCP servers, hook permissions, keybindings, and install presets. Use when customizing plugin behavior or managing settings.
  • 84setup-repository
    Interactive setup wizard for configuring any repository with Claude Code best practices. Use when user says "setup claude", "init claude", "configure claude code", "setup repository", "boris setup", "best practices setup", or wants to configure their repo for optimal AI-assisted development.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.