Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
joaquimscosta avatar

Code Env Setup

  • 1 installs
  • 21 repo stars
  • Updated August 5, 2026
  • joaquimscosta/arkhe-claude-plugins

Interactive wizard that detects and configures Claude Code setup: global CLAUDE.md, scaffolding, MCP servers, hooks, agents, and settings.

About

Detects existing Claude Code configuration and guides best-practice setup of global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. A developer uses it when initializing or configuring a Claude Code environment.

  • Two-phase detect-then-configure flow with a detection script
  • Category selection with per-item configured/partial/not-configured status

Code Env Setup by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #2,476 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/joaquimscosta/arkhe-claude-plugins --skill code-env-setup

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars21
Last updatedAugust 5, 2026
Repositoryjoaquimscosta/arkhe-claude-plugins

What it does

Interactive wizard that detects and configures Claude Code setup: global CLAUDE.md, scaffolding, MCP servers, hooks, agents, and settings.

Files

SKILL.mdMarkdownGitHub ↗

Claude Code Setup Wizard

Interactive environment setup following the Claude Code Guide.

Pre-flight

Run the detection script to understand current state:

python3 ${CLAUDE_SKILL_DIR}/scripts/detect_setup.py

Two-Phase Workflow

Phase 1: Detect

1. Run the detector on the project root:

   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:

   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):

#CategoryGuide SectionWhat It Configures
1Global CLAUDE.mdSection 1~/.claude/CLAUDE.md — security NEVER rules, account config
2Project ScaffoldingSection 2.claude/ dirs, .env.example, .gitignore, CLAUDE.md
3MCP ServersSection 3Install recommended servers via claude mcp add
4HooksSection 7~/.claude/hooks/block-secrets.py, hooks in settings.json
5Custom AgentsSection 10~/.claude/agents/ starter agent files
6KeybindingsSection 13~/.claude/keybindings.json
7SettingsSection 13Language, 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 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 for per-category setup flows
  • Examples: See EXAMPLES.md for example setup sessions
  • Troubleshooting: See TROUBLESHOOTING.md for common issues
  • Detection Script: See scripts/detect_setup.py for detection logic

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.