AGENT SKILL

machine-setup

Check and fix the local machine for Claude Code. Runs a read-only health check of the Claude Code install, version, install method, duplicate installs, login, git, GitHub CLI and Node, then offers fixes one at a time. Use when someone asks if their Claude Code setup is OK, wants to check their machine, has login or install problems, wants to move from an npm install to the native installer, or asks how to get the VS Code, JetBrains or desktop app.

License 许可
MIT
最近更新
2026-10-18
Stars
★ 0
Forks
0

01 前言 Front Matter

name
machine-setup
description
Check and fix the local machine for Claude Code. Runs a read-only health check of the Claude Code install, version, install method, duplicate installs, login, git, GitHub CLI and Node, then offers fixes one at a time. Use when someone asks if their Claude Code setup is OK, wants to check their machine, has login or install problems, wants to move from an npm install to the native installer, or asks how to get the VS Code, JetBrains or desktop app.

02 资源文件 1

03 SKILL.md 正文

Machine setup

1. Check

Read the role from ~/.claude/onboarding-kit-profile.json if it exists (default other), then run:

bash "<this skill's directory>/scripts/doctor.sh" --role <role>

Each line is status<TAB>check<TAB>detail<TAB>fix, status ok | warn | fail | info. It changes nothing. Exit code 1 just means at least one fail.

On native Windows without bash, run claude --version, claude auth status and claude doctor instead and read their output.

2. Report

Show a short table: what's fine, what needs fixing. Explain each fail and warn in one plain sentence. Mention info lines only when they matter to this user.

3. Fix, one at a time

For each fail, then each warn the user wants fixed: say what the command does, ask, run it only after a yes. Never use sudo without saying why. If a fix needs the user (a browser login, a password, a restart), tell them exactly what to type; suggest the ! prefix so the output lands in the chat, e.g. ! gh auth login.

Known fixes (from https://code.claude.com/docs/en/setup):

Check Fix
claude missing Native installer from https://code.claude.com/docs/en/setup (Homebrew alternative: brew install --cask claude-code, no auto-update)
npm install Native installer (above), then confirm claude --version works from the new path, then npm uninstall -g @anthropic-ai/claude-code
Duplicate install type -a claude; keep the native one, remove the others
Not logged in Start claude and run /login
git missing macOS xcode-select --install; Debian/Ubuntu sudo apt install git
gh missing / logged out brew install gh or https://cli.github.com; then gh auth login
Search broken Install ripgrep, set "env": {"USE_BUILTIN_RIPGREP": "0"}

Never pipe a downloaded script into a shell yourself. For the native installer, give the user the command from the setup page to run, e.g. with the ! prefix.

Only push git and gh on roles that need them (engineer, qa). For others, offer once with the reason and accept a no.

4. Optional extras

Offer what fits the user, don't push:

  • VS Code / Cursor: extension anthropic.claude-code (VS Code 1.94+). JetBrains: "Claude Code [Beta]" plugin. Then /ide to connect.
  • Desktop app (easier for non-engineer beginners): https://code.claude.com/docs/en/desktop-quickstart
  • Shift+Enter for new lines: /terminal-setup (VS Code, Cursor, Zed, Alacritty; iTerm2 and Apple Terminal need manual steps).

5. Confirm

Run doctor.sh again and claude doctor, and show the final status.

04 同仓库更多 Skills

moatazeldebsy
moatazeldebsy/onboarding-kit

token-saver

Cut Claude Code token use and cost. Teaches the habits that matter most (clearing between tasks, compacting, picking the right model and effort, plan mode, short CLAUDE.md, fewer plugins and MCP servers) and audits the current setup for waste. Use when someone asks about tokens, cost, usage limits, hitting their limit too fast, the context window filling up, long sessions getting slow, or how to make Claude Code cheaper.

★ 0
moatazeldebsy
moatazeldebsy/onboarding-kit

project-setup

Set up Claude Code settings and a CLAUDE.md for a user or a folder. Merges safe defaults into ~/.claude/settings.json (block reading secrets like .env and SSH keys), adds project rules that stop Claude reading generated or vendored files, and writes a short CLAUDE.md for a code repo or a non-code folder of docs, specs or data. Use when someone asks to configure Claude Code settings or permissions (user-level ~/.claude/settings.json or a project's .claude/settings.json), create or improve a CLAUDE.md, set up a project or folder for Claude Code, or make sure Claude never reads .env files, private keys, SSH keys, or dependency and build folders (node_modules, dist, build).

★ 0
moatazeldebsy
moatazeldebsy/onboarding-kit

getting-started

Guided first-time setup for Claude Code, tailored to the user's role (engineer, QA, engineering manager, product manager, designer, analyst, writer) and level (beginner, intermediate, advanced). Checks the machine, sets up settings and CLAUDE.md, suggests a few plugins, and teaches habits that save tokens. Use when someone is new to Claude Code or asks to get started, set up or configure Claude Code, be onboarded, or wants to know what to do first with Claude Code.

★ 0