Skip to content
Back to skills

Code Env Setup

ASecurity

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".

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 28, 2026
ai-agentspythongobashgitsecurity

Works with

  • claude code
  • mcp

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add joaquimscosta/arkhe-claude-plugins --skill code-env-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Env Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Env Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joaquimscosta-code-env-setup/badge)](https://www.skillsdirectory.com/skills/joaquimscosta-code-env-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 skill

  • EXAMPLES.md3.6 KB
  • SKILL.md3.8 KB
  • TROUBLESHOOTING.md2.7 KB
  • WORKFLOW.md9.4 KB
  • scripts/detect_setup.py4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.